Problems with updating the SVN
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
63 posts
• Page 2 of 5 • 1, 2, 3, 4, 5
Re: Problems with updating the SVN
by Rob Cashwalker » 30 Jun 2011, 18:26
what error?I did a test run with my script and the game works. I get an error though, when starting a draft. Is this normal?
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Problems with updating the SVN
by Sloth » 30 Jun 2011, 20:40
Rob Cashwalker wrote:what error?I did a test run with my script and the game works. I get an error though, when starting a draft. Is this normal?
- | Open
- forge/DeckColors
Version:
Forge -- official beta: $Date: 2011-01-06 17:34:48 +0100 (Do, 06 Jan 2011) $, SVN revision: $Revision: 4891 $
OS: Windows XP Version: 5.1 Architecture: x86
Java Version: 1.6.0_20 Vendor: Sun Microsystems Inc.
Detailed error trace:
java.lang.NoClassDefFoundError: forge/DeckColors
at forge.BoosterDraftAI.<init>(Unknown Source)
at forge.BoosterDraft_1.<init>(Unknown Source)
at forge.Gui_NewGame.setupDraft(Unknown Source)
at forge.Gui_NewGame.startButton_actionPerformed(Unknown Source)
at forge.Gui_NewGame$13.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: forge.DeckColors
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)
... 30 more
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Problems with updating the SVN
by Chris H. » 01 Jul 2011, 14:26
`Sloth wrote:Just for clarity do you use this bat file: update-and-build-xstream-fix.bat?
- | Open
- Code: Select all
build\svn.exe update forge-svn
java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath forge-svn\src;forge-svn\res\lib\google-collections-1.0.jar;forge-svn\res\lib\java-image-scaling-0.8.4.jar;forge-svn\res\lib\miglayout-3.7.3.1-swing.jar;forge-svn\res\lib\jl1.0.1.jar;forge-svn\res\lib\napkinlaf-1.2.jar;forge-svn\res\lib\nimrodlf.jar;forge-svn\res\lib\substance.jar;forge-svn\res\lib\xstream-1.3.1.jar;forge-svn\res\lib\xpp3_min-1.1.4c.jar -g:none -d output
mkdir output\META-INF
copy forge-svn\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
xcopy forge-svn\res\* forge\res\ /Y /S
copy forge-svn\forge.properties forge\ /Y
move forge.jar forge\
copy build\forge.exe forge\
del forge.zip
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
In an effort to be helpful, try this version of the script:
- Code: Select all
build\svn.exe update forge-svn
java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath forge-svn\src;forge-svn\res\lib\google-collections-1.0.jar;forge-svn\res\lib\java-image-scaling-0.8.4.jar;forge-svn\res\lib\miglayout-3.7.3.1-swing.jar;forge-svn\res\lib\jl1.0.1.jar;forge-svn\res\lib\napkinlaf-1.2.jar;forge-svn\res\lib\nimrodlf.jar;forge-svn\res\lib\substance.jar;forge-svn\res\lib\xstream-1.3.1.jar;forge-svn\res\lib\java-yield-1.0-SNAPSHOT-jar-with-dependencies.jar;forge-svn\res\lib\xpp3_min-1.1.4c.jar -g:none -d output
mkdir output\META-INF
copy forge-svn\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
xcopy forge-svn\res\* forge\res\ /Y /S
copy forge-svn\forge.properties forge\ /Y
move forge.jar forge\
copy build\forge.exe forge\
del forge.zip
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
-
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: Problems with updating the SVN
by Corwin72 » 01 Jul 2011, 15:10
Tried again and I am in.
Importing a deck to quest mode doubles the number of cards.
So a 60 card deck imported gives me 120.
Importing a deck to quest mode doubles the number of cards.
So a 60 card deck imported gives me 120.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: Problems with updating the SVN
by Chris H. » 01 Jul 2011, 15:22
`Corwin72 wrote:Tried again and I am in.
Ah, good to hear.

