Bug Reports (snapshot builds)
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Forge version 1.2.4
by krevett » 25 Feb 2012, 11:11
I try to add a file.dck in the precon folder (adding the [shop] lines like other precon) and then two cases:
1) if I already have a quest.dat forge crashes after loading
2) if I have no quest forge crashes when I start a new one
I've done this in v1.2.3 with no problem that's why I report this here
(I currently use the last snapshot 24/02/2012)
1) if I already have a quest.dat forge crashes after loading
- | Open
- This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.
null
Version:
Forge version 1.2.4-SNAPSHOT-r14306
OS: Windows Vista Version: 6.0 Architecture: x86
Java Version: 1.6.0_26 Vendor: Sun Microsystems Inc.
Detailed error trace:
java.lang.ExceptionInInitializerError
at sun.reflect.GeneratedSerializationConstructorAccessor1.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:75)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:428)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:233)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1052)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1036)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:912)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:903)
at forge.quest.data.QuestDataIO.loadData(QuestDataIO.java:115)
at forge.control.home.ControlQuest.refreshQuests(ControlQuest.java:365)
at forge.view.home.ViewQuest.<init>(ViewQuest.java:174)
at forge.view.ViewHomeUI.<init>(ViewHomeUI.java:80)
at forge.view.FView.instantiateCachedUIStates(FView.java:167)
at forge.view.FView.initialize(FView.java:71)
at forge.view.Main$1.run(Main.java:57)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(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)
Caused by: java.lang.NullPointerException
at forge.item.PreconDeck.<init>(PreconDeck.java:91)
at forge.quest.data.PreconReader.read(PreconReader.java:28)
at forge.quest.data.PreconReader.read(PreconReader.java:13)
at forge.util.StorageReaderFolder.readAll(StorageReaderFolder.java:79)
at forge.util.FolderMapView.<init>(FolderMapView.java:47)
at forge.quest.data.QuestData.<clinit>(QuestData.java:172)
... 36 more
2) if I have no quest forge crashes when I start a new one
- | Open
- This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.
null
Version:
Forge version 1.2.4-SNAPSHOT-r14306
OS: Windows Vista Version: 6.0 Architecture: x86
Java Version: 1.6.0_26 Vendor: Sun Microsystems Inc.
Detailed error trace:
java.lang.ExceptionInInitializerError
at forge.control.home.ControlQuest.newQuest(ControlQuest.java:285)
at forge.control.home.ControlQuest.access$600(ControlQuest.java:48)
at forge.control.home.ControlQuest$11.execute(ControlQuest.java:139)
at forge.view.toolbox.FLabel$3.mouseClicked(FLabel.java:236)
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.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(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)
Caused by: java.lang.NullPointerException
at forge.item.PreconDeck.<init>(PreconDeck.java:91)
at forge.quest.data.PreconReader.read(PreconReader.java:28)
at forge.quest.data.PreconReader.read(PreconReader.java:13)
at forge.util.StorageReaderFolder.readAll(StorageReaderFolder.java:79)
at forge.util.FolderMapView.<init>(FolderMapView.java:47)
at forge.quest.data.QuestData.<clinit>(QuestData.java:172)
... 35 more
I've done this in v1.2.3 with no problem that's why I report this here
(I currently use the last snapshot 24/02/2012)
Last edited by krevett on 25 Feb 2012, 12:02, edited 2 times in total.
- krevett
- Posts: 109
- Joined: 21 Feb 2012, 22:24
- Location: France
- Has thanked: 18 times
- Been thanked: 9 times
Re: Forge version 1.2.4
by Sloth » 25 Feb 2012, 11:32
I've added a new precon and i don't get a crash when i reproduce your steps. What does your precon file look like exactly?krevett wrote:I try to add a file.dck in the precon folder (adding the [shop] lines like other precon) and then two cases:
1) if I already have a quest.dat forge crashes after loading
2) if I have no quest forge crashes when I start a new one
I've done this in v1.2.3 with no problem that's why I report this here
(I currently use the last snapshot 24/02/2012)
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Forge version 1.2.4
by krevett » 25 Feb 2012, 11:40
Well I use whatever constructed deck I've made with deck editor and add these lines on top
(of course I copy it from /deck/constructed to /quest/precon)
[shop]
WinsToUnlock=0
Credits=1200
MinDifficulty=0
MaxDifficulty=5
Ok that's solved
in v1.2.3 it worked even if you missed the lines
Description=
Set=
Image=
Now it seems to work without crashing sorry ^^
(of course I copy it from /deck/constructed to /quest/precon)
[shop]
WinsToUnlock=0
Credits=1200
MinDifficulty=0
MaxDifficulty=5
Ok that's solved

