Game Development Community

Cannot Save Settings

by Jeremy Alessi · in Torque Game Builder · 08/15/2007 (6:03 pm) · 43 replies

I'm not quite sure what's happened to the old prefs system in TGB but now there's the commonConfig.xml file which saves a few settings. Unfortunately that file won't write for me.

XML::beginWrite - Failed to write to file common/commonConfig.xml.
saveGameConfigurationData - Failed to write to file: common/commonConfig.xml

This is coming up in my console. I've searched this entire site but nothing seems to be coming up for saveGameConfigurationData ... as far as bugs go.
Page«First 1 2 3 Next»
#41
03/01/2008 (5:51 pm)
Robert,

yes, it is running 1.6

I'm executing that exec both Torsion and console and the file is not loaded. NOTICE that playerOneCustomFile.cs is not in the game folder; it is in the Application Data Folder. It was created using PlayerOneCustomFile.save("~/data/savedInfo/" @ $DataPlayer @ ".cs"); (where $DataPlayer is PlayerOneCustomProfile).

any other file contained in the game folder is properly loaded using exec("game/data/savedinfo/anyOtherFile.cs");

why, if the file doesn't exists in the game folder, the game is failing to search in the appdata folder? it is another function needed to achieve that?

thanks!
#42
03/01/2008 (6:36 pm)
Hey Robert!

I feel really really stupid right now but also happy :)

I've discovered my problem: I was running and testing my game within Torsion (clicking in the play button). Now I have done the same thing but running the game within the compiled game itself and it is reading the file!!!

I guess that I have lost some time due to my ignorance. I post this answer right now to avoid you and others to waste their time.

THANKS for the help. AND PLEASE STICK THIS for others: RUN and test your game for major changes within the compiled exe (it will save precious time).

:)

:)

:)
#43
03/03/2008 (7:34 am)
The only annoying thing with this (if bug or not) is that game is not loading scripts unless I run the compiled version. If I run withing TGB or Torsion, there is a problem since you can really test if your scripts are working.

I'm happy because I'm running my game well, but it is a pain to be compiling, deleting and replacing files in the appData folder to test even a single script change.

No more complaining: my game is working again after one update day :)
Page«First 1 2 3 Next»