TGB 1.6: Preferences not saved/loaded properly
by Joe Rossi · in Torque Game Builder · 12/23/2007 (1:42 pm) · 0 replies
DefaultPrefs.cs is never saved in the Game Directory, and it can't be loaded from the Application Directory.
Using the "export" function to save your prefs will not save over the defaultPrefs.cs in the common\preferences Game Directory. It seems to only write to the Application Data Directory.
If there is no defaultPrefs.cs in the common\preferences Game Directory, the engine won't look for it in the Application Data Directory, contrary to what the new FileIO documentation states. I've tested this extensively.
So what happens is, you're stuck with whatever is in your common/preferences/defaultPrefs.cs no matter what changes you make with your scripts while the game is running. I suspect this has to do with the recent changes made to FileIO.
Using the "export" function to save your prefs will not save over the defaultPrefs.cs in the common\preferences Game Directory. It seems to only write to the Application Data Directory.
If there is no defaultPrefs.cs in the common\preferences Game Directory, the engine won't look for it in the Application Data Directory, contrary to what the new FileIO documentation states. I've tested this extensively.
So what happens is, you're stuck with whatever is in your common/preferences/defaultPrefs.cs no matter what changes you make with your scripts while the game is running. I suspect this has to do with the recent changes made to FileIO.