Description=
Set=
Image=
Now it seems to work without crashing sorry ^^
- krevett
- Posts: 109
- Joined: 21 Feb 2012, 22:24
- Location: France
- Has thanked: 18 times
- Been thanked: 9 times
Re: Forge version 1.2.4
by Max mtg » 25 Feb 2012, 12:13
ok, I have no idea for the second dump, but to fix the first one provide your quest save please. (see in /res/quest/data)
the valid precon header should have all fields filled, like in this example:
the valid precon header should have all fields filled, like in this example:
- Code: Select all
[shop]
WinsToUnlock=0
Credits=1200
MinDifficulty=0
MaxDifficulty=5
[metadata]
Name=Battle Cries
Description=This deck hits fast and hard, swarming your opponents with an army of ragtag Mirran rebels. It's all about strength in numbers.
Set=MBS
Image=battle_cries.jpg
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Bug Reports (snapshot builds)
by timmermac » 25 Feb 2012, 21:10
February 25th snapshot: wins and losses don't seem to accrue in quest mode.
Edit: never mind... It seems that as soon as I go into the card shop, the record updates.
Edit: never mind... It seems that as soon as I go into the card shop, the record updates.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
Re: Bug Reports (snapshot builds)
by Tranberry » 26 Feb 2012, 03:14
After doing a draft and trying to 'edit'(deck editor) forge crashes. Moving the 'saved draft folder' out of 'draft' and into the 'decks' folder makes it possible to open and edit, but crashes on save.
User experience, make or break. MtG drafting is fun.
-
Tranberry - Posts: 59
- Joined: 01 Apr 2010, 19:32
- Location: Sweden
- Has thanked: 136 times
- Been thanked: 3 times
Re: Bug Reports (snapshot builds)
by Chris H. » 26 Feb 2012, 03:25
`Tranberry wrote:After doing a draft and trying to 'edit'(deck editor) forge crashes. Moving the 'saved draft folder' out of 'draft' and into the 'decks' folder makes it possible to open and edit, but crashes on save.
Which version are you using?
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Bug Reports (snapshot builds)
by Max mtg » 26 Feb 2012, 06:43
fixed NPE on opening limited game deckgroup in 14388
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Bug Reports (snapshot builds)
by Tranberry » 26 Feb 2012, 13:28
- | Open
- Tranberry wrote:After doing a draft and trying to 'edit'(deck editor) forge crashes. Moving the 'saved draft folder' out of 'draft' and into the 'decks' folder makes it possible to open and edit, but crashes on save.
This is happening in: Forge version 1.2.4-SNAPSHOT-r14342Chris H. wrote:`
Which version are you using?
User experience, make or break. MtG drafting is fun.
-
Tranberry - Posts: 59
- Joined: 01 Apr 2010, 19:32
- Location: Sweden
- Has thanked: 136 times
- Been thanked: 3 times
Re: Bug Reports (snapshot builds)
by krevett » 26 Feb 2012, 14:07
Forge v1.2.4 r14398
I'll report another bug concerning Umezawa's Jitte, Jitte charged with two counters, the AI controls two 1/1 creatures.
If I remove the two counters to put -1/-1 on each of the 1/1 creature (I mean stacking the two) the first resolve and the first 1/1 is put to the graveyard, but when I resolve the second ability it seems to target the same creature (I got umezawa's jitte ability fizzles in the log)
I tested this many time and each time I stack the -1/-1 ability for two different creatures the second ability fizzles, targeting the first target it seems.
Of course I could just remove one counter target the first creature and let the stack resolve before I remove the second to target the other creature (and it works very well that way)
I'll report another bug concerning Umezawa's Jitte, Jitte charged with two counters, the AI controls two 1/1 creatures.
If I remove the two counters to put -1/-1 on each of the 1/1 creature (I mean stacking the two) the first resolve and the first 1/1 is put to the graveyard, but when I resolve the second ability it seems to target the same creature (I got umezawa's jitte ability fizzles in the log)
I tested this many time and each time I stack the -1/-1 ability for two different creatures the second ability fizzles, targeting the first target it seems.
Of course I could just remove one counter target the first creature and let the stack resolve before I remove the second to target the other creature (and it works very well that way)
Last edited by krevett on 27 Feb 2012, 08:44, edited 1 time in total.
- krevett
- Posts: 109
- Joined: 21 Feb 2012, 22:24
- Location: France
- Has thanked: 18 times
- Been thanked: 9 times
Re: Bug Reports (snapshot builds)
by Corwin72 » 26 Feb 2012, 15:43
I get the same thing. I also noticed that if you switch tabs then the info updates.timmermac wrote:February 25th snapshot: wins and losses don't seem to accrue in quest mode.
Edit: never mind... It seems that as soon as I go into the card shop, the record updates.
It is like that whole screen does not update. Quest opponents, gold, everything.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: Bug Reports (snapshot builds)
by Tranberry » 26 Feb 2012, 18:00
Update on my previous post;
Now I can draft and open the editor. But now the editor starts blank and you have to open the deck by using the menu and locate the deck in the list. I can also edit the deck and save, but when I try to play it, forge crashes.
edit:
Now I don't get a crash.
- | Open
- Version:
Forge version 1.2.4-SNAPSHOT-r14398
OS: Windows 7 Version: 6.1 Architecture: amd64
Java Version: 1.7.0_02 Vendor: Oracle Corporation
Detailed error trace:
java.lang.NullPointerException
at forge.control.home.ControlDraft.startGame(ControlDraft.java:135)
at forge.control.home.ControlDraft.access$100(ControlDraft.java:29)
at forge.control.home.ControlDraft$3$1.run(ControlDraft.java:66)
Now I can draft and open the editor. But now the editor starts blank and you have to open the deck by using the menu and locate the deck in the list. I can also edit the deck and save, but when I try to play it, forge crashes.
edit:
Now I don't get a crash.
User experience, make or break. MtG drafting is fun.
-
Tranberry - Posts: 59
- Joined: 01 Apr 2010, 19:32
- Location: Sweden
- Has thanked: 136 times
- Been thanked: 3 times
Re: Bug Reports (snapshot builds)
by Tranberry » 26 Feb 2012, 18:18
While playing with my drafted deck against the AI I got a crash, quitting the game and trying to redo the crash I get instant crash, the previous game is still there, at least game-stat-wise I see the health, hand and board.
Here are the crash report:
Here are the crash report:
- | Open
- This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.
ManaCost : addMana() error, mana not needed - 1
Version:
Forge version 1.2.4-SNAPSHOT-r14398
OS: Windows 7 Version: 6.1 Architecture: amd64
Java Version: 1.7.0_02 Vendor: Oracle Corporation
Detailed error trace:
java.lang.RuntimeException: ManaCost : addMana() error, mana not needed - 1
at forge.card.mana.ManaCost.addMana(ManaCost.java:382)
at forge.card.mana.ManaCost.payMana(ManaCost.java:295)
at forge.ComputerUtil.payManaCost(ComputerUtil.java:859)
at forge.ComputerUtil.canPayCost(ComputerUtil.java:512)
at forge.ComputerUtil.canPayCost(ComputerUtil.java:497)
at forge.ComputerUtil.canBePlayedAndPayedByAI(ComputerUtil.java:484)
at forge.ComputerUtil.playSpellAbilities(ComputerUtil.java:124)
at forge.ComputerAIGeneral.playCards(ComputerAIGeneral.java:94)
at forge.ComputerAIGeneral.main2(ComputerAIGeneral.java:77)
at forge.ComputerAIInput.think(ComputerAIInput.java:111)
at forge.ComputerAIInput.showMessage(ComputerAIInput.java:71)
at forge.GuiInput.setInput(GuiInput.java:68)
at forge.GuiInput.update(GuiInput.java:54)
at java.util.Observable.notifyObservers(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at forge.MyObservable.updateObservers(MyObservable.java:38)
at forge.control.ControlMatchUI.initMatch(ControlMatchUI.java:128)
at forge.game.GameNew.newGame(GameNew.java:87)
at forge.control.home.ControlDraft$6.run(ControlDraft.java:148)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
User experience, make or break. MtG drafting is fun.
-
Tranberry - Posts: 59
- Joined: 01 Apr 2010, 19:32
- Location: Sweden
- Has thanked: 136 times
- Been thanked: 3 times
Re: Bug Reports (snapshot builds)
by timmermac » 27 Feb 2012, 01:38
2/26 snapshot: Possible bug with Aura Shards. When the computer casts a creature with it out in play and Aura Shards is the only enchantment/artifact in play, shouldn't the Aura Shards be destroyed?
Edit: Chief Wiggum now has his picture, but the deck still shows up as Mystery Event.
Edit: Chief Wiggum now has his picture, but the deck still shows up as Mystery Event.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
Re: Bug Reports (snapshot builds)
by friarsol » 27 Feb 2012, 02:51
It should be targeted, but the trigger is a may. Triggers and forced targeting by the AI isn't 100% functional in all cases.timmermac wrote:2/26 snapshot: Possible bug with Aura Shards. When the computer casts a creature with it out in play and Aura Shards is the only enchantment/artifact in play, shouldn't the Aura Shards be destroyed?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Who is online
Users browsing this forum: No registered users and 8 guests