Game Development Community

default.bind.cs changes not affecting game?

by Nmuta Jones · in Torque 3D Beginner · 02/03/2010 (8:37 pm) · 4 replies

I delete prefs.cs after changing it, but I'm trying to change some key mapping, and my default.bind.cs changes are not working in T3D.

Then, just as a test, I tried to map both a and d to make the player move left. That did not work either.

moveMap.bind( keyboard, a, moveleft );
moveMap.bind( keyboard, d, moveleft );

So then I know that its not accepting my changes. and there are no .dso files to delete, so I know its not that. What could it be?

#1
02/03/2010 (9:55 pm)
If a config.cs file exists, delete that. Run the deletePrefs batch file. I think that might be the issue. If not, check for errors.
#2
02/04/2010 (6:44 am)
That should be the issue - prefs.cs is where preference global variables are stored, but config.cs is where preferred keybinds are stored. config.cs is executed after default.bind.cs, so it overwrites your new binds.
#3
02/04/2010 (11:36 am)
Of course you can just stick the extra/altered keybinds in config.cs manually - whatever you find easiest.
#4
02/04/2010 (11:51 am)
thanks guys..... michael's original suggestion worked.