#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.• האם טקסט זה זמין במערכת התרגום? אם כן, האם היא תורגמה במשך יותר מ -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.• האם טקסט זה זמין במערכת התרגום? אם כן, האם היא תורגמה במשך יותר מ -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 כדי להעלות אותו להדביק קישור לכאן.