It is currently 15 Aug 2025, 10:09
   
Text Size

SVN Bug Reports

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: SVN Bug Reports

Postby Chris H. » 09 Feb 2011, 18:22

In another experiment, I placed a copy of LovinTheGame's questData file into my quest folder and attempted to Continue Quest and got this error exception:

Code: Select all
An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
   http://www.slightlymagic.net/forum/viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
   mtgerror@yahoo.com


Error loading Quest Data


Version:
Forge -- official beta: $Date: 2011-01-06 11:34:48 -0500 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Mac OS X Version: 10.6.6 Architecture: x86_64

Java Version: 1.6.0_22 Vendor: Apple Inc.

Detailed error trace:
java.lang.IllegalArgumentException: XPP3 pull parser library not present. Specify another driver. For example: new XStream(new DomDriver())
   at com.thoughtworks.xstream.io.xml.XppDriver.loadLibrary(XppDriver.java:62)
   at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:43)
   at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
   at forge.quest.data.QuestData.loadData(QuestData.java:225)
   at forge.Gui_QuestOptions.continueQuestButton_actionPerformed(Gui_QuestOptions.java:198)
   at forge.Gui_QuestOptions$2.actionPerformed(Gui_QuestOptions.java:112)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
   at java.awt.Component.processMouseEvent(Component.java:6352)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6117)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4714)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2478)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
User avatar
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: SVN Bug Reports

Postby lovinthegame » 09 Feb 2011, 18:28

friarsol wrote:Sorry I just cheated my way through a few quick games and won about 4 in a row, without this crash. Maybe someone else can try to find what's going on, but I don't see any issues.
No worries thanks for trying.
lovinthegame
 
Posts: 20
Joined: 09 Mar 2010, 17:35
Location: Bartlesville, OK
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Bug Reports

Postby Jaedayr » 09 Feb 2011, 20:12

Jaedayr wrote:r6052
Code: Select all
Error - possibly missing URL for: citanul_hierophants.jpg
Error - possibly missing URL for: sachi_daughter_of_seshiro.jpg
Error - possibly missing URL for: basal_sliver.jpg
I looked at the txt file for the first card and everything looks fine to me.
Chris, you seem to have one of the magic wands for fixing problems with images. I didn't know if you had seen this or not, but it might be something easily fixed before the next beta.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: SVN Bug Reports

Postby Jaedayr » 09 Feb 2011, 20:35

r6266

When winning a rare card using the new quest mode UI, the pic does not show up in the *You have won a random rare* window. I noticed this yesterday with a previous build and again today. There are 12 *n* cards in the deck editor so apparently it is being added to the collection properly.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: SVN Bug Reports

Postby Chris H. » 09 Feb 2011, 21:01

Jaedayr wrote:
Jaedayr wrote:r6052
Code: Select all
Error - possibly missing URL for: citanul_hierophants.jpg
Error - possibly missing URL for: sachi_daughter_of_seshiro.jpg
Error - possibly missing URL for: basal_sliver.jpg
I looked at the txt file for the first card and everything looks fine to me.
Chris, you seem to have one of the magic wands for fixing problems with images. I didn't know if you had seen this or not, but it might be something easily fixed before the next beta.
`
Look at the card files for these cards. "Svar" is not recognized as "SVar". I will merge this fix into the SVN.
User avatar
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: SVN Bug Reports

Postby Chris H. » 09 Feb 2011, 21:34

I just received a java heap error while downloading the recent 4 cards that were added to the SVN, rev6269. If no one has an objection, I will delete the background pic from the SVN for the time being.
`
Code: Select all
An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
   http://www.slightlymagic.net/forum/viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
   mtgerror@yahoo.com


Java heap space


Version:
Forge -- official beta: $Date: 2011-01-06 11:34:48 -0500 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Mac OS X Version: 10.6.6 Architecture: x86_64

Java Version: 1.6.0_22 Vendor: Apple Inc.

Detailed error trace:
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:2734)
   at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
   at java.util.ArrayList.add(ArrayList.java:351)
   at forge.CardList.addAll(CardList.java:123)
   at forge.CardList.<init>(CardList.java:24)
   at forge.CardFactory.getAllCards(CardFactory.java:85)
   at forge.Gui_DownloadPictures.getNeededCards(Gui_DownloadPictures.java:359)
   at forge.Gui_DownloadPictures.startDownload(Gui_DownloadPictures.java:312)
   at forge.Gui_NewGame$DownloadAction.actionPerformed(Gui_NewGame.java:978)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
   at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
   at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
   at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:137)
   at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
   at java.awt.Component.processMouseEvent(Component.java:6352)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6117)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4714)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2478)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
User avatar
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: SVN Bug Reports

Postby gofishus » 09 Feb 2011, 21:53

For some reason, in the deck editor, when I save a deck and open it up again, some cards generate an exception. Example:

Code: Select all
java.lang.RuntimeException: CardFactory : getCard() invalid card name - Breeding Pool|DIS
   at forge.CardFactory.getCard2(CardFactory.java:267)
   at forge.CardFactory.getCard(CardFactory.java:244)
   at forge.Gui_DeckEditor_Menu.showConstructedDeck(Gui_DeckEditor_Menu.java:831)
   at forge.Gui_DeckEditor_Menu.openConstructed(Gui_DeckEditor_Menu.java:813)
   at forge.Gui_DeckEditor_Menu.access$8(Gui_DeckEditor_Menu.java:798)
   at forge.Gui_DeckEditor_Menu$21$1.run(Gui_DeckEditor_Menu.java:1273)
   at java.awt.event.InvocationEvent.dispatch(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)
