Page 2 of 5

Re: Problems with updating the SVN

PostPosted: 30 Jun 2011, 18:26
by Rob Cashwalker
I did a test run with my script and the game works. I get an error though, when starting a draft. Is this normal?
what error?

Re: Problems with updating the SVN

PostPosted: 30 Jun 2011, 20:40
by Sloth
Rob Cashwalker wrote:
I did a test run with my script and the game works. I get an error though, when starting a draft. Is this normal?
what error?
| 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

Re: Problems with updating the SVN

PostPosted: 01 Jul 2011, 14:26
by Chris H.
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/*

Re: Problems with updating the SVN

PostPosted: 01 Jul 2011, 15:10
by Corwin72
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.

Re: Problems with updating the SVN

PostPosted: 01 Jul 2011, 15:22
by Chris H.
Corwin72 wrote:Tried again and I am in.
`
Ah, good to hear. :D

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. :mrgreen:

Re: Problems with updating the SVN

PostPosted: 01 Jul 2011, 15:24
by Corwin72
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.

Re: Problems with updating the SVN

PostPosted: 01 Jul 2011, 15:33
by Hellfish
Hey, if I screw up, I COMMAND YOU TO COMPLAIN! :P
If the screw-up gives you an advantage, quit cheating and complain anyway :mrgreen:

Re: Problems with updating the SVN

PostPosted: 01 Jul 2011, 16:26
by Chris H.
Hellfish wrote:Hey, if I screw up, I COMMAND YOU TO COMPLAIN! :P
If the screw-up gives you an advantage, quit cheating and complain anyway :mrgreen:
`
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. :lol:

Re: Problems with updating the SVN

PostPosted: 01 Jul 2011, 16:35
by Sloth
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. :?:

Re: Problems with updating the SVN

PostPosted: 03 Jul 2011, 03:42
by Accountancy
Hey, is the SVN working yet? Does anyone have a usable script for windows?

Re: Problems with updating the SVN

PostPosted: 03 Jul 2011, 14:18
by Braids
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

Re: Problems with updating the SVN

PostPosted: 03 Jul 2011, 16:45
by Accountancy
I did, but I didn't seem to get much, will try again tomorrow.

Re: Problems with updating the SVN

PostPosted: 03 Jul 2011, 18:03
by Chris H.
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.

Re: Problems with updating the SVN

PostPosted: 04 Jul 2011, 09:42
by Accountancy
Fun! So we need to find someone with the original script? I tried using Snacko's, but I think it's too old.

Re: Problems with updating the SVN

PostPosted: 04 Jul 2011, 11:00
by Chris H.
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.