Finding out the Controller Buttons

Started by KingOfHeart, February 10, 2012, 09:18:50 PM

Previous topic - Next topic

KingOfHeart

Pause Special Move Timer [TNTkryzt]
205B91A0 00004400
040A90C8 901E1528
CC000000 00000000
040A90C8 909E1528
E0000000 80008000
(Press C+B On/Off)

Which lines control the C+B, and the on/off?
I'm trying to create a new code for my NMHeros2 Wii game from recycled codes. I don't have 100 posts yet, so I figured I'd get some help here.
I know it's different for each game, but I'm sure there's a pattern.

In the end I want to turn it into this.
Play as Shinobu On
0402DDA4 38800001

Play as Travis Off
0402DDA4 38800000

Even if the code fails, I still want to learn how it's done.

dcx2

Use this tool.  http://www.geckocodes.org/index.php?arsenal=2

This line is the C+B activator.  205B91A0 00004400

Typically we use 28 codes instead of 20 codes.  In this case, the address of the button activator is 805B91A0.  If you were to use a 28, it would instead be 285B91A2 00004400 (address 805B91A2).  This is a game-specific address; either find someone else's button activator for the same game, or whip out the USB Gecko and go looking for it yourself.

This line is the on/off.  CC000000 00000000

The CC switch code is toggled when the activator happens.  If the CC switch is set to the "on" position, the codes after the CC line will be executed, until an end-if (like E0).  In TNT's case, it would first write 901E1528 (the line before the CC), and then over-write it with 909E1528 (the line after the CC).  If the CC switch is off, the codes after the CC line are not executed.  So it would write 901E1528, and then it would NOT over-write it.