Game Development Community

B5 Bug -- world camera up key (E) no longer works

by Steve · in Torque 3D Professional · 08/13/2009 (12:17 pm) · 11 replies

In the editor, when in World Camera Mode , E used to move up the Z axis,
and C used to move down the Z axis. E no longer works, but strangely, C does.
I don't know how many people use this, but I do, and I liked it. Is it possible to get it back?

#1
08/13/2009 (1:35 pm)
I think I saw that a new, server side raycast based vehicle mount feat was also bound to the "e" key. That could be a reason why this ceased working, but I didn't check.
#2
08/13/2009 (1:57 pm)
Well, I would still like it back, if someone could tell me how to implement it, I would be grateful. I don't care what key it is bound to.
#3
08/13/2009 (2:50 pm)
The 'e' key was actually freed up from the zoom ability (FPS kit).... never realized that 'e' or 'c' was used in the editor also, so don't know what happened there. My guess is that someone has monkeyed with keymaps.
#4
08/13/2009 (2:57 pm)
Technically there should be a separate set of keybinds for the editor... just change the binds for moveup & movedown to suit your needs (to keys that are not used), that or change the bind for doMountVehicle (to one that is not used). All of which can be found in default.binds.cs, simple really. I didn't check the template, but I assume it has the same problem since 'zoom' is bound to 'e'
#5
08/13/2009 (3:01 pm)
@Michael: That's what I was thinking, that they should be separate. Btw, I've seen some really heavyweight scripting stuff you did for Beta 5! Great work!

@Steve: If you need help with this, I'll check on this tomorrow (it's just past midnight for me) and let you know how to fix this issue.
#6
08/13/2009 (6:36 pm)
Well, yes, I need help, sad to say. I found in scripts/client/defaultbind.cs :

Line 640 is where "e" gets mapped to doMountVehicle. Line 250 is where "e" is also mapped to MoveUp. Left the doMountVehicle mapped to e. Changed e to x for MoveUp which I assume should work for the world camera. Did not work. Looked around a bit more, found scripts/client config.cs saw lots of movemap.binds there, changed MoveUp from e to x there as well..... still no result.
#7
08/13/2009 (6:59 pm)
When you make your change(s) in default.bind.cs, delete the config.cs...Torque will generate a new one for you. default.bind.cs is where it gets the information to export the config.cs file when it closes. If it finds a config.cs when it starts up it uses that to 'overwrite' the information that it found previously.

You should consider getting into the habit of using the deletePrefs.bat whenever you make any configuration changes.

What's weird is that I haven't even seen a config.cs file in ages.
#8
08/13/2009 (7:18 pm)
Ok, let me try that. I agree, I thought they got rid of config.cs, I didnt see it in Beta 4.

Edit: Tried it, still didn't work.
#9
08/14/2009 (8:05 am)
@Steve: Please follow this step-by-step, it works for me (tested in the Beta 5 FPS Genre Kit, Warrior Camp level):


  1. open up scripts/client/default.bind.cs and make sure the following is commented like this:
  2. //moveMap.bind(keyboard, "e", doMountVehicle);
  3. in the root folder, run DeletePrefs.bat to get rid of the cached keybindings
  4. start up the level
  5. press alt-c to enter free cam mode
  6. press e to move up, and c to move down

Good luck!
#10
08/14/2009 (9:45 am)
Yep, that did it. Thanks a lot for taking the time to help me.
#11
08/14/2009 (2:55 pm)
No worries, glad it works.