Page 4 of 5

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 04:53
by Accountancy
goonjamin wrote:I take no credit for the attached script other than I updated it and it appears to work.

I would extract it to a folder called forge-build. In it you will have a build folder (with all the support files) and 2 .bat scripts. build-forge.bat and run.bat. I have only ever run this from run.bat, which just tells build-forge.bat to copy everything to a folder called forge, created one directory up from where you are running the bat files from.

EX.
1. I run the run.bat from my folder C:\Users\Mike\forge-build
2. This will download everything, compile, and copy the completed files to C:\Users\Mike\forge
3. To run forge go to the directory in #2 and run the forge.exe
I ran the run.bat and under creating jarfile it says the system cannot find the path specified. Then I run forge and it can't find forge.jar.
This seems to be the same problem everytime.

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 09:59
by Hellfish
The problem is there in the SVN section. It seems your svn update was interrupted or some such, so the files remain locked and can't be updated until the locks are cleared. Open your command prompt and go to the folder where the svn sources are downloaded to and run svn with the cleanup parameter, as the message in your screenshot suggests. Then try to update again. (If it doesn't work, you probably don't have svn what you might call globally available. In that case try typing something like "..\build\svn.exe cleanup" instead.)

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 12:24
by Chris H.
UnderFlow wrote:I overlooked the missing .jar, thanks people.


Chris H. wrote:I think it would be a great idea for everyone if you could combine all of the pieces into an archive for us? I guess that this archive should include your build-forge.bat and the update.bat. Include the build folder with all of the required files might be a good idea.

A single archive with all of the necessary parts for people who might find it difficult to edit these files for themselves. :D
I kind of did this already, but it got buried in the "Do it yourself" thread: http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2767&p=55947#p55947
`
Ah, thank you for pointing this out. I merged the merged the text from that updated message into the first message by Snacko on that topic. I hope that this makes it easier for people to find in the future. :D

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 13:14
by Accountancy
Hellfish wrote:The problem is there in the SVN section. It seems your svn update was interrupted or some such, so the files remain locked and can't be updated until the locks are cleared. Open your command prompt and go to the folder where the svn sources are downloaded to and run svn with the cleanup parameter, as the message in your screenshot suggests. Then try to update again. (If it doesn't work, you probably don't have svn what you might call globally available. In that case try typing something like "..\build\svn.exe cleanup" instead.)
Tried all that, just says svn: '_(not actually an underscore, it's a shorter character)' is not a working directory

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 13:26
by Hellfish
Ah, you have to be in the directory where the sources downloaded from the repository are, usually "forge-svn".

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 13:41
by Accountancy
There's nothing in forge-svn, I tried that.

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 13:45
by Hellfish
No, *svn.exe* isn't in forge-svn, but the downloaded sources are. It's being finicky because the script doesn't set up svn's path in the global PATH environment variable which would let it be accessed from anywhere(It doesn't need to, however.)

TL;DR, just try this ;) : Go to the forge-svn directory and type this:
Code: Select all
..\build\svn.exe cleanup

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 13:50
by Accountancy
Look at the attachment to my last post ^
I tried that.
The Forge-SVN folder is empty. I tried downloading goonjamin's script from the do it yourself thread and I'm running it now, it seems to be working, we'll see soon.

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 13:53
by Hellfish
No, the key missing bit is "..\build\" before svn.exe. Hope the script works, but try that if not.

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 13:56
by Accountancy
Okay, I just tried that and it just starts a new line in the command prompt and ignores the fact that I typed anything.
The script is currently going through the card database, hopefully it works.

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 14:01
by Hellfish
Hmm, I'm out of ideas then. Sorry. :(
Fingers crossed the script works better!

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 14:27
by Accountancy
Well the new ones seems to be working, I don't know what was wrong with the original one, but I'm now using UnderFlow's script from the SVN do it yourself page

Re: Problems with updating the SVN

PostPosted: 05 Jul 2011, 15:13
by friarsol
Accountancy wrote:Well the new ones seems to be working, I don't know what was wrong with the original one, but I'm now using UnderFlow's script from the SVN do it yourself page
It just sounds like your SVN got in a bad state, and was unable to properly fix itself.

Re: Problems with updating the SVN

PostPosted: 06 Jul 2011, 12:44
by Corwin72
r10421
after when I start forge I receive the error

| Open
An error has occurred. 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


forge.Card.addStaticAbilityString(Ljava/lang/String;)V


Version:
Forge -- official beta: $Date: 2011-07-02 00:20:39 -0400 (Sat, 02 Jul 2011) $, SVN revision: $Revision: 10300 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_22 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NoSuchMethodError: forge.Card.addStaticAbilityString(Ljava/lang/String;)V
at forge.ReadCard.loadCard(Unknown Source)
at forge.ReadCard.run(Unknown Source)
at forge.card.cardFactory.CardFactory.readCards(Unknown Source)
at forge.card.cardFactory.CardFactory.<init>(Unknown Source)
at forge.AllZone.<clinit>(Unknown Source)
at forge.Gui_NewGame$2.run(Unknown Source)
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 happens about 1/3 through the progress bar.

Re: Problems with updating the SVN

PostPosted: 06 Jul 2011, 13:39
by Sloth
Corwin72 wrote:r10421
after when I start forge I receive the error

| Open
An error has occurred. 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


forge.Card.addStaticAbilityString(Ljava/lang/String;)V


Version:
Forge -- official beta: $Date: 2011-07-02 00:20:39 -0400 (Sat, 02 Jul 2011) $, SVN revision: $Revision: 10300 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_22 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NoSuchMethodError: forge.Card.addStaticAbilityString(Ljava/lang/String;)V
at forge.ReadCard.loadCard(Unknown Source)
at forge.ReadCard.run(Unknown Source)
at forge.card.cardFactory.CardFactory.readCards(Unknown Source)
at forge.card.cardFactory.CardFactory.<init>(Unknown Source)
at forge.AllZone.<clinit>(Unknown Source)
at forge.Gui_NewGame$2.run(Unknown Source)
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 happens about 1/3 through the progress bar.
This is a new function I added to the card class. Your version of card.java must be out of date.