Game Development Community

Key Bindings

by Nathan · in General Discussion · 02/23/2008 (5:05 pm) · 4 replies

Quick question about the starter.fps..

In "init.cs" both "default.bind.cs" and "config.cs" are loaded, in that order. Does the "default.bind.cs" file just initialize all the settings to their default values, and then "config.cs" overwrites the previously set values with the clients preferred values?

Thanks,
Nathan

#1
02/24/2008 (5:52 am)
Exactly! This leads to a bit of confusion, with some people learning to change the config.sys file rather than the default.bind.cs file. You need to be careful to understand this in order to evaluate some advice seen in the forums. default.bind.cs is often provided to the player in the compiled form (.dso) and so doesn't change.

One reason this is confusing is that to add a key binding while developing, you need to make the change in default.bind.cs, and then also delete the config.sys and the config.dso (which of course, don't have the new key listed). A script file is included to delete preferences. I've worn mine out ;)
#2
02/24/2008 (1:53 pm)
That makes sense. Thank you.

One more question however.. Why are there two "config.cs" files that are exactly the same in the client directory?

config.cs - in /client/scripts
config.cs - in /client/scripts/client

Thank you,
Nathan
#3
02/24/2008 (3:27 pm)
I believe that this is a bug in the starter.fps scripts, as the file is never used and has no perceivable purpose.
www.garagegames.com/mg/forums/result.thread.php?qt=61587
#4
02/24/2008 (4:32 pm)
Thanks Matthew, I'll just delete it then.

Thanks for your help,
Nathan