Null Pointers
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
4 posts
• Page 1 of 1
Null Pointers
by lazylockie » 24 Jul 2010, 06:44
Is it just here or there are many null pointer exceptions on the SVN version? So far, I'm getting:
- when I start Forge (forge.Gui_NewGame.main)
- changing card size (forge.Gui_NewGame$CardSizesAction.set)
- changing max stack size (forge.Gui_NewGame$CardStackAction.set)
- changing stack offset (forge.Gui_NewGame$CardStackOffsetAction.set)
My current revision is 1542, but those null pointers have been appearing since 1521
- when I start Forge (forge.Gui_NewGame.main)
- changing card size (forge.Gui_NewGame$CardSizesAction.set)
- changing max stack size (forge.Gui_NewGame$CardStackAction.set)
- changing stack offset (forge.Gui_NewGame$CardStackOffsetAction.set)
My current revision is 1542, but those null pointers have been appearing since 1521
- lazylockie
- Posts: 508
- Joined: 13 Jul 2010, 22:44
- Has thanked: 74 times
- Been thanked: 15 times
Re: Null Pointers
by DennisBergkamp » 24 Jul 2010, 07:12
Hmm, I haven't gotten a single one with the latest release.
Check in your "root" Forge folder (the one that contains "forge.properties") to see if you have a file named "forge.preferences".
If not, create a blank file with that name.
Not sure if that's actually the problem though...
Check in your "root" Forge folder (the one that contains "forge.properties") to see if you have a file named "forge.preferences".
If not, create a blank file with that name.
Not sure if that's actually the problem though...
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Null Pointers
by Chris H. » 24 Jul 2010, 11:28
`lazylockie wrote:Is it just here or there are many null pointer exceptions on the SVN version? So far, I'm getting:
- when I start Forge (forge.Gui_NewGame.main)
- changing card size (forge.Gui_NewGame$CardSizesAction.set)
- changing max stack size (forge.Gui_NewGame$CardStackAction.set)
- changing stack offset (forge.Gui_NewGame$CardStackOffsetAction.set)
My current revision is 1542, but those null pointers have been appearing since 1521
There needs to be a file named "forge.preferences" in the forge folder. You may be missing this file or the file may be corrupted. Download this archive and place it in your forge folder and this may take care of your problem.

`
- Attachments
-
forge.preferences.zip
- (160 Bytes) Downloaded 205 times
-
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: Null Pointers
by lazylockie » 24 Jul 2010, 18:25
It works now! Thanks!Chris H. wrote:`lazylockie wrote:Is it just here or there are many null pointer exceptions on the SVN version? So far, I'm getting:
- when I start Forge (forge.Gui_NewGame.main)
- changing card size (forge.Gui_NewGame$CardSizesAction.set)
- changing max stack size (forge.Gui_NewGame$CardStackAction.set)
- changing stack offset (forge.Gui_NewGame$CardStackOffsetAction.set)
My current revision is 1542, but those null pointers have been appearing since 1521
There needs to be a file named "forge.preferences" in the forge folder. You may be missing this file or the file may be corrupted. Download this archive and place it in your forge folder and this may take care of your problem.![]()
`
Makes sense now that forge was asking about not being able to save the preferences when quitting the game =]
- lazylockie
- Posts: 508
- Joined: 13 Jul 2010, 22:44
- Has thanked: 74 times
- Been thanked: 15 times
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 53 guests