Problems with updating the SVN
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
63 posts
• Page 1 of 5 • 1, 2, 3, 4, 5
Problems with updating the SVN
by DeadSpeak » 29 Jun 2011, 08:25
Hi everyone,
Up until yesterday, I have used the "update-and-build-xstream-fix" to get the latest revision of Forge, but now, when I try to start Forge, it pops up with a "invalid or corrupt jarfile F:\temp2\forge\forge.jar".
As far as I know, I have not changed anything. I still have the zip file (forge-buildv2.3.zip) that the original files came in.
I'm not using any of the programming tools to run this version of Forge. I'm just using the .bat files included in the zip and the additional "fix" file to update.
Has something changed or do I need to make a change to the .bat files?
-DeadSpeak
Up until yesterday, I have used the "update-and-build-xstream-fix" to get the latest revision of Forge, but now, when I try to start Forge, it pops up with a "invalid or corrupt jarfile F:\temp2\forge\forge.jar".
As far as I know, I have not changed anything. I still have the zip file (forge-buildv2.3.zip) that the original files came in.
I'm not using any of the programming tools to run this version of Forge. I'm just using the .bat files included in the zip and the additional "fix" file to update.
Has something changed or do I need to make a change to the .bat files?
-DeadSpeak
- DeadSpeak
- Posts: 104
- Joined: 25 Dec 2009, 00:14
- Location: Denmark
- Has thanked: 4 times
- Been thanked: 3 times
Re: Problems with updating the SVN
by pwangsta » 29 Jun 2011, 09:47
I also have this problem. All of the files download fine, but when the bat goes to compile the .jar file, we get a "The system cannot find the file specified" error from the bat. Then, when you try to run the .jar file that gets produced, you get the "invalid or corrupt jar file" error DeadSpeak mentioned above. I believe the problem occurred somewhere between revision 10050 and 10150 (A fairly large range, I know, but the revisions have been coming in so fast lately and I generally only update once a day).
- pwangsta
- Posts: 20
- Joined: 10 Jun 2011, 12:09
- Has thanked: 0 time
- Been thanked: 0 time
Re: Problems with updating the SVN
by Hellfish » 29 Jun 2011, 10:12
My guess is that it's missing the JUnit library that was added as a dependency. The way it was added means that you have to compile through Eclipse. I don't know if there are licensing issues or something that prevent it from being used like the libraries in the res/lib folder but that would let both Snacko scripts and IDEA be used to build Forge in addition to Eclipse.
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
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
-
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
by Sloth » 29 Jun 2011, 10:17
Just for clarity do you use this bat file: update-and-build-xstream-fix.bat?
- | Open
- 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\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;forge-svn\res\lib\xstream-1.3.1.jar;forge-svn\res\lib\xpp3_min-1.1.4c.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/*
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Problems with updating the SVN
by DeadSpeak » 29 Jun 2011, 11:18
@Sloth
Yep, that matches the bat file on my comp.
-DeadSpeak
Yep, that matches the bat file on my comp.
-DeadSpeak
- DeadSpeak
- Posts: 104
- Joined: 25 Dec 2009, 00:14
- Location: Denmark
- Has thanked: 4 times
- Been thanked: 3 times
Re: Problems with updating the SVN
by Sloth » 29 Jun 2011, 13:21
I'm using a very similar bat file to compile (but without downloading from the SVN) and it still works. For reference:
- | Open
- Code: Select all
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;forge-svn\res\lib\xstream-1.3.1.jar;forge-svn\res\lib\xpp3_min-1.1.4c.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 ..
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\
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Problems with updating the SVN
by UnderFlow » 29 Jun 2011, 17:34
It seems like "forge-svn\build\manifest.forge" has been removed from the SVN.
Re: Problems with updating the SVN
by Sloth » 29 Jun 2011, 21:04
You are right. They were removed in r10102. We should revert that.UnderFlow wrote:It seems like "forge-svn\build\manifest.forge" has been removed from the SVN.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Problems with updating the SVN
by Accountancy » 30 Jun 2011, 10:28
Hey, I'm trying to get this going on my computer, is the problem still up or has it been fixed?
- Accountancy
- Posts: 230
- Joined: 14 Aug 2009, 12:39
- Has thanked: 22 times
- Been thanked: 2 times
Re: Problems with updating the SVN
by Chris H. » 30 Jun 2011, 12:03
`Accountancy wrote:Hey, I'm trying to get this going on my computer, is the problem still up or has it been fixed?
I updated my local copy to rev 10101 and this allowed me to retrieve the missing "manifest.forge" file. I plan to re-add this file to the /build/ folder. I doubt that this will cause any problems for the forge project, fingers crossed.

It looks like some tool-like plugins have been run recently. This may have listed the "manifest.forge" file as an unreferenced file. Forge has some dead code and some dead files left over from the work that has been done over the last couple of years. The plugins are not aware of the Snacko Scripts and could not predict this problem.
I will hold off of re-adding the missing "manifest.forge" file for the moment. The current head SVN rev 10209 has 8 errors when built. Once someone has fixed these errors I will re-add the manifest.
-
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
by Chris H. » 30 Jun 2011, 14:36
`Sloth wrote:You are right. They were removed in r10102. We should revert that.UnderFlow wrote:It seems like "forge-svn\build\manifest.forge" has been removed from the SVN.
Added the missing manifest.forge file in the hopes that Snacko's scripts will work once again. Found in rev 10215.
Can one of the people using Snacko's scripts try to update and let us know if adding the missing file takes care of the problem?
-
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
by Sloth » 30 Jun 2011, 14:52
Thanks Chris. I did a test run with my script and the game works. I get an error though, when starting a draft. Is this normal?Chris H. wrote:`Sloth wrote:You are right. They were removed in r10102. We should revert that.UnderFlow wrote:It seems like "forge-svn\build\manifest.forge" has been removed from the SVN.
Added the missing manifest.forge file in the hopes that Snacko's scripts will work once again. Found in rev 10215.
Can one of the people using Snacko's scripts try to update and let us know if adding the missing file takes care of the problem?
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Problems with updating the SVN
by Chris H. » 30 Jun 2011, 15:04
`Sloth wrote:Thanks Chris. I did a test run with my script and the game works. I get an error though, when starting a draft. Is this normal?
Hmmm, have you tried starting a draft using a build from Eclipse?
A lot of things have changed in the code base recently, your issue might be seen by both the script and via Eclipse.
-
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
by UnderFlow » 30 Jun 2011, 15:16
Building works again, but I got a ClassNotFoundException for forge.ReadCard. Is that because of a buggy revision or was there a building problem?
Re: Problems with updating the SVN
by Chris H. » 30 Jun 2011, 16:56
There is a major organizational change being made to the code base. I can not predict how long it will take for this work to be finished. Anyone using Snacko's Scripts should take a quick glance at the various messages that appear in the Developer's Corner as some of them can provide additional info.
-
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
63 posts
• Page 1 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: No registered users and 35 guests