It is currently 15 May 2025, 08:34
   
Text Size

SVN Build, Do It Yourself

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

Re: SVN Build, Do It Yourself

Postby Hellfish » 07 Jul 2011, 13:04

Was "robocopy" a utility supposed to be include in the build folder, or is this non-windows and I just blanked on that fact? :lol:

EDIT: Welp, looked it up. Strange that I apparently don't have it, being on XP SP2... :?:
EDIT2: Getting SP2 Support Tools, see if that makes things better. There should probably be a note about that being needed if robocopy is the only option.
EDIT3: It did not. Screw it, I found robocopy bundled with my UBCD4Win package so I just copied it from there and changed the script to run it from the build folder instead. *phew*
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: SVN Build, Do It Yourself

Postby UnderFlow » 07 Jul 2011, 15:06

Hellfish wrote:Was "robocopy" a utility supposed to be include in the build folder, or is this non-windows and I just blanked on that fact? :lol:
Snackos script used xcopy iirc, but it says "Xcopy is now deprecated, please use Robocopy." under Vista and later. :?
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby Hellfish » 07 Jul 2011, 15:21

Huh, that explains things. Better mention that somewhere.
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: SVN Build, Do It Yourself

Postby UnderFlow » 07 Jul 2011, 17:03

I'm adding a hint on this in the next version of the script.
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby phm » 09 Jul 2011, 13:34

Thanks for your efforts!

I can access the internet only through my cellphone at the moment, making it both slow and unstable. With 1.3 I started to download from the SVN, but the internet disconnected. Now, when I want to resume the download I get this error:
Code: Select all
Forge SVN Builder V1.3

By UnderFlow
This script is for the most part a modified version of existing Forge build scri
pts. The original creators of those scripts or script parts are (in chronologica
l order):
Snacko
Fnoed
Chris H.

We would also like to thank all Forge contributors.

For more information visit http://www.slightlymagic.net/forum/viewtopic.php?f=26
&t=2767

Target directory: "d:\games\forge"


---------- 1: Updating SVN ---------------------------

svn: Working copy 'forge-svn' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

---------- 2: Creating jar file ----------------------

        1 Datei(en) kopiert.

---------- 3: Copying Forge to target directory ------






---------- 4: Cleaning up ----------------------------

Drücken Sie eine beliebige Taste . . .
I would do a clean redownload, but as the download was almost complete I hope there is another solution.
User avatar
phm
 
Posts: 21
Joined: 05 May 2011, 19:20
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby UnderFlow » 09 Jul 2011, 15:27

Here's a short script that does a cleanup: http://dl.dropbox.com/u/5988273/cleanup.bat

Put it in the same directory as build-forge.bat and run it.
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby goonjamin » 09 Jul 2011, 16:35

Hi,

Is anyone else having issues using this script today?

When I tried to compile r10544 I received the error below. In the SVN bugs thread Braids suggested I re-compile as the class does exist. I just re-tryed with r10547 and am still receiving the same error?

Code: Select all
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:
   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


forge/card/abilityFactory/AbilityFactory_Attach


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

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_26 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NoClassDefFoundError: forge/card/abilityFactory/AbilityFactory_Attach
   at forge.card.abilityFactory.AbilityFactory.getAbility(Unknown Source)
   at forge.card.cardFactory.CardFactory.getCard2(Unknown Source)
   at forge.card.cardFactory.CardFactory.getCard(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.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$000(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(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.card.abilityFactory.AbilityFactory_Attach
   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)
   ... 20 more
goonjamin
 
Posts: 133
Joined: 19 Aug 2010, 19:51
Has thanked: 39 times
Been thanked: 5 times

Re: SVN Build, Do It Yourself

Postby Braids » 09 Jul 2011, 17:21

goonjamin wrote:When I tried to compile r10544 I received the error below.
what you posted is certainly an error, but it does not look like a compilation error. that is an error condition detected by forge while it is running. this happens after compilation.

could you post the commands and/or scripts you are using to update, compile, and run?

note to self: goonjamin is running Windows 7.
"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. ;)
User avatar
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: SVN Build, Do It Yourself

Postby phm » 09 Jul 2011, 18:10

UnderFlow wrote:Here's a short script that does a cleanup: http://dl.dropbox.com/u/5988273/cleanup.bat

Put it in the same directory as build-forge.bat and run it.
Works like a charm, thanks! :)
User avatar
phm
 
Posts: 21
Joined: 05 May 2011, 19:20
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Chris H. » 09 Jul 2011, 18:13

Braids wrote:
goonjamin wrote:When I tried to compile r10544 I received the error below.
what you posted is certainly an error, but it does not look like a compilation error. that is an error condition detected by forge while it is running. this happens after compilation.

could you post the commands and/or scripts you are using to update, compile, and run?.
`
It might be worth the effort to do a "start over". Use the build script to build a new working copy of the SVN at the head version. And then in a day or two update to the newest version via the run script.
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: SVN Build, Do It Yourself

Postby goonjamin » 09 Jul 2011, 18:14

I am using version 1.3 of the build script found in the 1st post of this topic.

The script updates SVN, compiles and copy the files to the target directory. From there I launch using the the forge.exe. Note I have also tried launching from the command line with "java -Xmx1024m -jar run-forge.jar" and receive the same error.
goonjamin
 
Posts: 133
Joined: 19 Aug 2010, 19:51
Has thanked: 39 times
Been thanked: 5 times

Re: SVN Build, Do It Yourself

Postby Braids » 09 Jul 2011, 18:23

goonjamin wrote:The script updates SVN, compiles and copy the files to the target directory. From there I launch using the the forge.exe . . .
there is something wrong with the script either in the updating or in the compiling. it's probably in the former. so i agree totally with Chris H. that you should start over. please try that and let us know how it goes.
Chris H. wrote:It might be worth the effort to do a "start over". Use the build script to build a new working copy of the SVN at the head version.
"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. ;)
User avatar
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: SVN Build, Do It Yourself

Postby Chris H. » 09 Jul 2011, 18:23

goonjamin wrote:I am using version 1.3 of the build script found in the 1st post of this topic.

The script updates SVN, compiles and copy the files to the target directory. From there I launch using the the forge.exe. Note I have also tried launching from the command line with "java -Xmx1024m -jar run-forge.jar" and receive the same error.
`
Have you tried using UnderFlow's cleanup script first? Then afterwards, run the build script?
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: SVN Build, Do It Yourself

Postby goonjamin » 09 Jul 2011, 18:34

I just deleted both the output folder and the complete build folder (which included my local copy of the SVN). I re-downloaded version 1.3 from the 1st post and extracted it. Ran the run.bat, it re-downloaded the whole SVN and compiled. I just tried running the output and am still getting the same error?

Really odd 2 days ago this was working fine for me and been for a few month prior to this as well?
goonjamin
 
Posts: 133
Joined: 19 Aug 2010, 19:51
Has thanked: 39 times
Been thanked: 5 times

Re: SVN Build, Do It Yourself

Postby timmermac » 09 Jul 2011, 20:24

I'm not sure if Underflow's scripts are working as they should. I work on Windows XP, so robocopy doesn't get recognized as a valid command, and I don't get a run-forge.jar file or a forge.exe file. Is there a working version of a script that will do the trick?
"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
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 42 guests


Who is online

In total there are 42 users online :: 0 registered, 0 hidden and 42 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 42 guests

Login Form