DennisBergkamp wrote:I will play around with this a bunch, but I'm guessing the error you're getting happens because there is no list yet generated from the card shop... what happens if you click on the card shop first, close it, and then play a game?
Before reaching that screen, many messages like this one (Buffy 1), none fatal, occur upon clicking 'Continue Quest':
- Code: Select all
QuestData : readFile() error, file res\quest\easy.txt contains the invalid ai deck name: Buffy 1
Version:
Forge -- official beta: $Date: 2010-02-22 10:48:25 -0600 (Mon, 22 Feb 2010) $, SVN revision: $Revision: 415 $
Detailed error trace:
java.lang.Exception
at forge.QuestData.readFile(QuestData.java:191)
at forge.QuestData.readAIQuestDeckFiles(QuestData.java:160)
at forge.QuestData.loadData(QuestData.java:226)
at forge.Gui_QuestOptions.continueQuestButton_actionPerformed(Gui_QuestOptions.java:170)
at forge.Gui_QuestOptions$2.actionPerformed(Gui_QuestOptions.java:118)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Trying to open the card shop sends you back to the main interface, with the following error:
- Code: Select all
null
Version:
Forge -- official beta: $Date: 2010-02-22 10:48:25 -0600 (Mon, 22 Feb 2010) $, SVN revision: $Revision: 415 $
Detailed error trace:
java.lang.NullPointerException
at forge.Gui_CardShop.show(Gui_CardShop.java:214)
at forge.Gui_Quest.cardShopButton_actionPerformed(Gui_Quest.java:244)
at forge.Gui_Quest$2.actionPerformed(Gui_Quest.java:146)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Decks can still be opened, modified, and saved normally. Playing a match also works fine until you click 'Quit Match' after winning, then the earlier
error occurs after which you're stranded on the screen with three buttons and hence can only restart the match or terminate entirely.
EDIT: I think it would be helpful to designate cards recently bought from the shop with their own rarity label (e.g., 'b') in a similar way to how recently won cards are marked 'n', presumably for 'new' (though cards from the shop are new too...). A way to know what cards are currently being used in decks might also be useful when selling. Can these labels be remembered/recorded after quitting Forge? They also aren't shown in the card shop; you can see only the CURL labels there.