Eidos Forums  

Go Back   Eidos Forums > Current Games > Tomb Raider Series > Tomb Raider: Underworld > Tomb Raider: Underworld - Technical Forum

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2008, 03:25 AM
jeffareid jeffareid is offline
Gamer
 
Join Date: Jan 2004
Location: So California
Posts: 153
Default Mouse key mapping workaround

I made two user edittable (plain text) .reg files. You just double click on one of them and it will update the key mapping for Tomb Raider Underworld. Here is a link to a zip that includes the two registry files and a readme.txt that explains the values and codes used. You can start with either .reg file and edit that file then double click on it to update the key mapping.

http://jeffareid.net/tr/trukeymap.zip

You can also just use regedit on:

HKEY_CURRENT_USER\Software\Crystal Dynamics\Tomb Raider: Underworld\Input

and edit the entries for 0 to 24, the left side is the function, the right side is the raw key code + 128 (except mouse buttons are 96, 97, 98, for left, right, middle):

These are the codes I use:

Code:
"0"="146"     ;interact          == E
"1"="98"      ;grapple           == C Mouse
"2"="97"      ;crouch/roll       == R Mouse
"3"="185"     ;jump              == <space>
"4"="161"     ;target lock       == F
"5"="96"      ;shoot             == L Mouse
"6"="170"     ;sprint            == <shift>
"7"="162"     ;grenade           == G
"8"="175"     ;center camera     == V
"9"="172"     ;manual aim        == Z
"10"="129"    ;pause             == <esc>
"11"="143"    ;pda               == <tab>
"12"="174"    ;use medipac       == C
"13"="176"    ;camera            == B
"14"="144"    ;light             == Q
"15"="147"    ;change weapon     == R
"16"="160"    ;right             == D
"17"="158"    ;left              == A
"18"="159"    ;down              == S
"19"="145"    ;up                == W
"20"="157"    ;walk              == <ctrl>
"21"="96"     ;vehicle shoot     == L Mouse
"22"="185"    ;vehicle brake     == <space>
"23"="145"    ;vehicle gas       == W
"24"="159"    ;vehicle reverse   == S
keycodes (appear to be PS2 keyboard codes + 128):

96 L Mouse
97 R Mouse
98 C Mouse
99 LS Mouse
100 RS Mouse

