[FIX] Numpad keybinding

Post » Thu May 17, 2012 2:57 am

Like many others, I use the mouse left-handed, and remap movement & other keys to the number pad. Skyrim does not allow this, as NumPad 1-8 are reserved keys. After a lot of digging around, I figured out how to use these keys, without using a third-party program.

Warning - this requires some editing. You will need a hex editor program. (I used this one - http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm)

1. Make a backup copy of \Steam\steamapps\common\skyrim\Data\Skyrim - Interface.bsa, and then open the original with a hex editor. You should be able to see text/chars in the side window.

2. Scroll way, way down, to about address 34,701,270 (or search for "// Main Gameplay". You will see a bunch of text, that cleaned up, looks something like the code snippet below. The 1st column is the game event, the 2nd column refers to keyboard key ID's, the 3rd to Mouse button ID's, and the 4th to Gamepad button ID's. Notice that Hotkey 1 has keyboard key ID's of "0x02, 0x4f". After many hours of researching scan codes & hex unicodes, I know that this refers to "1" and "NumPad 1" respectively.
//Main GameplayForward		0x11				0xff	0xff			1	1	0	0x801Back			0x1f				0xff	0xff			1	1	0	0x801Strafe Left		0x1e				0xff	0xff			1	1	0	0x801Strafe Right	0x20				0xff	0xff			1	1	0	0x801Move			0xff				0xff	0x000b		0	0	0	0x801Look			0xff				0xa	0x000c		0	0	0	0x2Left attk/block	0xff				0x1	0x000a		1	1	1	0x841Right attk/block	0xff				0x0	0x000a		1	1	1	0x841Activate		0x12				0xff	0x1000		1	1	1	0x804Ready Weapon	0x13				0xff	0x4000		1	1	1	0x840Tween Menu	0x0f				0xff	0x2000		1	1	1	0x908Toggle POV	0x21				0xff	0x0080		1	1	1	0x820Zoom Out		0xff				0x9	0xff			0	0	0	0x220Zoom In		0xff				0x8	0xff			0	0	0	0x220Jump			0x39				0xff	0x8000		1	1	1	0xC01Sprint		0x38				0xff	0x0100		1	1	1	0x801Shout		0x2c				0xff	0x0200		1	1	1	0x840Sneak		0x1d				0xff	0x0040		1	1	1	0x881Run			0x2a				0xff	0xff			1	1	1	0x801Toggle Run	0x3a				0xff	0xff			1	1	0	0x801Auto-Move		0x2e				0xff	0xff			1	1	0	0x801Favorites		0x10				0xff	0x0001,0x0002	1	1	0	0x908Hotkey 1		0x02,0x4f			0xff	0x0004		0	0	0	0x908Hotkey 2		0x03,0x50			0xff	0x0008		0	0	0	0x908Hotkey 3		0x04,0x51			0xff	0xff			0	0	0	0x908Hotkey 4		0x05,0x4b			0xff	0xff			0	0	0	0x908Hotkey 5		0x06,0x4c			0xff	0xff			0	0	0	0x908Hotkey 6		0x07,0x4d			0xff	0xff			0	0	0	0x908Hotkey 7		0x08,0x47			0xff	0xff			0	0	0	0x908Hotkey 8		0x09,0x48			0xff	0xff			0	0	0	0x908

3. Edit out the 2nd part of every hotkey 2nd column entry. For example, change Hotkey 1 from "0x02,0x4f" to "0x02". (When I looked at the raw hex data for other entries, there were 4 "09" entries between the 2nd & 3rd data sets, so I made sure to keep the same when I edited these).

4. Save the file, and start Skyrim. You may now bind your numpad keys (just got back in game, and I now use Num5 for Forward, Num2 for Back, Num1 & 3 for strafing left/right).

I do not know what effect this will have on other key usage choices.

Enjoy!
User avatar
Danial Zachery
 
Posts: 3451
Joined: Fri Aug 24, 2007 5:41 am

Post » Thu May 17, 2012 1:22 am

Not to be an ass, but I believe I have an easier fix posted;)

http://www.gamesas.com/index.php?/topic/1262967-keyboard-binding-fix/
User avatar
Dark Mogul
 
Posts: 3438
Joined: Tue Feb 20, 2007 11:51 am

Post » Wed May 16, 2012 4:39 pm

Nice work, both of you!
User avatar
REVLUTIN
 
Posts: 3498
Joined: Tue Dec 26, 2006 8:44 pm

Post » Thu May 17, 2012 6:50 am

Not to be an ass, but I believe I have an easier fix posted;)

http://www.gamesas.com/index.php?/topic/1262967-keyboard-binding-fix/

Nice one. I recognize the layout of that, as it's what I was staring at for a long time. You beat my post by about an hour, too. :P Although, if you remove the 2nd set as I mention, the numpad 1-8 keys will no longer be reserved for the hotkeys.
User avatar
Charlie Sarson
 
Posts: 3445
Joined: Thu May 17, 2007 12:38 pm

Post » Thu May 17, 2012 12:41 am

The link, above, to the other fix thread is dead... what happened to it?
User avatar
Katie Samuel
 
Posts: 3384
Joined: Tue Oct 10, 2006 5:20 am

Post » Thu May 17, 2012 1:55 am

The link, above, to the other fix thread is dead... what happened to it?

One of the mods "organized" the keybind threads.. well, most of them. They're mostly in one thread now:

http://www.gamesas.com/index.php?/topic/1261029-keybinding-issues-2-hotkeys-numpad-cannot-drop-cannot-take-books-cannot-spend-dragon-souls-etc/page__st__100

At least until they do another mass combine of threads.

My big problem is that they didn't leave any links behind, everything just "disappeared."
User avatar
Maddy Paul
 
Posts: 3430
Joined: Wed Feb 14, 2007 4:20 pm

Post » Thu May 17, 2012 3:27 am

Please use one thread for all keybinding bug reports and fixes: http://www.gamesas.com/index.php?/topic/1261029-keybinding-issues-2-hotkeys-favorites-numpad-cannot-drop-cannot-take-books-cannot-spend-dragon-souls-etc/

Thank you.
User avatar
Jerry Jr. Ortiz
 
Posts: 3457
Joined: Fri Nov 23, 2007 12:39 pm


Return to V - Skyrim