SVN Bug Reports
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: SVN Bug Reports
by Fnoed » 06 Feb 2011, 20:21
C'mon man... Everyone is doing it.friarsol wrote:What a pusher you are.

Re: SVN Bug Reports
by Chris H. » 06 Feb 2011, 21:33
`timmermac wrote:I'm using r6165 and am having the same problem. Is there something that can be done for people that use Snacko's scripts?
Good point. I assume that Snacko's scripts will need modification to handle the new xstream library. Lazylockie, Timmermac and a few other people may need to wait until the script is updated.

-
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
by Chris H. » 06 Feb 2011, 22:19
I have converted the last evoke card that I can handle via AF and trigger. The card works OK for me but when the card resolves the LtB ability for the AI I get this null error exception. Error exception and card file below:
- Code: Select all
Name:Reveillark
ManaCost:4 W
Types:Creature Elemental
Text:no text
PT:4/3
K:Flying
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ TrigReturnCreatures | TriggerDescription$ When CARDNAME leaves the battlefield, return up to two target creature cards with power 2 or less from your graveyard to the battlefield.
K:Evoke:5 W
SVar:TrigReturnCreatures:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Battlefield | TargetMin$ 0 | TargetMax$ 2 | ValidTgts$ Creature.powerLE2+YouCtrl | TgtPrompt$ Choose target creature
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+evoked | Execute$ TrigSac | Secondary$ True | TriggerDescription$ When CARDNAME enters the battlefield, if you cast it by it's evoke cost, sacrifice it.
SVar:TrigSac:AB$Sacrifice | Cost$ 0
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/reveillark.jpg
SetInfo:MOR|Rare|http://magiccards.info/scans/en/mt/22.jpg
End
- 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
null
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.NullPointerException
at forge.AbilityFactory_ChangeZone.changeKnownOriginCanPlayAI(AbilityFactory_ChangeZone.java:676)
at forge.AbilityFactory_ChangeZone.changeZoneCanPlayAI(AbilityFactory_ChangeZone.java:124)
at forge.AbilityFactory_ChangeZone.access$0(AbilityFactory_ChangeZone.java:116)
at forge.AbilityFactory_ChangeZone$1.doTrigger(AbilityFactory_ChangeZone.java:35)
at forge.TriggerHandler$1.doTrigger(TriggerHandler.java:321)
at forge.TriggerHandler.runSingleTrigger(TriggerHandler.java:803)
at forge.TriggerHandler.runTrigger(TriggerHandler.java:192)
at forge.GameAction.moveTo(GameAction.java:77)
at forge.GameAction.moveToGraveyard(GameAction.java:165)
at forge.GameAction.sacrificeDestroy(GameAction.java:2068)
at forge.GameAction.destroyNoRegeneration(GameAction.java:674)
at forge.AbilityFactory_Destroy.destroyResolve(AbilityFactory_Destroy.java:353)
at forge.AbilityFactory_Destroy$2.resolve(AbilityFactory_Destroy.java:60)
at forge.MagicStack.resolveStack(MagicStack.java:666)
at forge.Phase.passPriority(Phase.java:507)
at forge.ComputerAI_General.stackResponse(ComputerAI_General.java:286)
at forge.ComputerAI_General.stack_not_empty(ComputerAI_General.java:241)
at forge.ComputerAI_Input.think(ComputerAI_Input.java:43)
at forge.ComputerAI_Input.showMessage(ComputerAI_Input.java:31)
at forge.GuiInput.setInput(GuiInput.java:27)
at forge.GuiInput.update(GuiInput.java:21)
at java.util.Observable.notifyObservers(Observable.java:142)
at java.util.Observable.notifyObservers(Observable.java:98)
at forge.MyObservable.updateObservers(MyObservable.java:9)
at forge.InputControl.resetInput(InputControl.java:52)
at forge.Phase.passPriority(Phase.java:498)
at forge.Input_PassPriority.selectButtonOK(Input_PassPriority.java:35)
at forge.GuiInput.selectButtonOK(GuiInput.java:35)
at forge.GuiDisplay3.okButtonActionPerformed(GuiDisplay3.java:962)
at forge.GuiDisplay3.access$3(GuiDisplay3.java:961)
at forge.GuiDisplay3$26.actionPerformed(GuiDisplay3.java:756)
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)
-
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
by friarsol » 06 Feb 2011, 22:50
I'll take a look tomorrow. I have wings and guac to eat, and football to watch.Chris H. wrote:I have converted the last evoke card that I can handle via AF and trigger. The card works OK for me but when the card resolves the LtB ability for the AI I get this null error exception. Error exception and card file below:
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: SVN Bug Reports
by Chris H. » 06 Feb 2011, 23:12
`friarsol wrote:I'll take a look tomorrow. I have wings and guac to eat, and football to watch.
Sounds good, I making some stir fry for my wife and I before the superbowl.

