Help changing controls

Mar 23, 2011 at 12:33 AM
Neophyte Member
"Fresh from the Bakery"
Join Date: Mar 23, 2011
Location:
Posts: 8
Cave Story looks amazing, but playing is going to feel really awkward unless I change two basic controls:

Jump: Space
Attack: LeftShift

Is this possible?
 
Mar 23, 2011 at 12:34 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Yes, but you'll need to know how to use a hex editor or debugger at the very least.
 
Mar 23, 2011 at 12:45 AM
Neophyte Member
"Fresh from the Bakery"
Join Date: Mar 23, 2011
Location:
Posts: 8
Noxid said:
Yes, but you'll need to know how to use a hex editor or debugger at the very least.

While I don't have any experience with such, I'm not technologically-incapable. I learn quickly. Care to show me how? :muscledoc:
 
Mar 23, 2011 at 12:59 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Code:
CPU Dump ------ KeyDown map
Address   Hex dump                                         ASCII
004133A3  00 14 14 14|14 14 14 14|14 14 14 01|14 14 14 14| .
004133B3  14 14 14 14|14 02 03 04|05 14 14 14|14 14 14 14| 
004133C3  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
004133D3  14 06 14 14|14 14 14 14|14 14 14 14|07 14 14 14| 
004133E3  14 08 14 09|14 14 14 0A|0B 14 0C 14|14 14 14 14| ...
004133F3  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
00413403  0D 0E 14 14|0F 14 14 14|14 14 14 14|14 14 14 14| .
00413413  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
00413423  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
00413433  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
00413443  14 14 14 14|14 14 14 14|14 14 14 10|11 14 12 13|
Code:
CPU Dump -----KeyUp map
Address   Hex dump                                         ASCII
004134A3  00 13 13 13|13 13 13 13|13 13 13 01|13 13 13 13| .
004134B3  13 13 13 13|13 02 03 04|05 13 13 13|13 13 13 13| 
004134C3  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
004134D3  13 06 13 13|13 13 13 13|13 13 13 13|07 13 13 13| 
004134E3  13 08 13 09|13 13 13 0A|0B 13 0C 13|13 13 13 13| ...
004134F3  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
00413503  0D 0E 13 13|13 13 13 13|13 13 13 13|13 13 13 13| .
00413513  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
00413523  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
00413533  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
00413543  13 13 13 13|13 13 13 13|13 13 13 0F|10 13 11 12|
http://www.asciitable.com/
These two byte-arrays are indexes to switch tables that handle keyboard input events. Each byte represents a key, and its value determines what that key does. Find the keys for jump and shoot (hint: "a" is 06 @ +0x31) and change the desired keys to match those #s. To determine what byte is what key, look at the Ascii table and subtract 0x10 from the hex value (or 16 from the decimal if you want to count that way...)

