It is currently 16 Jul 2025, 01:35
   
Text Size

SVN Build, Do It Yourself

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

Re: SVN Build, Do It Yourself

Postby Rob Cashwalker » 14 Sep 2010, 04:15

Is there something specifically broken? I just made a huge change, converting cards.txt to a folder of card files. This has to be tested by other devs, much less whether or not it broke Snacko's builder....
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: SVN Build, Do It Yourself

Postby Mizar » 14 Sep 2010, 12:21

I wanted to try out the latest version so i used Forge-Build Ver. 2.3. After execution of "run-first.bat" and then "update-and-build.bat" i tried to run the latest Forge version "Forge r2038". But right at start up i get these to error messages:
Code: Select all
Version:
Forge -- official beta: $Date: 2010-05-01 09:21:42 +0200 (Sa, 01 Mai 2010) $, SVN revision: $Revision: 916 $

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_21 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NullPointerException
   at forge.ReadCard.<init>(Unknown Source)
   at forge.CardFactory.readCards(Unknown Source)
   at forge.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.pumpEventsForFilter(Unknown Source)
   at java.awt.Dialog$1.run(Unknown Source)
   at java.awt.Dialog$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Dialog.show(Unknown Source)
   at java.awt.Component.show(Unknown Source)
   at java.awt.Component.setVisible(Unknown Source)
   at java.awt.Window.setVisible(Unknown Source)
   at java.awt.Dialog.setVisible(Unknown Source)
   at forge.error.ErrorViewer.showDialog(Unknown Source)
   at forge.error.ErrorViewer.showError(Unknown Source)
   at forge.error.ErrorViewer.showError(Unknown Source)
   at forge.Gui_NewGame$1.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)
And the second one is this:
Code: Select all
Version:
Forge -- official beta: $Date: 2010-05-01 09:21:42 +0200 (Sa, 01 Mai 2010) $, SVN revision: $Revision: 916 $

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_21 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NullPointerException
   at forge.Gui_NewGame$1.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)
Is there anything I can do about it?
Mizar
 
Posts: 20
Joined: 05 Sep 2010, 14:05
Location: Germany
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Chris H. » 14 Sep 2010, 12:28

The dev team is in the process of making a major change to Forge. This archive contains the last version of the run-forge.jar and cards.txt files prior to the major change that is taking place. These two files are from revision 2016 found on the SVN.

There are several new cards, a couple of bug fixes and slight changes to the way the spell text for permanents are displayed. Enjoy.


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 Chris H. » 14 Sep 2010, 12:32

Mizar wrote:I wanted to try out the latest version so i used Forge-Build Ver. 2.3. After execution of "run-first.bat" and then "update-and-build.bat" i tried to run the latest Forge version "Forge r2038". But right at start up i get these to error messages:

