It is currently 03 Sep 2025, 22:48
   
Text Size

Null Pointers

Post MTG Forge Related Programming Questions Here

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

Null Pointers

Postby 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
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

Re: Null Pointers

Postby 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...
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Null Pointers

Postby 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. :D


`
Attachments
forge.preferences.zip
(160 Bytes) Downloaded 205 times
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: Null Pointers

Postby lazylockie » 24 Jul 2010, 18:25

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. :D


`
It works now! Thanks!

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


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 53 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form