Since it's not clear, I'll let you know that Left Shift is actually Ascii 0x10, address +00 (The key's already mapped but it does nothing..)

Oh also if you're using a hex editor subtract 0x400000 from those addresses.
 
Mar 25, 2011 at 9:43 AM
Neophyte Member
"Fresh from the Bakery"
Join Date: Mar 23, 2011
Location:
Posts: 8
This seems... tough. Any chance of you pointing out which two values to change? This is above my head, just by a bit.
 
Mar 25, 2011 at 2:22 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Noxid said:
Code:
CPU Dump ------ KeyDown map
Address   Hex dump                                         ASCII
004133A3  [COLOR="Red"]0B[/COLOR] 14 14 14|14 14 14 14|14 14 14 01|14 14 14 14| .
004133B3  [COLOR="red"]0C[/COLOR] 14 14 14|14 02 03 04|05 14 14 14|14 14 14 14| 
004133C3  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
004133D3  14 06 14 14|14 14 14 14|14 14 14 14|07 14 14 14| 
004133E3  14 08 14 09|14 14 14 0A|[COLOR="red"]14[/COLOR] 14 [COLOR="red"]14[/COLOR] 14|14 14 14 14| ...
004133F3  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
00413403  0D 0E 14 14|0F 14 14 14|14 14 14 14|14 14 14 14| .
00413413  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
00413423  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
00413433  14 14 14 14|14 14 14 14|14 14 14 14|14 14 14 14| 
00413443  14 14 14 14|14 14 14 14|14 14 14 10|11 14 12 13|
Code:
CPU Dump -----KeyUp map
Address   Hex dump                                         ASCII
004134A3  [COLOR="red"]0B[/COLOR] 13 13 13|13 13 13 13|13 13 13 01|13 13 13 13| .
004134B3  [COLOR="red"]0C[/COLOR] 13 13 13|13 02 03 04|05 13 13 13|13 13 13 13| 
004134C3  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
004134D3  13 06 13 13|13 13 13 13|13 13 13 13|07 13 13 13| 
004134E3  13 08 13 09|13 13 13 0A|[COLOR="red"]13[/COLOR] 13 [COLOR="red"]13[/COLOR] 13|13 13 13 13| ...
004134F3  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
00413503  0D 0E 13 13|13 13 13 13|13 13 13 13|13 13 13 13| .
00413513  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
00413523  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
00413533  13 13 13 13|13 13 13 13|13 13 13 13|13 13 13 13| 
00413543  13 13 13 13|13 13 13 13|13 13 13 0F|10 13 11 12|
Do that.
 
May 29, 2011 at 11:50 PM
Neophyte Member
"Fresh from the Bakery"
Join Date: Mar 23, 2011
Location:
Posts: 8
I know I'm resurrecting a dead thread, but I'm completely lost. I have no knowledge of using a hex editor.

So far, I downloaded a hex editor and opened up the Cave Story exe. I looked for "004134A3" but couldn't find it. I know I must seem retarded to those fluent in this, but I don't have the knowledge to do this, but would hate to miss out on Cave Story.

This may seem like I'm asking a bit much, but if anyone knows how to do this in a snap, could they send me their exe? I'm using the .exe in the translated Deluxe version btw :cool:
 
May 30, 2011 at 4:04 AM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Robot7290 said:
I know I'm resurrecting a dead thread, but I'm completely lost. I have no knowledge of using a hex editor.

So far, I downloaded a hex editor and opened up the Cave Story exe. I looked for "004134A3" but couldn't find it. I know I must seem retarded to those fluent in this, but I don't have the knowledge to do this, but would hate to miss out on Cave Story.

This may seem like I'm asking a bit much, but if anyone knows how to do this in a snap, could they send me their exe? I'm using the .exe in the translated Deluxe version btw :heart:

I'm sorry if I'm supporting the resurrection of a dead thread, but remember Noxid told you to subtract 0x400000. This means the real address is 134A3 for a hex editor, not 4134A3.

By the way, if you don't want to screw with the exe, why not try GRebind? It's a key remapper that was basically built for Cave Story.

http://www.cavestory.org/downloads_misc.php <--Look at the 6th box.
 
May 30, 2011 at 7:17 AM
Neophyte Member
"Fresh from the Bakery"
Join Date: Mar 23, 2011
Location:
Posts: 8
Carrotlord said:
I'm sorry if I'm supporting the resurrection of a dead thread, but remember Noxid told you to subtract 0x400000. This means the real address is 134A3 for a hex editor, not 4134A3.
I understand subtraction, but I didn't understand the number 0x400000. :heart:

By the way, if you don't want to screw with the exe, why not try GRebind? It's a key remapper that was basically built for Cave Story.
http://www.cavestory.org/downloads_misc.php <--Look at the 6th box.
Great, perfect, thanks!
 
Mar 4, 2012 at 8:59 PM
Neophyte Member
"Fresh from the Bakery"
Join Date: Mar 4, 2012
Location:
Posts: 4
Hey, I do not have ANY experience in hex editors, so can someone remap the controls for me so I can play Cave Story with my XArcade stick? The controls need to be remapped as follows: From A to Left Control, from S to Left Alt, from Q to C, from W to 5, from Z to Left Shift, from X to Z, from F1 to space, and from F2 to X. Thanks, and sorry for reviving a dead topic lol :)!
 
Mar 5, 2012 at 3:01 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Might wanna give a warning about the direct download.
 
Mar 9, 2012 at 11:53 PM
Neophyte Member
"Fresh from the Bakery"
Join Date: Mar 4, 2012
Location:
Posts: 4
Thanks for the help, but i cant get grebind to work with the control key :p. Is there anyway to get the ctrl key to work in grebind, or will i hav to resort to a hex editor?

My bad, its the ALT key that doesn't work. Sorry lol :)

Hey, I got it working using a program called AutoHotKey. Thanks for your help, as I couldn't of found that without searching up grebind (i found it in a website with alternatives) :)!

(Oh, and sorry Noxid, I didn't know you could edit posts :/)
 
Top