It is currently 07 Jul 2021, 21:51
   
Text Size

Error on startup

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

Error on startup

Postby nelyn » 20 Sep 2009, 16:21

I receive the following errors when trying to start the 9-18 Version of Forge

Vista Home Premium (64bit)
An error has occured. 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
mtgrares@yahoo.com

null

Detailed error trace:
java.lang.NullPointerException
at java.io.Reader.<init>(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at NameChanger.readFile(NameChanger.java:108)
at NameChanger.<init>(NameChanger.java:17)
at AllZone.<clinit>(AllZone.java:9)
at Gui_NewGame.main(Gui_NewGame.java:98)



I also get an error in Windows XP that talks about not bveing able to find the class and then the program quits.
nelyn
 
Posts: 33
Joined: 20 Sep 2009, 16:14
Has thanked: 0 time
Been thanked: 0 time

Re: Error on startup

Postby Sloth » 20 Sep 2009, 18:45

I had the same problem, Nelyn.
I updated my version of JRE and it worked again. Good luck.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Error on startup

Postby nelyn » 21 Sep 2009, 06:09

I would love to do that, but I do not have the admin priviledges to do that at work (I normally play on my lunch break). Is there any way to make forge compatable with earlier versions of Java?
nelyn
 
Posts: 33
Joined: 20 Sep 2009, 16:14
Has thanked: 0 time
Been thanked: 0 time

Re: Error on startup

Postby nantuko84 » 21 Sep 2009, 08:58

1. what jre version do you have?
just type
Code: Select all
java -version
in command line

2. the exception is thrown from NameChanger.java that seems can't find name-mutator.txt file. As far as I know, NameChanger isn't used any more. so I believe developers can just disable it
nantuko84
DEVELOPER
 
Posts: 266
Joined: 08 Feb 2009, 21:14
Has thanked: 2 times
Been thanked: 9 times

Re: Error on startup

Postby mtgrares » 22 Sep 2009, 20:22

Yes the file "name-mutator.txt" is still required but it isn't used. MTG Forge won't run if the file can't be found.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Error on startup

Postby nelyn » 23 Sep 2009, 06:23

Sorry to take so long to get back.

My version is 1.5.0_06-b05
nelyn
 
Posts: 33
Joined: 20 Sep 2009, 16:14
Has thanked: 0 time
Been thanked: 0 time

Re: Error on startup

Postby Chris H. » 23 Sep 2009, 15:27

You might want to consider upgrading Java to Java 6.
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: Error on startup

Postby DennisBergkamp » 23 Sep 2009, 15:34

Yes, this has to be the problem. The compiler I'm using for the project is 1.6 (I'm not sure when I switched over to 1.6, but I guess I must have been using 1.5 for the 0528 version).
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Error on startup

Postby Chris H. » 23 Sep 2009, 17:16

DennisBergkamp wrote:Yes, this has to be the problem. The compiler I'm using for the project is 1.6 (I'm not sure when I switched over to 1.6, but I guess I must have been using 1.5 for the 0528 version).
When I upgraded my Mac to Snow Leopard a few weeks ago I noticed that Eclipse was no longer set up to use a JRE (JVM 1.5.0). It took me awhile to figure out how to use the Configure JRE... options in the New Java Project window.

Or I may have accessed this from the Preferences - Installed JREs window. I finally got it set up for 1.5.0 again.

I suspect that the non-intel Power PC based Mac computers can not upgrade to Java 6. This may only be an option for Windows and *nix. :(
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: Error on startup

Postby nelyn » 23 Sep 2009, 17:28

I don't really have th option of upgrading the java on my work PCs. I work overnight from 12am to 8am Sat - Wed as a shift supervisor for a passenger ferry service in VIrginia, and I like playing a round or two to pass the time during the "dead" hours.

Maybe making Forge as a stand alone java program like was mentioned in another thread might work.

Also, could I not just download the full install and then copy over the forge executable that I have that does work to the new folder (I have done the for the current version)? I would not get the nice things like scalable sections and stuff, but it still should run, right?
nelyn
 
Posts: 33
Joined: 20 Sep 2009, 16:14
Has thanked: 0 time
Been thanked: 0 time

Re: Error on startup

Postby DennisBergkamp » 23 Sep 2009, 18:50

The real executable would be the run-forge.jar file (run-forge.exe just points to this jar file).
If you would copy an older version (I assume you're using 0528) of run-forge.jar into the latest full install, stuff wouldn't work well at all: the newer cards defined in cards.txt will not work since they're only implemented in that later version. And you're right, along with a lot of bugfixes, and a bunch of features like the scalable sections will not work either.

So basically, you'd be better off just using the 0528 version that works, the latest version would contain a lot of dead cards that do nothing.

But I'll see what I can do, maybe I could compile the latest version using 1.5.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Error on startup

Postby silly freak » 23 Sep 2009, 19:59

the compiler version was also the problem with the @Override when merging my code some time ago. I tried to compile my version 1.5 compatible, and up to that version, @Override is not allowed for implementing methods. another mystery uncovered!

there should be no problem in changing the compiler settings back for new releases.
___

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: Error on startup

Postby DennisBergkamp » 23 Sep 2009, 20:53

Ah, yes indeed. The only errors I'm getting when I switch back to 1.5 is each "@Override" statement.

Nelyn, try replacing your forge with the jar contained within the attached RAR. It's a recompiled version of the August 28 release (1.5 instead of 1.6 this time).
Attachments
0828jar.rar
(1.76 MiB) Downloaded 302 times
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Error on startup

Postby nelyn » 23 Sep 2009, 22:59

Thanks. I will test it on the work PC when I go back to work this Sat.
nelyn
 
Posts: 33
Joined: 20 Sep 2009, 16:14
Has thanked: 0 time
Been thanked: 0 time

Re: Error on startup

Postby DennisBergkamp » 23 Sep 2009, 23:27

No problems :)
Let me know if it works... the next version I will compile with 1.5 as well.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Forge

Who is online

Users browsing this forum: Google [Bot] and 13 guests

cron

Who is online

In total there are 14 users online :: 1 registered, 0 hidden and 13 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: Google [Bot] and 13 guests

Login Form