`Corwin72 wrote:Importing a deck to quest mode doubles the number of cards.
So a 60 card deck imported gives me 120.
I tested Hellfish's import code shortly after it was added to the code base and noticed a similar sort of result. I felt that I should not complain.

-
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: Problems with updating the SVN
by Corwin72 » 01 Jul 2011, 15:24
Agree. Just wanted to mention it.
I got hell a while back when I did not report a problem with fauna shaman. Not tapping was broken good.
I got hell a while back when I did not report a problem with fauna shaman. Not tapping was broken good.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: Problems with updating the SVN
by Hellfish » 01 Jul 2011, 15:33
Hey, if I screw up, I COMMAND YOU TO COMPLAIN! 
If the screw-up gives you an advantage, quit cheating and complain anyway

If the screw-up gives you an advantage, quit cheating and complain anyway

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
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
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Problems with updating the SVN
by Chris H. » 01 Jul 2011, 16:26
`Hellfish wrote:Hey, if I screw up, I COMMAND YOU TO COMPLAIN!
If the screw-up gives you an advantage, quit cheating and complain anyway
I suspect that this bonus may have been intentional and you were just waiting to see how long the rest of us would keep a secret.

-
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: Problems with updating the SVN
by Sloth » 01 Jul 2011, 16:35
I finally found what was wrong with drafting in my build: The DeckColors.java file was called deckColors.java in my forge.jar file. Whisky, Tango, Foxtrot. 

-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Problems with updating the SVN
by Accountancy » 03 Jul 2011, 03:42
Hey, is the SVN working yet? Does anyone have a usable script for windows?
- Accountancy
- Posts: 230
- Joined: 14 Aug 2009, 12:39
- Has thanked: 22 times
- Been thanked: 2 times
Re: Problems with updating the SVN
by Braids » 03 Jul 2011, 14:18
SVN seems fine to me, from a developer's perspective. did you try the updated script that Chris H. provided above? http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=4915&p=64045#p63864
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 

-
Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: Problems with updating the SVN
by Accountancy » 03 Jul 2011, 16:45
I did, but I didn't seem to get much, will try again tomorrow.
- Accountancy
- Posts: 230
- Joined: 14 Aug 2009, 12:39
- Has thanked: 22 times
- Been thanked: 2 times
Re: Problems with updating the SVN
by Chris H. » 03 Jul 2011, 18:03
`Accountancy wrote:I did, but I didn't seem to get much, will try again tomorrow.
I seem to remember that there are two scripts.
One script does the original download from the SVN and does a build.
The second script just updates your build to the current head revision.
The script in the above message might be the second script. Accountancy may need to get the first script from someone in order to do the original download from the SVN and build.
If I am correct about there being two scripts then the other script may also need to have the new dependency added to the script to make it functional.
-
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: Problems with updating the SVN
by Accountancy » 04 Jul 2011, 09:42
Fun! So we need to find someone with the original script? I tried using Snacko's, but I think it's too old.
- Accountancy
- Posts: 230
- Joined: 14 Aug 2009, 12:39
- Has thanked: 22 times
- Been thanked: 2 times
Re: Problems with updating the SVN
by Chris H. » 04 Jul 2011, 11:00
`Accountancy wrote:Fun! So we need to find someone with the original script? I tried using Snacko's, but I think it's too old.
The "run-first.bat" script turns out to be fairly simple:
- Code: Select all
build\svn.exe checkout http://cardforge.googlecode.com/svn/src/ forge-svn
There is also a build folder in Snacko's archive. I looked inside briefly. Someone else might have a suggestion.
I loaded the "svn.exe" file into a text editor. There is a small section dealing with Subversion and it is possible that you need to install Subversion to get Snacko's original "run-first.bat" script to run. But I am not sure about this.
-
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
63 posts
• Page 2 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: No registered users and 47 guests