Game Development Community

Config.cs

by Howard Dortch · in Torque Game Engine · 11/18/2004 (9:30 am) · 5 replies

I want to change the order in the config.cs files for the moveMap.bind declarations. I can't find where the order is being set in the script files or the engine. Can someone point me to the place that writes the order of the declarations? I have changed the order in both files but when I run the game it wont stay the way I put them.

#1
11/18/2004 (9:39 am)
Look in client/optionsDlg.cs
Only change places on the RemapNames.
I hope this is what you looking for ?
#2
11/18/2004 (9:44 am)
Config.cs is reported to be re-written by the executable under certain conditions. It's better to use defaults.bind.cs as your "authoritative" spot to change keybinds, etc. as far as I am aware.
#3
11/18/2004 (10:01 am)
@Billy no, the config.cs files are changed when I just run the program and exit without going to the options.

@Stephen yes the default.bind is just that but it doesn't force an order in the way the config.cs file gets written on exit from the game.

Reason I want this is so I can hide certain commands from the user on release and rather than going through all 3 files and picking each and every one to include in the release or not, I can just delete the bottom few commands from the file and be done with it.

I modified the default.bind with a global and this works fine
if($Release)
{
moveMap.bind(bla);
}

but the config.cs file seems to have a mind of it's own when it comes to ordering.
#4
11/18/2004 (10:11 am)
What type of order you trying to get Howard? assending? decending? non-stored? random-stored? or something else?
#5
11/18/2004 (11:47 am)
@Simon no special order other than things like the alt c, F10, F11, tilde that sort of thing I dont want exposed to the user so if I could re-arrange them so that they were all at the bottom or top then I could just delete them in one swipe. It's no biggie just wanted to save some time preping a release build.
I'm puzzled in the fact that I can change both config.cs files save, run the game and they come back in a different order, like the mouse functions on the bottom. I looked at the C++ code that actually does the file write and it doesn't seem to write in any particular order.