#78674: "The entire card deck is exposed to the player via `gameui.gamedatas.deck`"
ما هو هذا التقرير؟
ماذا حدث؟ يرجى اختيار من أدناه
ماذا حدث؟ يرجى اختيار من أدناه
يرجى التحقق مما إذا كان هناك بالفعل تقرير عن نفس الموضوع
إذا كانت الإجابة بنعم ، يرجى التصويت لهذا التقرير. يتم إعطاء التقارير ذات أكبر عدد من الأصوات الأولوية!
# | Status | Votes | Game | Type | Title | Last update |
---|
وصف مفصل
• يرجى نسخ / لصق رسالة الخطأ التي تراها على الشاشة ، إن وجدت.
The player's cards aren't completely hidden. The card deck is not hidden.• يرجى توضيح ما تريد القيام به ، ماذا فعلت وما حدث
No.• ما هو متصفحك؟
Google Chrome v108
• يرجى نسخ / لصق النص المعروض باللغة الإنجليزية بدلاً من لغتك. إذا كان لديك لقطة شاشة لهذا الخطأ (ممارسة جيدة) ، يمكنك استخدام Imgur.com لتحميله ونسخ / لصق الرابط هنا.
The player's cards aren't completely hidden. The card deck is not hidden.• هل هذا النص متاح في translation system ؟ إذا كانت الإجابة بنعم ، فهل تمت ترجمتها لأكثر من 24 ساعة؟
No.• ما هو متصفحك؟
Google Chrome v108
• يرجى توضيح اقتراحك بدقة وإيجاز بحيث يكون من السهل قدر الإمكان فهم ما تعنيه.
The player's cards aren't completely hidden. The card deck is not hidden.• ما هو متصفحك؟
Google Chrome v108
• ما الذي تم عرضه على الشاشة عندما تم حظرك (شاشة فارغة؟ جزء من واجهة اللعبة؟ رسالة خطأ؟)
The player's cards aren't completely hidden. The card deck is not hidden.• ما هو متصفحك؟
Google Chrome v108
• أي جزء من القواعد تم مخالفته في تصميم التبني لدى BGA
The player's cards aren't completely hidden. The card deck is not hidden.• هل انتهاك القواعد مرئي عند إعادة اللعب؟ إذا كانت الإجابة بنعم ، فبأي رقم؟
No.• ما هو متصفحك؟
Google Chrome v108
• ما هو نشاط اللعبة الذي أردت القيام به؟
The player's cards aren't completely hidden. The card deck is not hidden.• ماذا تحاول أن تفعل لتحريك هذا العمل اللعبة؟
No.• ماذا حدث عند محاولة القيام بهذا (رسالة خطأ ، رسالة شريط حالة اللعبة ، ...)؟
• ما هو متصفحك؟
Google Chrome v108
• في أي خطوة من اللعبة حدثت المشكلة (ما هو تعليمة اللعبة الحالية)؟
The player's cards aren't completely hidden. The card deck is not hidden.• ماذا حدث عند محاولة إجراء هذه الحركة داخل اللعبة (رسالة خطأ ، رسالة شريط حالة اللعبة ، ...)؟
No.• ما هو متصفحك؟
Google Chrome v108
• يرجى وصف مشكلة العرض. إذا كان لديك لقطة شاشة لهذا الخطأ (ممارسة جيدة) ، يمكنك استخدام Imgur.com لتحميله ونسخ / لصق الرابط هنا.
The player's cards aren't completely hidden. The card deck is not hidden.• ما هو متصفحك؟
Google Chrome v108
• يرجى نسخ / لصق النص المعروض باللغة الإنجليزية بدلاً من لغتك. إذا كان لديك لقطة شاشة لهذا الخطأ (ممارسة جيدة) ، يمكنك استخدام Imgur.com لتحميله ونسخ / لصق الرابط هنا.
The player's cards aren't completely hidden. The card deck is not hidden.• هل هذا النص متاح في translation system ؟ إذا كانت الإجابة بنعم ، فهل تمت ترجمتها لأكثر من 24 ساعة؟
No.• ما هو متصفحك؟
Google Chrome v108
• يرجى توضيح اقتراحك بدقة وإيجاز بحيث يكون من السهل قدر الإمكان فهم ما تعنيه.
The player's cards aren't completely hidden. The card deck is not hidden.• ما هو متصفحك؟
Google Chrome v108
سجل التاريخ
Here's a script that uses this information, which we definitely shouldn't have, and prints the player's hand and the top card of the deck.
```
(function() {
function printPlayerHand() {
const cardsDiv = document.getElementById(`playertablecard_${gameui.player_id}`);
const cards = [...cardsDiv.getElementsByClassName("card")].reverse();
const message = cards.map(card => {
const cardId = card.id.split("_").at(-1);
const info = gameui.gamedatas.deck[cardId];
return info ? `${info.type_arg} ${gameui.colorNames[info.type]}` : "?";
}).join(", ");
console.log(`Your hand: ${message}`);
}
function printNextCard() {
const cardsLeft = Number(document.getElementById("deck_pile_item_1").textContent);
const info = gameui.gamedatas.deck[String(cardsLeft * 2)];
console.log(`The next card in the deck: ${info.type_arg} ${gameui.colorNames[info.type]}`)
}
printPlayerHand();
printNextCard();
})();
```
Output: i.imgur.com/UjiO7xF.png
Now I know my cards are (4 blue, 2 white, 5 green, ?) without needing any clues. "?" means this card is one of my starting cards, so it's not in the `deck` object.
Interestingly enough, I couldn't find any usage of this object in the code. If that's true, I'm guessing it's a pretty easy fix.
اضف لهذا البلاغ
- تعريف طاولة/تعريف حركة
- هل حلَت F5 المشكلة؟
- هل ظهرت المشكلة عدة مرات؟ كل مرة؟ بطريقة عشوائية؟
- إذا كان لديك لقطة شاشة لهذا الخطأ (ممارسة جيدة) ، يمكنك استخدام Imgur.com لتحميله ونسخ / لصق الرابط هنا.