129 <esc>
130 1
131 2
132 3
133 4
134 5
135 6
136 7
137 8
138 9
139 0
140 -
141 =
142 <backspace>
143 <tab>
144 Q
145 W
146 E
147 R
148 T
149 Y
150 U
151 I
152 O
153 P
154 [
155 ]
156 <enter>
157 <ctrl>
158 A
159 S
160 D
161 F
162 G
163 H
164 J
165 K
166 L
167 ;
168 '
169 `
170 <left shift>
171 \ (shows as /)
172 Z
173 X
174 C
175 V
176 B
177 N
178 M
179 ,
180 .
181 /
182 <right shift>
183 <pad *>
184 <alt>
185 <space>
186 <caps lock>
187 F1
188 F2
189 F3
190 F4
191 F5
192 F6
193 F7
194 F8
195 F9
196 F10
197 <num lock>
198 <scroll lock>
199 <pad 7>
200 <pad 8>
201 <pad 9>
202 <pad ->
203 <pad 4>
204 <pad 5>
205 <pad 6>
206 <pad +>
207 <pad 1>
208 <pad 2>
209 <pad 3>
210 <pad 0>
211 <pad del>

214 <pad />
215 F11
216 F12

327 <home>
328 <up>
329 <page up>
331 <left>
333 <right>
335 <end>
336 <down>
337 <page down>
338 <insert>
339 <delete>

Last edited by jeffareid; 12-02-2008 at 11:52 AM.
Reply With Quote
  #2  
Old 11-20-2008, 04:21 AM
GoranAgar's Avatar
GoranAgar GoranAgar is offline
End Boss

 
Join Date: Dec 2000
Location: Der Wafflehaus
Posts: 6,192
Smile

Nice.
Reply With Quote
  #3  
Old 11-21-2008, 07:02 AM
Trembulant Trembulant is offline
New Player
 
Join Date: Nov 2008
Posts: 5
Default

AWESOME Thanks for this!
Reply With Quote
  #4  
Old 11-21-2008, 11:00 AM
IntelliMoo IntelliMoo is offline
New Player
 
Join Date: Sep 2008
Posts: 14
Default Thanks

Thanks much for this. Figures (won't say shocked) they wouldn't "fix" this limitation in time for release, however HUGE it is a limitation.

Just an important addition, though...

99 = Left side mouse button
100 = Right side mouse button

And remember you can set multiple keys separated with commas, I believe 3 max.

Last edited by IntelliMoo; 11-21-2008 at 04:54 PM.
Reply With Quote
  #5  
Old 11-21-2008, 11:45 AM
exile550 exile550 is offline
New Player
 
Join Date: Nov 2008
Posts: 17
Default

I don't see anywhere in your code list the keyboard arrow keys. Legend and anniversary both had the same problem of not being able to assign the arrows to any action. It is very frustrating. Any way to fix this for all three games?
Reply With Quote
  #6  
Old 11-21-2008, 03:11 PM
sqrly sqrly is offline
New Player
 
Join Date: Nov 2008
Posts: 22
Default

The arrow keys already do the same as the wsad keys, there's no need to remap them.

Jeff, you rock. Thank you so much for the mappings.

What a blunder on the part of CD. This just goes to show you, they don't care much for PC users anymore.
__________________
Metaboli ripped me off, do not purchase digital downloads from them.
Reply With Quote
  #7  
Old 11-21-2008, 03:57 PM
tiger's Avatar
tiger tiger is offline
Gamer
 
Join Date: Nov 2002
Location: Kansas City
Posts: 399
Cool

Thank you, very much, jeffareid!
(Funny isn't it, how much we lose when they go to porting console-games to our PCs.)

User.ini and .cfg files, along with a full set of Console Commands, have been making all of these key-assignments and a lot more "easily adjustable" with something like NotePad, for decades? (And if I have a "dire need" to adjust those arrow-keys, AutoHotKeys will be there for those and again, a lot more, like I did in TRA and TRL.)

Last edited by tiger; 11-21-2008 at 04:01 PM.
Reply With Quote
  #8  
Old 11-21-2008, 05:13 PM
exile550 exile550 is offline
New Player
 
Join Date: Nov 2008
Posts: 17
Default

Quote:
Originally Posted by sqrly View Post
The arrow keys already do the same as the wsad keys, there's no need to remap them.

Jeff, you rock. Thank you so much for the mappings.

What a blunder on the part of CD. This just goes to show you, they don't care much for PC users anymore.

There is a need to remap them. If I want to use the arrow keys and remap the up arrow as jump, I just can't.

Quote:
Originally Posted by tiger View Post
User.ini and .cfg files, along with a full set of Console Commands, have been making all of these key-assignments and a lot more "easily adjustable" with something like NotePad, for decades? (And if I have a "dire need" to adjust those arrow-keys, AutoHotKeys will be there for those and again, a lot more, like I did in TRA and TRL.)
You need to explain to me how you were able to remap tha arrow keys, I don't quite understand.

Also what would be the code for the arrow keys to put in the registry?
Reply With Quote
  #9  
Old 11-21-2008, 05:45 PM
sqrly sqrly is offline
New Player
 
Join Date: Nov 2008
Posts: 22
Default

exile550,

I understand your question but do not know the answer to that one.

I only play on pc and have never used the arrow keys for anything but forward, back, left and right. Then I map r ctrl, r shft, enter, \, del, ins, hime pg up, pg dn, and the numpad keys around them, and use a 5 button mouse shift or outside left mouse are my jump button.
__________________
Metaboli ripped me off, do not purchase digital downloads from them.

Last edited by sqrly; 11-22-2008 at 07:58 AM.
Reply With Quote
  #10  
Old 11-21-2008, 06:34 PM
jeffareid jeffareid is offline
Gamer
 
Join Date: Jan 2004
Location: So California
Posts: 153
Default

< arrow keys

The arrow keys will always work in addition to any key you assing for up, down, left, or right, so there's no need to assign them. Note, each arrow key generates 2 PS2 scan codes: 0xe0 + the scan code for the arrows on the numpad (pad 8 == up, pad 2 == down, ...). The keys listed below also generate a double PS2 scan code (0xe0 + ...) but underworld lets you assign them using these values (or you can just assign them in game):

327 <home>
329 <page up>
335 <end>
337 <page down>
338 <insert>
339 <delete>

< mouse values
< 99 = Left side mouse button
< 100 = Right side mouse button

Thanks, I don't have a 5 button mouse.

Last edited by jeffareid; 11-21-2008 at 06:37 PM.
Reply With Quote
  #11  
Old 11-21-2008, 07:00 PM
IntelliMoo IntelliMoo is offline
New Player
 
Join Date: Sep 2008
Posts: 14
Default

Quote:
Originally Posted by sqrly View Post
The arrow keys already do the same as the wsad keys, there's no need to remap them.
Well we do need them for the in-vehicle mode, because I got to the motorcycle now and the up/down arrow keys won't work for me (but the left/right do).
Reply With Quote
  #12  
Old 11-21-2008, 09:27 PM
sqrly sqrly is offline
New Player
 
Join Date: Nov 2008
Posts: 22
Default

I stand corrected, on the vehicles the arrows do not work the same as the ws keys do for movement. So, I need to figure out how to map them seperately as well.
__________________
Metaboli ripped me off, do not purchase digital downloads from them.
Reply With Quote
  #13  
Old 11-22-2008, 01:24 AM
Pengy Pengy is offline
New Player
 
Join Date: Nov 2008
Posts: 2
Default

Pengy had to register for this, but this is indeed worth it to say:

THANK YOU!

Pengy has been looking for something like this to play because Pengy hates not being able to map the controls to suit Pengy's game style. It's hard to understand WHY Eidos didn't put something as simple as mappable mouse keys into the game. Oh well.

Thank you yet again. You're a life saver
Reply With Quote
  #14  
Old 11-22-2008, 07:04 AM
exile550 exile550 is offline
New Player
 
Join Date: Nov 2008
Posts: 17
Default

So if I want to assign mu up arrow key to jump, th code is 294? Is that right?
Reply With Quote
  #15  
Old 11-22-2008, 09:46 AM
sqrly sqrly is offline
New Player
 
Join Date: Nov 2008
Posts: 22
Talking

I got it!

up = 328
down = 336
left = 331
right = 333

PS I've found turning on manual aim while you have no weapons out makes her walk carefully, very handy in many places.

I spent alot of time figuring this out not knowing much about it to begin with.

I got the hexa scancodes from http://download.microsoft.com/downlo.../translate.pdf then converted them to decimal numbers with http://www.easycalculation.com/hex-converter.php.

The PS/2 Set 1 Break codes are the ones I used.
__________________
Metaboli ripped me off, do not purchase digital downloads from them.

Last edited by sqrly; 11-22-2008 at 10:25 AM.
Reply With Quote
  #16  
Old 11-22-2008, 12:37 PM
jeffareid jeffareid is offline
Gamer
 
Join Date: Jan 2004
Location: So California
Posts: 153
Default

Quote:
Originally Posted by sqrly View Post
up = 328
down = 336
left = 331
right = 333
Thanks, the list of extended codes is now:

327 <home>
328 <up>
329 <page up>
331 <left>
333 <right>
335 <end>
336 <down>
337 <page down>
338 <insert>
339 <delete>
Reply With Quote
  #17  
Old 11-22-2008, 12:57 PM
exile550 exile550 is offline
New Player
 
Join Date: Nov 2008
Posts: 17
Default

Thanks you guys, much much appreciated!
Reply With Quote
  #18  
Old 11-23-2008, 04:02 AM
TwinCharger TwinCharger is offline
New Player
 
Join Date: Nov 2008
Posts: 1
Default

Quote:
Originally Posted by sqrly View Post
I stand corrected, on the vehicles the arrows do not work the same as the ws keys do for movement. So, I need to figure out how to map them seperately as well.
Have you figured something out? Because this also applies to the gamepad... I'm playing using a Logitech Rumblepad 2 on the PC and I can steer the motorcycle left and right using the left analog stick but can't accelerate/reverse. Very frustrating because everytime you need to use the bike you have switch to the keyboard.
Reply With Quote
  #19  
Old 11-24-2008, 09:57 AM
sqrly sqrly is offline
New Player
 
Join Date: Nov 2008
Posts: 22
Default

Jeff, who started this thread, gave us the bulk of the info here.

Intellimoo figured out the numbers for the outside L and outside R for 5 button mice.

I figured out the numbers for the arrow keys on the keyboard.

As for a gamepad on a PC, I have no idea. I personally would never hook a gamepad to anything but a console that I personally, would never own in the 1st place, but that's just me so....

If your so inclined, start researching "scancodes". When you push a button on your gamepad, mouse, keyboard, joystick, any input device, it generates a "scancode". Since binary boggles the human brain we look at these in hexdecimal format. (which only boggles it slightly less) In an earlier post I linked a tool to convert hexdecimal numbers into decimal ones for use in the registry file for the game.

Microsoft has a few handy programs you can download that might help you figure out what specific codes come out of your gamepad as well as a few other places offering freeware. Also, there only seems to be a little over 300, you could try trial and error on one key setting.

I wish you the best. I'm sure there's others who would appreciate the info too.
__________________
Metaboli ripped me off, do not purchase digital downloads from them.
Reply With Quote
  #20  
Old 11-24-2008, 06:43 PM
Mike89 Mike89 is offline
Gamer
 
Join Date: Apr 2003
Location: California
Posts: 43
Default

Any idea if mouse button 4 can be mapped?
__________________
I7 920 @ 3.5 gig, Asus P6T, 3x1024 DDR3 1600 , GTX 280, X-Fi Xtreme Gamer Pro, 2 WD 250 gig SATA HDDs, WD 750 gig (eSata), Z-5500 5.1, Corsair TX750w, XP Pro
Reply With Quote
  #21  
Old 11-25-2008, 04:48 AM
jeffareid jeffareid is offline
Gamer
 
Join Date: Jan 2004
Location: So California
Posts: 153
Default

Quote:
Originally Posted by Mike89 View Post
Any idea if mouse button 4 can be mapped?
That should be 99 or 100, the same as left side or right side mouse button. I tried this but the button menu display didn't show anything, and I don't have a 5 button mouse to test with.
Reply With Quote
  #22  
Old 11-25-2008, 07:25 AM
Mike89 Mike89 is offline
Gamer
 
Join Date: Apr 2003
Location: California
Posts: 43
Default

I'll give 99 and 100 a try. I have a 5 button mouse but really don't use the 5th button as it is on the side behind button 4. A little too hard to reach when you need it hit it quickly. I use button 4 though. It still kind of amazes me how long 5 button mice have been out and still a lot of games don't recognize those buttons.


BTW, thanks much for doing the work on this to now allow the user to set the controls properly for this game. I was very bummed at first when this game would not let me do it. Your solution helped me out big time.
__________________
I7 920 @ 3.5 gig, Asus P6T, 3x1024 DDR3 1600 , GTX 280, X-Fi Xtreme Gamer Pro, 2 WD 250 gig SATA HDDs, WD 750 gig (eSata), Z-5500 5.1, Corsair TX750w, XP Pro

Last edited by Mike89; 11-25-2008 at 08:35 AM.
Reply With Quote
  #23  
Old 11-25-2008, 07:54 AM
leiahteh leiahteh is offline
New Player
 
Join Date: Nov 2008
Posts: 2
Default

Nice stuff just what i needed for my mouse :P
Check this out if u have a ps3 controller u wanna play on the pc. this thing rox lolll
http://forums.eidosgames.com/showthr...825#post900825
Reply With Quote
  #24  
Old 11-25-2008, 03:20 PM
tr1xp tr1xp is offline
Gamer
 
Join Date: Jul 2004
Posts: 144
Default

""8"="" ;not used (vehicle switch target in Legends)"

I could be mistaken but I think that is actually a "hidden" (read: they forgot about it) hard coded function for "Center the camera behind Lara". On my gamepad that defaults onto button 8 and if I bind, say, grenade to that button, it will do both functions, toss a grenade and center the camera.
Reply With Quote
  #25  
Old 11-25-2008, 08:33 PM
Mike89 Mike89 is offline
Gamer
 
Join Date: Apr 2003
Location: California
Posts: 43
Default

Yep, tried it, 99 is mouse button 4.
__________________
I7 920 @ 3.5 gig, Asus P6T, 3x1024 DDR3 1600 , GTX 280, X-Fi Xtreme Gamer Pro, 2 WD 250 gig SATA HDDs, WD 750 gig (eSata), Z-5500 5.1, Corsair TX750w, XP Pro
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:12 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.