SVN Build, Do It Yourself
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
SVN Build, Do It Yourself
by Snacko » 22 Jun 2010, 19:26
I made a package for windows that automates svn build, so everyone can check out the newest and most buggy version 
http://www.mediafire.com/file/jekjjk2og ... ldv2.3.zip
Software used:
Eclipse Java Compiler ecj
7zip
Subversion
Needed software:
Windows (if you have linux/mac you should be able to obtain the software and write your own bash scripts based on the batches)
Java Runtime (I guess you already have it if you want to run Forge)
Usage:
run-first.bat > sets up local copy of SVN run this the first time you use the package or if you delete forge-svn directory
update-and-build.bat > updates your local copy and builds forge, once it's done you get forge directory with all you need and a forge.zip which is a compressed copy of this directory
The 2.3 version has everything included and working. It's a full standalone solution.

http://www.mediafire.com/file/jekjjk2og ... ldv2.3.zip
Software used:
Eclipse Java Compiler ecj
7zip
Subversion
Needed software:
Windows (if you have linux/mac you should be able to obtain the software and write your own bash scripts based on the batches)
Java Runtime (I guess you already have it if you want to run Forge)
Usage:
run-first.bat > sets up local copy of SVN run this the first time you use the package or if you delete forge-svn directory
update-and-build.bat > updates your local copy and builds forge, once it's done you get forge directory with all you need and a forge.zip which is a compressed copy of this directory
The 2.3 version has everything included and working. It's a full standalone solution.
Chris H wrote:This is another package of scripts produced by another member. This was added to Snacko's message in an effort to make this material easier to find.
UnderFlow wrote:I took the batch files, merged them and made the output a bit prettier.
This is the result: http://dl.dropbox.com/u/5988273/build-forge.bat
The target path is designated by the first command line parameter (it has to be in double quotes). (if you don't know how to set it: http://vgstrategies.about.com/od/faq/a/CommandLineP.htm)
You still need the rest of the files from the OP.
Edit:
I created a package containing everything needed: http://dl.dropbox.com/u/5988273/forge-build.zip
It also contains a file called "run.bat" that runs "build-forge.bat" in a way that makes it create the forge directory as a sibling to the build directory.
Suggestions for additional features are welcome.
Update:
The first version contained a bug which caused it to copy directories to the wrong place. I apologize for any trouble that this has caused. Please redownload the file.
In addition to the bugfix, the updated version contains some minor tweaks.
Update 1.1:
- "display_new_layout.xml" does not get copied anymore.
- Added comments on how to customize the output (open and modify the file with a text editor).
- Modified header text.
Update 1.2:
- Added "forge-svn\res\lib\java-yield-1.0-SNAPSHOT-jar-with-dependencies.jar" to the java command.
Build script updated with the new jars (version 1.3):
- Batch file only: http://dl.dropbox.com/u/5988273/build-forge.bat
- Complete package: http://dl.dropbox.com/u/5988273/forge-build.zip
Update 1.4:
- Added a few lines to run.bat to make it update build-forge.bat, like goonjamin suggested. Lastly, since there were some people with locking issues, I added the cleanup script to the zip package.
- http://dl.dropbox.com/u/5988273/forge-build.zip
- http://dl.dropbox.com/u/5988273/build-forge.bat
- http://dl.dropbox.com/u/5988273/run.bat
- http://dl.dropbox.com/u/5988273/cleanup.bat
Snackos script used xcopy iirc, but it says "Xcopy is now deprecated, please use Robocopy." under Vista and later.
Last edited by Chris H. on 11 Jul 2011, 13:26, edited 13 times in total.
Reason: Added UnderFlow's scripts including 1.3 revission
Reason: Added UnderFlow's scripts including 1.3 revission
Re: SVN Build, Do It Yourself
by DennisBergkamp » 22 Jun 2010, 19:58
Wow, that's very cool, thanks for posting Snacko 

-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: SVN Build, Do It Yourself
by Corwin72 » 23 Jun 2010, 12:49
Is there a different link available? I can not pull it up.
Never mind. The link went live again.
Now I get the error when I run the first-run.bat
This application has failed to start because libsasl.dll was not found. reinstalling the application may fix this problem.
I found a copy of libsasl.dll online but when I ran the application I received an entry point not found error.
The error is The procedure entry point sasl_errdetail could not be located in the dynamic link library libsasl.dll
Any ideas on what I should reinstall?
Never mind. The link went live again.
Now I get the error when I run the first-run.bat
This application has failed to start because libsasl.dll was not found. reinstalling the application may fix this problem.
I found a copy of libsasl.dll online but when I ran the application I received an entry point not found error.
The error is The procedure entry point sasl_errdetail could not be located in the dynamic link library libsasl.dll
Any ideas on what I should reinstall?
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Build, Do It Yourself
by silly freak » 23 Jun 2010, 15:11
this seems weird, libsasl is not required by forge, but likely by your svn client. everything works fine on linux, but I don't have a clue for windows... anyhow, it's not forge-related
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
Re: SVN Build, Do It Yourself
by Corwin72 » 23 Jun 2010, 15:40
Does anyone have a direct link to the SVN client that I need to use? Perhaps I am using the wrong one.
Eclipse SDK
Version: 3.5.2
Build id: M20100211-1343
Eclipse SDK
Version: 3.5.2
Build id: M20100211-1343
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Build, Do It Yourself
by Snacko » 23 Jun 2010, 15:41
I had TortoiseSVN installed and overlooked those dlls. I've reuploaded the package, it now should work standalone. I've also edited the first post to the new version.
http://www.mediafire.com/file/2gjhewtam ... ldv2.1.zip
http://www.mediafire.com/file/2gjhewtam ... ldv2.1.zip
Re: SVN Build, Do It Yourself
by Corwin72 » 23 Jun 2010, 16:45
I am sorry for being a little slow. I have the forge.zip file and have extracted it but nothing happens when I double click on forge.jar or forge.exe from the extracted forge.zip.
Thoughts?
Thoughts?
Last edited by Corwin72 on 11 Jul 2010, 05:50, edited 1 time in total.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Build, Do It Yourself
by DennisBergkamp » 23 Jun 2010, 17:41
Hm, for me it says "Invalid or corrupt Jar file" when I try to run it. Clearly, something went wrong.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: SVN Build, Do It Yourself
by Snacko » 23 Jun 2010, 17:45
Ah I know what went wrong
Delete output directory and edit update-and-build.bat and replace with
Delete output directory and edit update-and-build.bat and replace with
- 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\jdom-1.0.jar;forge-svn\res\lib\jl1.0.1.jar;forge-svn\res\lib\napkinlaf-1.2.jar;forge-svn\res\lib\napkinlaf-swingset-1.2.jar;forge-svn\res\lib\nimrodlf.jar;forge-svn\res\lib\substance.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/*
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Build, Do It Yourself
by Snacko » 23 Jun 2010, 18:57
Good
I uploaded 2.2 version with the fixed batch file.

Re: SVN Build, Do It Yourself
by Chris H. » 23 Jun 2010, 20:21
I am glad to hear that it is now working. I thought that the people who choose to keep a local copy of the SVN builds on their computer might be interested in this google url. You can visit this url and bookmark it. This url will provide you with a listing of the recent updates and also some info pertaining to the new material. I hope that this helps.

-
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
by Corwin72 » 10 Jul 2010, 21:35
When I try to run the new forge after updating I get the error.
Could not find the main class:forge.Gui_NewGame. Program will exit.
Any ideas?
edit:
Tried to attach the forge.zip but it would not upload.
Could not find the main class:forge.Gui_NewGame. Program will exit.
Any ideas?
edit:
Tried to attach the forge.zip but it would not upload.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Build, Do It Yourself
by silly freak » 11 Jul 2010, 12:33
how did you try to run it? in eclipse, under windows, linux , by double-clicking or command line?
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
Re: SVN Build, Do It Yourself
by Corwin72 » 11 Jul 2010, 13:26
I used the SVN auto build found in the OP.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Who is online
Users browsing this forum: No registered users and 52 guests