-
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
by friarsol » 07 Feb 2011, 04:09
I downloaded to check it out. But I don't see Call Hierarchy on the right click menu. Anyway to get that on there? I use that crap all the time.Fnoed wrote:C'mon man... Everyone is doing it.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: SVN Bug Reports
by Fnoed » 07 Feb 2011, 04:49
There is the CodeExplorer plugin that seems to do what you want. (Demo here) Install it from File->Settings->Plugins.
There is also "Find Usages..." in the context menu; it doesn't show called methods but does find callers, which is usually what I need.
There is also "Find Usages..." in the context menu; it doesn't show called methods but does find callers, which is usually what I need.
Re: SVN Bug Reports
by timmermac » 07 Feb 2011, 07:23
Can the 2 XStream jar files that are present on the googlecode SVN page be placed in the /res/lib folder in the r6165 folder that I have to make that release work? The files are xstream-1.3.1.jar and xpp3_min-1.1.4c.jar
"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: SVN Bug Reports
by Fnoed » 07 Feb 2011, 07:25
For now, you can get it to compile by using this batch file to start the build.Chris H. wrote:`timmermac wrote:I'm using r6165 and am having the same problem. Is there something that can be done for people that use Snacko's scripts?
Good point. I assume that Snacko's scripts will need modification to handle the new xstream library. Lazylockie, Timmermac and a few other people may need to wait until the script is updated.
Those jar files should already be there in r6165.timmermac wrote:Can the 2 XStream jar files that are present on the googlecode SVN page be placed in the /res/lib folder in the r6165 folder that I have to make that release work? The files are xstream-1.3.1.jar and xpp3_min-1.1.4c.jar
Re: SVN Bug Reports
by Corwin72 » 07 Feb 2011, 13:21
I am now getting this error when I use you new script and try to create a new quest file:
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:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com
com/thoughtworks/xstream/XStream
Version:
Forge -- official beta: $Date: 2011-01-06 11:34:48 -0500 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $
OS: Windows Vista Version: 6.0 Architecture: x86
Java Version: 1.6.0_23 Vendor: Sun Microsystems Inc.
Detailed error trace:
java.lang.NoClassDefFoundError: com/thoughtworks/xstream/XStream
at forge.quest.data.QuestData.saveData(Unknown Source)
at forge.Gui_QuestOptions.newQuestButton_actionPerformed(Unknown Source)
at forge.Gui_QuestOptions$3.actionPerformed(Unknown Source)
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)
Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.XStream
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 28 more
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:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com
com/thoughtworks/xstream/XStream
Version:
Forge -- official beta: $Date: 2011-01-06 11:34:48 -0500 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $
OS: Windows Vista Version: 6.0 Architecture: x86
Java Version: 1.6.0_23 Vendor: Sun Microsystems Inc.
Detailed error trace:
java.lang.NoClassDefFoundError: com/thoughtworks/xstream/XStream
at forge.quest.data.QuestData.saveData(Unknown Source)
at forge.Gui_QuestOptions.newQuestButton_actionPerformed(Unknown Source)
at forge.Gui_QuestOptions$3.actionPerformed(Unknown Source)
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)
Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.XStream
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 28 more
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Bug Reports
by Sloth » 07 Feb 2011, 14:28
Just adding the two jar files is not enough to fix the script. I get the same error as Corwin.Fnoed wrote:For now, you can get it to compile by using this batch file to start the build.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by timmermac » 07 Feb 2011, 16:58
I get the same error as Corwin and Sloth... but at least it's letting me get past the Quest Mode button.
"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: SVN Bug Reports
by friarsol » 07 Feb 2011, 17:43
Hey Chris I just tested this and it worked for me. What conditions were you testing it under (Did the AI have any creatures in the grave? Was it Evoked?)Chris H. wrote:I have converted the last evoke card that I can handle via AF and trigger. The card works OK for me but when the card resolves the LtB ability for the AI I get this null error exception. Error exception and card file below:
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: SVN Bug Reports
by Chris H. » 07 Feb 2011, 18:03
`friarsol wrote:Hey Chris I just tested this and it worked for me. What conditions were you testing it under (Did the AI have any creatures in the grave? Was it Evoked?)Chris H. wrote:I have converted the last evoke card that I can handle via AF and trigger. The card works OK for me but when the card resolves the LtB ability for the AI I get this null error exception. Error exception and card file below:
I will have to go back and try to set up a similar situation.

I think the test deck had several Reveillark and several small weenies. Terror was included to seed the graveyard. I suspect that I Terror-ed a non-Evoked Reveillark on the AI side.
I suspect that the AI weenies were still on the battlefield and as such there were no valid targets in the AI graveyard. That might help to explain why I got a null type of error.
I would go back now and try to retest, but I synced with the SVN and now have 31 errors. Eclipse is telling me that "Constant.Rarity" cannot be resolved.

-
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
by friarsol » 07 Feb 2011, 18:07
Bah. Should be fixed now.Chris H. wrote:I would go back now and try to retest, but I synced with the SVN and now have 31 errors. Eclipse is telling me that "Constant.Rarity" cannot be resolved.
- 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 39 guests