#78674: "The entire card deck is exposed to the player via `gameui.gamedatas.deck`"
Bu rapor neyle alakali?
Ne oldu? Lütfen aşağıdan seçin
Ne oldu? Lütfen aşağıdan seçin
Lütfen aynı konuda bir rapor olup olmadığını kontrol edin
Eğer evet ise, lütfen bu rapor için oy verin. En çok oy alan raporlar ÖNCELİKLİ!
# | Status | Votes | Game | Type | Title | Last update |
---|
Detayli tanim
• Eğer varsa, lütfen ekranda gördüğünüz hata mesajını kopyalayın/yapıştırın.
The player's cards aren't completely hidden. The card deck is not hidden.• Lütfen ne yapmak istediğini, ne yaptığını ve ne olduğunu açıkla.
No.• Hangi browseri kullaniyorsun?
Google Chrome v108
• Lütfen görüntülenen metni kendi diliniz yerine İngilizce olarak kopyalayın/yapıştırın. Bu hatanın bir ekran görüntüsüne sahipseniz (iyi uygulama), onu yüklemek ve bağlantıyı buraya kopyalamak / yapıştırmak için Imgur.com kullanabilirsiniz.
The player's cards aren't completely hidden. The card deck is not hidden.• Bu metin çeviri sisteminde mevcut mu? Evet ise 24 saatten fazla bir süredir tercüme edildi mi?
No.• Hangi browseri kullaniyorsun?
Google Chrome v108
• Lütfen önerinizi tam ve net olarak açıklayın, böylece ne demek istediğinizi mümkün olduğunca kolay anlayabiliriz.
The player's cards aren't completely hidden. The card deck is not hidden.• Hangi browseri kullaniyorsun?
Google Chrome v108
• Engellendiğinizde ekranda ne belirdi (Boş ekran? Oyun arayüzünün bir parçası mı? Hata mesajı?)
The player's cards aren't completely hidden. The card deck is not hidden.• Hangi browseri kullaniyorsun?
Google Chrome v108
• Kuralların hangi kısmına BGA adaptasyonu tarafından saygı gösterilmedi
The player's cards aren't completely hidden. The card deck is not hidden.• Kural ihlali oyun tekrarında görünür mü? Eğer evet ise, hangi hareket numarası?
No.• Hangi browseri kullaniyorsun?
Google Chrome v108
• Hangi oyun aksiyonu yapmak istedin?
The player's cards aren't completely hidden. The card deck is not hidden.• Bu oyun eylemini tetiklemek için ne yapmaya çalışıyorsun?
No.• Bunu yapmaya çalıştığınızda ne oldu (hata mesajı, oyun durum çubuğu mesajı, ...)?
• Hangi browseri kullaniyorsun?
Google Chrome v108
• Oyunun hangi aşamasında sorun oluştu (mevcut oyun talimatı neydi)?
The player's cards aren't completely hidden. The card deck is not hidden.• Bir oyun kurmaya çalıştığınızda ne oldu (hata mesajı, oyun durum çubuğu mesajı, ...)?
No.• Hangi browseri kullaniyorsun?
Google Chrome v108
• Lütfen görüntü sorununu açıklayın. Bu hatanın bir ekran görüntüsüne sahipseniz (iyi uygulama), onu yüklemek ve bağlantıyı buraya kopyalamak / yapıştırmak için Imgur.com kullanabilirsiniz.
The player's cards aren't completely hidden. The card deck is not hidden.• Hangi browseri kullaniyorsun?
Google Chrome v108
• Lütfen görüntülenen metni kendi diliniz yerine İngilizce olarak kopyalayın/yapıştırın. Bu hatanın bir ekran görüntüsüne sahipseniz (iyi uygulama), onu yüklemek ve bağlantıyı buraya kopyalamak / yapıştırmak için Imgur.com kullanabilirsiniz.
The player's cards aren't completely hidden. The card deck is not hidden.• Bu metin çeviri sisteminde mevcut mu? Evet ise 24 saatten fazla bir süredir tercüme edildi mi?
No.• Hangi browseri kullaniyorsun?
Google Chrome v108
• Lütfen önerinizi tam ve net olarak açıklayın, böylece ne demek istediğinizi mümkün olduğunca kolay anlayabiliriz.
The player's cards aren't completely hidden. The card deck is not hidden.• Hangi browseri kullaniyorsun?
Google Chrome v108
Rapor geçmişi
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.
Bu rapora ekleme yap
- Başka bir masa ID / hareket ID
- F5 sorunu çözdü mü?
- Bu sorun cok mu oluyor ? Her zaman mi ? Tesadüfen mi ?
- Bu hatanın bir ekran görüntüsüne sahipseniz (iyi uygulama), onu yüklemek ve bağlantıyı buraya kopyalamak / yapıştırmak için Imgur.com kullanabilirsiniz.