Remap cam movement keys.

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
OldsShoolWZPlayer
Greenhorn
Posts: 6
Joined: 25 Oct 2007, 11:23

Remap cam movement keys.

Post by OldsShoolWZPlayer »

I wanned to remap key's that move camera (arrow keys) for E,S,D,F, but could not find way, someone know how to do it?
I had bad luck opening keymap.map file (that holds keyboard mapping) its not text format, but i doubt its there, i think this key's are written in source code.

Can someone help and maybe find them in source code and modify for E S D F key's then upload changed file, by any other method thanks.

Edit: Also would be nice to have zoon in and zoom out on mouse wheel.
Last edited by OldsShoolWZPlayer on 25 Oct 2007, 14:41, edited 1 time in total.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Remap cam movement keys.

Post by Giel »

OldsShoolWZPlayer wrote: I wanned to remap key's that move camera (arrow keys) for E,S,D,F, but could not find way, someone know how to do it?
I had bad luck opening keymap.map file (that holds keyboard mapping) its not text format, but i doubt its there, i think this key's are written in source code.

Can someone help and maybe find them in source code and modify for E S D F key's then upload changed file, by any other method thanks.
Yes the keymap.map file is a pain, the only "convenient" way of modifying keys that cannot be found in "Options"->"Key Mappings" is by modifying the source-code (src/keymap.c).

I am not going to go through the pain of building "personalised" versions of warzone though. So you'll either have to do that yourself or find someone else to do that. (I'll put it on my TODO list though, to make it easier to modify the key mappings.)
OldsShoolWZPlayer wrote: Also would be nice to have zoon in and zoom out on mouse wheel.
Yes, that would be very nice indeed. Oh wait, zooming with the mouse wheel is already there!
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
OldsShoolWZPlayer
Greenhorn
Posts: 6
Joined: 25 Oct 2007, 11:23

Re: Remap cam movement keys.

Post by OldsShoolWZPlayer »

Where exactly is "there", i have version from cd and 1.10 update, and no mouse wheel zoom.
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Remap cam movement keys.

Post by lav_coyote25 »

grab the 2.0.7 version of warzone 2100 ( standalone ).  do not patch the original with this version. 

the scrolling wheel is operational as well as some other nifty neater stuff... ;D
‎"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
OldsShoolWZPlayer
Greenhorn
Posts: 6
Joined: 25 Oct 2007, 11:23

Re: Remap cam movement keys.

Post by OldsShoolWZPlayer »

Doh, the point is that i like it the way it is (original version), just want to add mouse wheel zoom and rebind few keys.
Chojun
Regular
Regular
Posts: 518
Joined: 25 Nov 2006, 17:49

Re: Remap cam movement keys.

Post by Chojun »

Hmm...
The best thing to do when your philosophies don't stand up to debate is to lock the thread and claim victory.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Remap cam movement keys.

Post by Giel »

OldsShoolWZPlayer wrote: Doh, the point is that i like it the way it is (original version), just want to add mouse wheel zoom and rebind few keys.
Well in that case I wish you luck. Because as soon as we modify the source code of that "original version" it won't be the "original version" anymore. So for that very reason we don't support the "original version", since it would be a paradox. Instead our versions contain many enhancements, bugfixes, (sadly though new bugs as well, and some bugs that already existed but never got triggered now _do_ get triggered). Among those enhancements is the very feature you requested, i.e. mouse scroll zooming.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh