It is currently 28 Aug 2025, 12:33
   
Text Size

Problems with updating the SVN

Post MTG Forge Related Programming Questions Here

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

Re: Problems with updating the SVN

Postby Accountancy » 05 Jul 2011, 04:53

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.
Attachments
Capture.JPG
Accountancy
 
Posts: 230
Joined: 14 Aug 2009, 12:39
Has thanked: 22 times
Been thanked: 2 times

Re: Problems with updating the SVN

Postby Hellfish » 05 Jul 2011, 09:59

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.)
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: Problems with updating the SVN

Postby Chris H. » 05 Jul 2011, 12:24

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
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: Problems with updating the SVN

Postby Accountancy » 05 Jul 2011, 13:14

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
Attachments
Capture.JPG
Accountancy
 
Posts: 230
Joined: 14 Aug 2009, 12:39
Has thanked: 22 times
Been thanked: 2 times

Re: Problems with updating the SVN

Postby Hellfish » 05 Jul 2011, 13:26

Ah, you have to be in the directory where the sources downloaded from the repository are, usually "forge-svn".
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: Problems with updating the SVN

Postby Accountancy » 05 Jul 2011, 13:41

There's nothing in forge-svn, I tried that.
Attachments
Capture.JPG
Accountancy
 
Posts: 230
Joined: 14 Aug 2009, 12:39
Has thanked: 22 times
Been thanked: 2 times

Re: Problems with updating the SVN

Postby Hellfish » 05 Jul 2011, 13:45

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
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: Problems with updating the SVN

Postby Accountancy » 05 Jul 2011, 13:50

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.
Last edited by Accountancy on 05 Jul 2011, 13:53, edited 1 time in total.
Accountancy
 
Posts: 230
Joined: 14 Aug 2009, 12:39
Has thanked: 22 times
Been thanked: 2 times

Re: Problems with updating the SVN

Postby Hellfish » 05 Jul 2011, 13:53

No, the key missing bit is "..\build\" before svn.exe. Hope the script works, but try that if not.
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: Problems with updating the SVN

Postby Accountancy » 05 Jul 2011, 13:56

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.
Accountancy
 
Posts: 230
Joined: 14 Aug 2009, 12:39
Has thanked: 22 times
Been thanked: 2 times

Re: Problems with updating the SVN

Postby Hellfish » 05 Jul 2011, 14:01

Hmm, I'm out of ideas then. Sorry. :(
Fingers crossed the script works better!
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: Problems with updating the SVN

Postby Accountancy » 05 Jul 2011, 14:27

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
Accountancy
 
Posts: 230
Joined: 14 Aug 2009, 12:39
Has thanked: 22 times
Been thanked: 2 times

Re: Problems with updating the SVN

Postby friarsol » 05 Jul 2011, 15:13

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Problems with updating the SVN

Postby Corwin72 » 06 Jul 2011, 12:44

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.
User avatar
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

Postby Sloth » 06 Jul 2011, 13:39

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.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 36 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 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 36 guests

Login Form