This will happen for various cards, seems like its looking for the card but with the attached set in the name.
gofishus
 
Posts: 34
Joined: 09 Oct 2010, 04:57
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Bug Reports

Postby Jaedayr » 09 Feb 2011, 22:02

r6271

Ob Nixilis, the Fallen is in play. The next turn I played a Plains and was asked if I wanted to activate and I said yes. A second window popped up with the title *Select target spell.* with his Landfall ability as the only item on the list. There were no other spells on the stack. It resolved correctly. This seems to be a occasional bug, it does not appear all the time but I have seen it a few times recently.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: SVN Bug Reports

Postby friarsol » 09 Feb 2011, 22:29

gofishus wrote:For some reason, in the deck editor, when I save a deck and open it up again, some cards generate an exception. Example:

This will happen for various cards, seems like its looking for the card but with the attached set in the name.
I can confirm this happened for me too. (I think with Lure)
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby friarsol » 09 Feb 2011, 22:32

r6272
Pygmy Troll is incorrect. It should trigger for each creature blocking it. "Whenever Pygmy Troll becomes blocked by a creature, Pygmy Troll gets +1/+1 until end of turn." but it looks to be only caring if it gets blocked

Code: Select all
T:Mode$ AttackerBlocked | CardValid$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME becomes blocked, it gets +1/+1 until end of turn.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby lazylockie » 09 Feb 2011, 22:38

friarsol wrote:r6272
Pygmy Troll is incorrect. It should trigger for each creature blocking it. "Whenever Pygmy Troll becomes blocked by a creature, Pygmy Troll gets +1/+1 until end of turn." but it looks to be only caring if it gets blocked

Code: Select all
T:Mode$ AttackerBlocked | CardValid$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME becomes blocked, it gets +1/+1 until end of turn.
this should fix:

Code: Select all
Name:Pygmy Troll
ManaCost:1 G
Types:Creature Troll
Text:no text
PT:1/1
A:AB$Regenerate | Cost$ G | SpellDescription$ Regenerate CARDNAME.
T:Mode$ AttackerBlocked | CardValid$ Card.Self | ValidBlocker$ Creature | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME becomes blocked, it gets +1/+1 until end of turn.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ 1 | NumDef$ 1
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/pygmy_troll.jpg
SetInfo:EXO|Common|http://magiccards.info/scans/en/ex/118.jpg
End
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

Re: SVN Bug Reports

Postby Rob Cashwalker » 10 Feb 2011, 02:50

gofishus wrote:For some reason, in the deck editor, when I save a deck and open it up again, some cards generate an exception. Example:

Code: Select all
java.lang.RuntimeException: CardFactory : getCard() invalid card name - Breeding Pool|DIS
   at forge.CardFactory.getCard2(CardFactory.java:267)
   at forge.CardFactory.getCard(CardFactory.java:244)
   at forge.Gui_DeckEditor_Menu.showConstructedDeck(Gui_DeckEditor_Menu.java:831)
   at forge.Gui_DeckEditor_Menu.openConstructed(Gui_DeckEditor_Menu.java:813)
   at forge.Gui_DeckEditor_Menu.access$8(Gui_DeckEditor_Menu.java:798)
   at forge.Gui_DeckEditor_Menu$21$1.run(Gui_DeckEditor_Menu.java:1273)
   at java.awt.event.InvocationEvent.dispatch(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)
This will happen for various cards, seems like its looking for the card but with the attached set in the name.
Fixed r.6274
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: SVN Bug Reports

Postby gofishus » 10 Feb 2011, 19:33

Rob Cashwalker wrote:Fixed r.6274
Thanks, but now I get another exception when I'm loading my bigger decks (over 1000 cards in the deck)
Code: Select all
java.lang.ArrayIndexOutOfBoundsException: 1
   at forge.GameAction.newGame(GameAction.java:2330)
   at forge.Gui_NewGame.startButton_actionPerformed(Gui_NewGame.java:605)
   at forge.Gui_NewGame$11.actionPerformed(Gui_NewGame.java:403)
   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)
Looks like it found some cards with | in the name, but then splits it wrong, and gets an out of bound exception.
gofishus
 
Posts: 34
Joined: 09 Oct 2010, 04:57
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Bug Reports

Postby Hellfish » 10 Feb 2011, 19:43

I think that this later error is because of a card that lacks setinfo. Try running the setInfoScript.py script if you have python.
EDIT: On second thought, you may have to resave the deck as well. Open it in the deck editor and "save as" another filename and the load that.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: SVN Bug Reports

Postby friarsol » 10 Feb 2011, 19:49

It looks like (some) triggers that care about SpellCast may not be getting flushed until after the Spell resolves.

I have Hand of the Praetors in play and I cast Phyrexian Juggernaut. I get asked who I want to target and I select the AI. Nothing goes on the stack. Then Juggernaut resolves. Then the trigger hits the stack.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 24 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 24 users online :: 0 registered, 0 hidden and 24 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 24 guests

Login Form