Beta3 bug regarding preferences...
by Jon Frisby · in Torque Game Builder · 05/15/2007 (1:06 pm) · 4 replies
It seems that how preferences are handled has changed pretty radically in 1.5, and I'm not real clear on what the "right" way to handle it is.
In the meantime, I've been attempting to use export/execPrefs to get things working. I've run into a situation where attempting to use execPrefs("foo.cs") -- or even just exec(getPrefsPath("foo.cs")) does not work unless I've written to the file with export within the lifetime of the current process. The file is there, it has the contents it is supposed to have, but the engine reports that it is "missing" unless I've done an export prior to calling exec/execPrefs. In fact, even calling isFile(getPrefsPath("foo.cs")) doesn't work!
My current hack is to do this before the exec:
In the meantime, I've been attempting to use export/execPrefs to get things working. I've run into a situation where attempting to use execPrefs("foo.cs") -- or even just exec(getPrefsPath("foo.cs")) does not work unless I've written to the file with export within the lifetime of the current process. The file is there, it has the contents it is supposed to have, but the engine reports that it is "missing" unless I've done an export prior to calling exec/execPrefs. In fact, even calling isFile(getPrefsPath("foo.cs")) doesn't work!
My current hack is to do this before the exec:
$garbage = "Why do I need to do this?";
export("$garbage", "preferences.cs", true);About the author
#2
For me, the files are *written* just fine. They just don't get *read* properly...
-JF
05/23/2007 (12:19 am)
The prefs path is going to be under your home directory somewhere... Not sure on Windows. On MacOS it's under ~/Library/ somewhere...For me, the files are *written* just fine. They just don't get *read* properly...
-JF
#3
~/Library/Applications Support/GarageGames/TorqueGameBuilder
06/05/2007 (1:36 pm)
On Mac OSX the prefs path seems to be~/Library/Applications Support/GarageGames/TorqueGameBuilder
#4
06/15/2007 (12:04 am)
Actually, the exact path varies based on game/company name specified in commonConfig.xml.
Torque Owner DragonSix