Re: Forge version 1.5.12
Not bad.Agetian wrote:By the way, how viable is this for a simple solution to list unsupported cards (in CardPool.java:80)?(so that at least the player knows which card to look for immediately instead of stumbling across the card randomly in one of his thousands of decks).
- Code: Select all
else {
System.err.println(String.format("An unsupported card was found when loading Forge decks: %s", cardName));
cp = PaperCard.createUnsuportedCard(cardName);
}
- Agetian
Note that game starts now even with invalid cards, but they are pretty useless during the game.
What if 'create unsuported card' method is moved to CardDb? The card database may log all those requests into System.out, an ArrayList field, or forge.log ... whatever. If there's a list to keep track of unsupported card requests, the gui or another system may check it after the loading is done and show any imaginable popup.
As another benefit of having CardDb handle the requests for bad cards - it can check if the card is really unsupported or just mistyped. That is possible because CardDb has all editions, and those hold all cards' names, even the unsupported ones.
