Game Development Community

Key remapping failure

by Henry Todd · in Torque 3D Professional · 05/14/2009 (4:16 pm) · 2 replies

Attempting to remap a key results in a few script errors and a control lockup.

The script fails to find the doRemap() function inside OptRemapList.

It also later attempts to call the old name for this object, KeysTextList, from line 34 of keybindings.cs

All of this happens inside core, so I'm sure I haven't modified anything connected to it.

#1
05/14/2009 (4:23 pm)
Just a thought, but have you checked config.cs for keybinding lookup?
#2
05/14/2009 (4:39 pm)
I've actually been putting config.cs together manually to do my key binding. It contains nothing but:

// Torque Input Map File
if (isObject(moveMap)) moveMap.delete();
new ActionMap(moveMap);
moveMap.bind(keyboard, "f2", showPlayerList);
...etc...

It's based on the config.cs that came with the installation, just with additional bindings.

I take it your key binding from the options menu works fine? In that case I'll dig around in see how I could have broken it.

*edit:
Just pulled up keybindings.cs in order to not be the laziest beta tester ever to live. Line 34 definitely calls:
KeysTextList.clear()