Is there anything I can do about it?
`
Use the Forge Fix r2016.7z version for the moment. The Forge project is going through a major revision at this time. Wait for the devs to finish this ongoing major revision and play the rev 2016 for the moment. :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: SVN Build, Do It Yourself

Postby Mizar » 14 Sep 2010, 12:49

Chris H. wrote:Use the Forge Fix r2016.7z version for the moment. The Forge project is going through a major revision at this time. Wait for the devs to finish this ongoing major revision and play the rev 2016 for the moment. :D
Ok, I copied the "run-forge.jar" and "cards.txt" files into the "Forge 0912 Beta" directory and it seems to work. Thank your for this fix. :D
Mizar
 
Posts: 20
Joined: 05 Sep 2010, 14:05
Location: Germany
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Corwin72 » 14 Sep 2010, 15:16

2041 is working for me now. Thanks for the great updates.
User avatar
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

Postby Rob Cashwalker » 14 Sep 2010, 16:59

And even that's a few hours too old....
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: SVN Build, Do It Yourself

Postby Snacko » 15 Sep 2010, 19:02

The solution is quite easy delete output dir which has stale classes.
I've modified the bat so you can update. This will delete the output directory so you always have only fresh objects.
Code: Select all
build\svn.exe update forge-svn
rmdir output /s /q
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 -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 /E
xcopy custom\* forge\ /Y /E
copy forge-svn\forge.properties forge\ /Y
copy forge-svn\forge.preferences 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/*
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: SVN Build, Do It Yourself

Postby Mizar » 15 Sep 2010, 22:19

I tried your updated bat and everything works now. Thank you very much Snacko :D
Mizar
 
Posts: 20
Joined: 05 Sep 2010, 14:05
Location: Germany
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby timmermac » 17 Sep 2010, 17:51

Perhaps I'm a little dense... If I wanted to use the SVN and not wait for a beta to be released, how would I go about doing it? Keep in mind, my programming knowledge is somewhere in the neighborhood of nonexistent.
"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

Re: SVN Build, Do It Yourself

Postby PhoenixAvenger » 17 Sep 2010, 19:46

timmermac wrote:Perhaps I'm a little dense... If I wanted to use the SVN and not wait for a beta to be released, how would I go about doing it? Keep in mind, my programming knowledge is somewhere in the neighborhood of nonexistent.
Since I got my SVN copy to work just yesterday, here's the steps as I understand them:

1) Download the SVN-building package in the first post and unzip it somewhere. (I unzipped it in my Forge folder, but it shouldn't matter.)
2) Right-click on update-and-build.bat, select "Edit", and copy-paste the code section in Snacko's most recent post, overwriting everything you find there. (This step may or may not be necessary for a first-time build.)
3) Run run-first.bat. This will download everything in the SVN into a folder called "forge-svn".
4) Then run update-and-build.bat. This will update the files in forge-svn if necessary, and then go about building Forge from everything in the forge-svn folder. When it's done, you should have a new folder called "forge" which contains the newly-built version of Forge, as well as a "forge.zip" archive in your main directory that's a zipped copy of the Forge version that was just compiled.
5) (optional) If you want to have the card pics in this version, copy your /res/pics folder from your original Forge directory to your new one. (Keep in mind that if you update your SVN copy, this will get deleted, so move /res/pics somewhere when updating.)

And that should cover everything needed to test the latest version.

While I'm here, though, I'd like to get something clarified from the veteran SVNers: Is the beta version's run-forge.jar the combination of the SVN's forge.jar and all the jars in the /res/lib directory, or did I do something wrong?
User avatar
PhoenixAvenger
 
Posts: 62
Joined: 31 Aug 2010, 23:34
Location: NorCal
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby timmermac » 17 Sep 2010, 20:15

Is it possible to take the .jar file that the build-your-own produces and place it into the beta release folder and have the changes take effect?
"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

Re: SVN Build, Do It Yourself

Postby PhoenixAvenger » 17 Sep 2010, 20:22

timmermac wrote:Is it possible to take the .jar file that the build-your-own produces and place it into the beta release folder and have the changes take effect?
No, at least not directly - and that's part of what I'm trying to find out from those with more experience in this department than I.

My forge.jar (produced by the SVN build) is about half the size of the betas' run-forge.jar and, after poking around in it with 7zip, is missing a number of files and folders that run-forge.jar includes. From the total size and contents of the jars in the SVN's /res/lib directory (which doesn't exist in the betas), I suspect that they contain the missing pieces, but I'd like to get that confirmed from Snacko or Corwin or someone before trying anything.
User avatar
PhoenixAvenger
 
Posts: 62
Joined: 31 Aug 2010, 23:34
Location: NorCal
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby timmermac » 18 Sep 2010, 01:57

Is there a way to know which SVN revision you currently have?
"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

Re: SVN Build, Do It Yourself

Postby Chris H. » 18 Sep 2010, 02:47

The devs will also add and revise the AI decks that we face in quest mode. There are also some text files that get updated with new data. The jars that Dennis and I have posted include the code found in the lib jar files. There may not be an easy wy to combine them into one jar via the scripts. :)
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

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 76 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form