WiiRd forum

Wii & Gamecube Hacking => WiiRD Remote Debugger => Topic started by: lindtec on July 26, 2008, 10:23:06 PM

Title: How to use Button-Combination to activate cheat?
Post by: lindtec on July 26, 2008, 10:23:06 PM
Hello again

I've seen those codes of Zelda TP, where you can change your
form with the pressing of a button combination.

Could someone tell me generaly (hopefully in simple terms), how this works?
Which codes I have to use und how are those combinations defined?

If there is allready a tutorial for this out there, I would be thankful for
a link.

Greetings lindtec
Title: How to use Button-Combination to activate cheat?
Post by: Link on July 26, 2008, 10:37:06 PM
Note: I also added interesting tidbits for advanced members but I'll start out the easy way!

doing button combinations not too hard:

first of all you need to know button values:

GCN Wii Clasic
L 0001 L 0001 U+ 0001
R 0002 R 0002 L+ 0002
D 0004 D 0004 Zr 0004
U 0008 U 0008 X  0008
Z 0010 + 0010 A  0010
R 0020 2 0100 Y  0020
L 0040 1 0200 B  0040
A 0100 B 0400 Zl 0080
B 0200 A 0800 R  0200
X 0400 - 1000 +  0400
Y 0800 Z 2000 -  1000
S 1000 C 4000 L  2000
D+ 4000
R+ 8000

(copied from an old thread)..
now I'll use an example:

Form Switch C+Z+R = Wolf (code minorly modified for understanding!)
2844BB66 00006002
00492946 00000001
E0000000 80008000

The actual key is: 2844BB66.. this means: "Read the 16 bit value at the address 8044BB66. Now we know - we're using Wii buttons.. and we want.. C, Z and R to be pressed: look up in the table: C is 4000, Z is 2000 and R is 0002 - so.. we'll go for:

C+Z+R=4000+2000+0002=6002

2844BB66 00006002 therefore checks:
is the value at address 8044BB66 6002 - if it is: then this condition is met.. in our case the condition is met when C+Z and R are pressed. Please note: 8044BB66 is game dependent. A possible way to search for these kinda codes is to look in the table.. press no buttons: search for 16 bit 0000.. now press A (ONLY A).. and search for 0800. You'll slowly narrow down addresses.

For advanced members: I highly recommend you to do codes a little more cooler than that one.. this one is: Press C+Z+R and nothing else, it won't work if you press anything. Simply open calc.exe and set it to Scientific mode.. now enable Hex mode.. and type in: 6002 and click on NOT: you'll get FFFFFFFFFFFF9FFD... only take the last 4 digits.. 9FFD.. and rewrite the code above to:

2844BB66 9FFD6002

technically 28 codes parse the following:

28XXXXXX YYYYZZZZ

If [value at base+XXXXXX] AND (NOT YYYY) == ZZZZ

now we have to slowly approach that.. now YYYY is 9FFD.. notting 9FFD is 6002 again.. now imagine I press C+Z+R+A.. this is 6802...
so.. 6802 AND (NOT 9FFD) = 6802 AND 6002 = 6002 (you can verify in calc.exe).. so.. this condition is true.. using that additional data it ignored A... now to verify I am not talking garbage.. what if YYYY=0000.. I press C+Z+A+R = 6802

6802 AND (NOT 0000) = 6802 AND FFFF = 6802
this is not 6002!

So what is
b) 2844BB66 00006002
a) 2844BB66 9FFD6002
Precisely spoken:
a means: Press C+Z+R and nothing else! If you press anything else, nothing will happen!
b means: Press at least C+Z+R - every other button is also allowed but at least these must be pressed!

Of course these code parts are tricky.. you could technically bring this to an even more complicated level.. if people are interested in example.. I'll happily post!
Title: How to use Button-Combination to activate cheat?
Post by: lindtec on July 26, 2008, 10:57:36 PM
Thanks a lot...

That was just the kind of info I needed.

Oh and concerning your part about "an even more complicated level",
what would be the use of doing it even more complicated.

Don't get me wrong. I understand, why you want to correct that Zelda-Code,
but what else can happen (besides someone pressing 4 instead of 3 buttons),
that makes it neccesary to go "even more complicated"?
Title: How to use Button-Combination to activate cheat?
Post by: Link on July 26, 2008, 11:09:49 PM
the more complicated part would be something like.. Press at least Z+C+R but do not press A.. this could be integrated..

that would in the end be:

2844BB66 97FD6002

97FD is: NOT 6802 - while 6802 is C+Z+R+A - this might be an interesting structure if people need to have additional buttons which mustn't be pressed for working of the code.

Or even stranger things are possible:

2844BB66 F7FF0000

this techncally means: As long as A is not pressed execute..
F7FF is (NOT 0800)

And well.. there are certainly very many possibilites.. and all those possibilities did not exist on the Gamecube so as most hackers here are coming from the GC scene there are certainly new things for them.
Title: How to use Button-Combination to activate cheat?
Post by: lindtec on July 26, 2008, 11:20:43 PM
Thanks again for this info...

It sure could come in handy, to know, that even not pressing a button could be used
for code execution.
Title: How to use Button-Combination to activate cheat?
Post by: James0x57 on July 27, 2008, 06:02:06 AM
You mean copied from MY thread! lol ;p
Those "more complicated" ideas are pretty neat, Link. Heh. Just never thought to do it like that. :)

And for the record, I made that from switch code strictly CZR on purpose. 8)



One more thing about conditional codes, they have to end with a line like:
E0000000 80008000
Title: How to use Button-Combination to activate cheat?
Post by: lindtec on July 27, 2008, 06:39:18 AM
@James0x57

Just curious, why did you make this C+Z+R Code purposly so, that it won't work,
if another button is pressed?

And thanks for this last bit of advice. I guessed as much, but it's always better
to hear it from the experts...
Title: How to use Button-Combination to activate cheat?
Post by: James0x57 on July 27, 2008, 06:44:55 AM
That way it's more of a deliberate, very specific, action. It reduces (a little) the risk of someone accidentally pressing the already odd combination.
(Pressing the buttons for being a wolf and then entering a shop may freeze the game, so extra precaution was necessary.)

And you're welcome ;)
Title: How to use Button-Combination to activate cheat?
Post by: lindtec on July 27, 2008, 07:08:45 AM
I see...

Just another thing.

I know, that when you press Left or Right, it would switch weapons in Zelda. Does this
still happen when you press it in combination with Z and C? Or are the normal button
functions deactivated, when you press it together with another button?

Since I don't own that game (Just borrowed it for HBC), I can't check myself.

Hope, my question doesn't sound too stupid.

Thanks in advance for your answer.
(That way, I don't have to make a new post, just to thank you)
Title: How to use Button-Combination to activate cheat?
Post by: Link on July 27, 2008, 08:04:02 AM
That's depending on the game.. most games however also ignore other buttons! In case of Zelda certain additional buttons are allowed to my knowledge but by far not all. Other button function override weapon switches!
Title: How to use Button-Combination to activate cheat?
Post by: James0x57 on July 27, 2008, 04:00:52 PM
Most games? I'd say it's rare for a game to ignore the buttons you press..

Zelda does still switch the weapons when you press that combination.
Title: How to use Button-Combination to activate cheat?
Post by: Link on July 27, 2008, 05:31:25 PM
well, you're right but still.. it's the developer's way.. they might or might not..

just 99% of all do ^^
Title: How to use Button-Combination to activate cheat?
Post by: schmake on July 30, 2008, 10:35:52 PM
Thanks for the help in this thread Link and James0x57, been invaluable :)
I've managed to incorporate it into some of my cheats that I didn't always want on
Title: How to use Button-Combination to activate cheat?
Post by: lindtec on July 31, 2008, 12:49:00 PM
@schmake

Maybe you know this allready, but if you put CC000000 00000000 as your next
line after the one with the button-combination, you can switch this code with
the same combination off again.

This is also listed in the codetypelist (http://www.usbgecko.com/codetypes.htm) at "CST6: On/Off-Switch".

BTW. Good luck with your future code-creation
Title: How to use Button-Combination to activate cheat?
Post by: James0x57 on July 31, 2008, 01:18:17 PM
That's what that does? Hah, I couldn't figure it out. lol
Title: How to use Button-Combination to activate cheat?
Post by: Black_Wolf on July 31, 2008, 09:17:54 PM
wow thats handy, so you don't actually have to make a NOT BUTTON code type just to turn it off lol.
Title: How to use Button-Combination to activate cheat?
Post by: schmake on July 31, 2008, 10:18:41 PM
Thanks Lindtec that will definitely come in handy along the way :)
Title: How to use Button-Combination to activate cheat?
Post by: ZiT on August 04, 2008, 01:32:35 AM
I read explanation, but ask because I do not understand it.

For example, what do you do to validate it when I pushed the Z button in the case of the following cords?

800358B8 4BFCD948   b 0x80003200
80003200 2C1C0001   cmpwi r28,1
80003204 41820010   beq- 0x80003214
80003208 3DE03F60   lis r15,16224
8000320C 91E30648   stw r15,1608(r3)
80003210 480326AC   b 0x800358bc
80003214 3DE04070   lis r15,16496
80003218 91E30648   stw r15,1608(r3)
8000321C 480326A0   b 0x800358bc

I changed it as follows, but was no use.

2844BB66 00002000
800358B8 4BFCD948
80003200 2C1C0001
80003204 41820010
80003208 3DE03F60
8000320C 91E30648
80003210 480326AC
80003214 3DE04070
80003218 91E30648
8000321C 480326A0
E0000000 80008000
Title: How to use Button-Combination to activate cheat?
Post by: brkirch on August 04, 2008, 03:26:22 AM
Quote from: ZiT;1568I read explanation, but ask because I do not understand it.

For example, what do you do to validate it when I pushed the Z button in the case of the following cords?

You are just forgetting to change the addresses from 80XXXXXX to 04XXXXXX, there doesn't seem to be anything otherwise wrong with your code.  Here's how I would write it though:
2844BB66 00002000
C20358B8 00000004
2C1C0001 41820010
3DE03F60 91E30648
480326AC 3DE04070
91E30648 00000000
E0000000 80008000

Notice that I used the "Insert ASM code in the game" code type, as it really helps to compact codes like this :)
Title: How to use Button-Combination to activate cheat?
Post by: ZiT on August 04, 2008, 04:17:40 AM
Thank you for Comment:)
Thank you for a Matter of "80XXXXXX to 04XXXXXX":irule:
I was able to do it on the Coattails of Brkirch:love

"2844BB66" Thought me to be the same by all Games, but Understood that I was Different by a Game.

The Following Cords are Successful Examples.


Walk Speed UP
040358B8 4BFCD948
04003200 2C1C0001
04003204 41820010
04003208 3DE03F60
0400320C 91E30648
04003210 480326AC
04003214 3DE04070
04003218 91E30648
0400321C 480326A0
※Usually:80003214 3DE00000
※?2.5:80003214 3DE04020
※?3:80003214 3DE04040
※?3.5:80003214 3DE04060
※?3.75:80003214 3DE04070

Walk Speed is Usual (Z button)
42000000 80000000
28390DCA 00002000
04003214 3DE00000
E0000000 80008000

Many Thanks;)
Title: How to use Button-Combination to activate cheat?
Post by: Panda On Smack on August 21, 2008, 01:53:12 PM
Thanks for this thread, very helpful

I've found 20 addresses that match my key press, which shall I use?! It won't narrow down anymore.

ta
Title: How to use Button-Combination to activate cheat?
Post by: brkirch on August 21, 2008, 06:23:09 PM
Quote from: Panda On Smack;6445Thanks for this thread, very helpful

I've found 20 addresses that match my key press, which shall I use?! It won't narrow down anymore.

ta

Try searching again on the home button screen, you probably can then reduce your number of results even more.  Otherwise the first address displayed is probably the one to use.
Title: How to use Button-Combination to activate cheat?
Post by: Panda On Smack on August 21, 2008, 11:24:32 PM
Quote from: brkirch;6535Try searching again on the home button screen, you probably can then reduce your number of results even more.  Otherwise the first address displayed is probably the one to use.

Thanks, I just used the first in the list. I've posted some codes that use it so will hopefully get some feedback about it.

When you say "home button screen" you mean still in game but after pressing home and the buttons popup and you have the wiimote options?

ta brkirch
Title: How to use Button-Combination to activate cheat?
Post by: brkirch on August 21, 2008, 11:39:59 PM
Quote from: Panda On Smack;6624When you say "home button screen" you mean still in game but after pressing home and the buttons popup and you have the wiimote options?

That's correct.
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 09, 2008, 11:39:49 PM
Hy Guys!

I tested this one but it won't work.

I tested it with my time code for HM - ToT.

[Time Code]
283ADB6A CDFF3200
CC000000 00000000
0447F060 001C5840
E0000000 80008000

Ok. The first line is the code i found with searching for 16bit 0000 then press "A" and search for 0800. And the combination Z+A+B and the not command. Second line is for deactivate with same combination. Third line is the code and last line is just how it has to end. :)

Now if the code looks like that...

[Time Code]
283ADB6A CDFF3200
0447F060 001C5840
E0000000 80008000

...i can turn it off with the combination Z+A+B but can't turn it on again. And when it looks like the first (including CC000000 00000000) i can't even turn it off. What's wrong? Did i forget something?

Greetings
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 10, 2008, 05:14:30 PM
Now it works. Dunno what was wrong.

But is it also possible to increase a value by pressing a button and decrease by pressing another button?

For example:

Day Code:
0447F058 00000001

This code says in game it is the first day. I have to go to bed to come to the next day. But i won't wait this long. So i press 1 on my Mote and its the second day. When i now press the 2 its again the first day. How has the code to look like, and why? Hope someone can help me.

Here the codes for 1 + 2 on the wiimote:
283ADB6A 00000200 for button 1
283ADB6A 00000100 for button 2

Greetings and thankx
Title: Re: How to use Button-Combination to activate cheat?
Post by: lindtec on October 10, 2008, 09:24:19 PM
You could try the following code:

[Increase Day by pressing 1 / decrease by pressing 2]
283ADB6A 00000200
82100000 8047F058
86000000 00000001
84100000 8047F058
E0000000 80008000
283ADB6A 00000100
82100000 8047F058
86000000 FFFFFFFF
84100000 8047F058
E0000000 80008000

If the days change to fast, try the following code:

[Increase Day by pressing 1 / decrease by pressing 2]
283ADB6A 00000200
A8000000 FFFD0002
82100000 8047F058
86000000 00000001
84100000 8047F058
E0000000 80008000
283ADB6A 00000100
A8000000 FFFD0002
82100000 8047F058
86000000 FFFFFFFF
84100000 8047F058
E0000000 80008000

Note: This code is untested, so feel free to experiment with it.
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 11, 2008, 01:04:38 AM
Thx. I'll test them tomorrow. But can u explain why this is so or give me at least a schema or something?

283ADB6A 00000200 -> This one i understand
82100000 8047F058 -> 82100000 is it always same or what does it say?
86000000 00000001 -> 86000000 is it always same?
84100000 8047F058 -> 84100000 same here... is it always same or where does it come from?
E0000000 80008000 -> End of a code, i think. :)

Same at the second model...

Greetings
Title: Re: How to use Button-Combination to activate cheat?
Post by: lindtec on October 11, 2008, 08:21:37 AM
Quote from: OnkelLes on October 11, 2008, 01:04:38 AM
Thx. I'll test them tomorrow. But can u explain why this is so or give me at least a schema or something?

283ADB6A 00000200 -> This one i understand
82100000 8047F058 -> 82100000 is it always same or what does it say?
86000000 00000001 -> 86000000 is it always same?
84100000 8047F058 -> 84100000 same here... is it always same or where does it come from?
E0000000 80008000 -> End of a code, i think. :)

Same at the second model...

Greetings

This code works with a so called gecko-register.

"82100000 8047F058" writes the current value at 8047F058 into register 0 (in your case this would be 01 for Day 1)
"86000000 00000001" adds 01 to the value stored in register 0 (so the value becomes in your case 02 for Day 2)
"86000000 FFFFFFFF" substracts 01 of the value stored in register 0
"84100000 8047F058" writes the new value in register 0 back to address 8047F058

For mor infos on what to do with gecko-registers, you could read the code-type-list at
http://www.usbgecko.com/codetypes.htm (http://www.usbgecko.com/codetypes.htm). (CT4 Gecko Register Operations)

Be aware, that you should avoid using different codes together, that use the same register
(you can use up to 16 different gecko-registers).

Another problem is that, when you go below 0 with this substract-code, you end up with FFFF (in your case
either 65k days in the future or a freeze). To prevent that, you should put an if-comparison at the beginning
of the code, that checks, if the value at 8047F058 is greater than 0.
Something like this:

2C47F058 00000000
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 11, 2008, 10:26:38 AM
I don't understand this. :(

Maybe u can give me another example. :)

Code is:
8047F060 001C5840
Buttons are same:
283ADB6A 00000200 for button 1 (increase)
283ADB6A 00000100 for button 2 (decrease)
Value increases/decreases each time.
0E10
Value mustn't be under:
1C03E0
Value mustn't be over:
1D4750

Let me try:
283ADB6A 00000200 -> activate by button 1
82200000 8047F060 -> current value into register (82200000 because its a 32 bit adress??)
86000000 00000E10 -> how much he increases each time (dunno why 86000000)
84200000 8047F060 -> where he should write to new value (84200000 because its a 32 bit adress?)
E0000000 80008000 -> end of first code
283ADB6A 00000100 -> activate by button 2
82100000 8047F060 -> current value into register
86000000 FFFFF1F0 -> FFFFF1F0 is right? (dunno why 86000000)
84100000 8047F060 -> where he should write new value to
E0000000 80008000 -> end of second code

Where i have to put the "check if" and are both "check if" same?

Thx

edit: I tested this one and when i press 1 it don't increases time, it increases day and not just 1...
edit2: Found some mistakes. Test it again...
Title: Re: How to use Button-Combination to activate cheat?
Post by: Romaap on October 11, 2008, 10:44:23 AM
the if should be on top, so it checks if it is true, if it isn't then it doesn't execute the code.
86000000 is add XXXXXXXX to gecko register 0
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 11, 2008, 10:50:11 AM
Both on top?

And got it. Its this:
CST3 : Gecko Register / Direct Value operations

86TY000N XXXXXXXX: Direct value operations
86T0 : grN = (grN ? XXXXXXXX)
86T1 : grN = ([grN] ? XXXXXXXX)
86T2 : grN = (grN ? [XXXXXXXX])
86T3 : grN = ([grN] ? [XXXXXXXX])

? = T :
0 : add (+)
1 : mul (*)
2 : or (|)
3 : and (&)
4 : xor (^)
5 : slw (<<)
6 : srw (>>)
7 : rol (rotate left)
8 : asr (arithmetic shift right)
A : fadds (single float add)
B : fmuls (single float mul)

And 8600 because 0 is add? Right

But why not 8601 or 8602?

edit: Ok. Now it works. It increases. But not 1 hour. And the decrease doesn't work. Is there no command for subtracing? Adding FFFFF1F0 is too much. Because the day changes and this doesn't work. It makes problems...
Title: Re: How to use Button-Combination to activate cheat?
Post by: Romaap on October 11, 2008, 11:01:44 AM
for subtracting, just open calculator, type in the value you want to subtract, an click NOT.
so subtracting E10 would be F1EF.

QuoteBut why not 8601 or 8602?

86T1 : grN = ([grN] ? XXXXXXXX)
86T2 : grN = (grN ? [XXXXXXXX])

everything between [] is an address
so if you use 8601 it adds XXXXXXX to the address of grN
if you use 8602 it adds [XXXXXXX] to grN
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 11, 2008, 11:24:28 AM
Thx. What does grN stand for? I'll test that. :)
Title: Re: How to use Button-Combination to activate cheat?
Post by: Romaap on October 11, 2008, 11:31:21 AM
its GeckoRegister, its a place where you can safely store values without crashing the game
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 11, 2008, 11:48:34 AM
I see. Thx soo much.

Can u also tell me what if i got another increase code?

QuoteBe aware, that you should avoid using different codes together, that use the same register
(you can use up to 16 different gecko-registers).

And the thing with the NOT code doesn't work. Don't know why. Maybe someone can tell me where the problem is...
The code looks like that:

[Time increase/decrease]
283ADB6A 00000200
82200000 8047F060
86000000 00000E10
84200000 8047F060
E0000000 80008000
283ADB6A 00000100
82100000 8047F060
86000000 FFFFF1EF
84100000 8047F060
E0000000 80008000

Greetings
Title: Re: How to use Button-Combination to activate cheat?
Post by: lindtec on October 11, 2008, 12:57:00 PM
If you got another code, that uses Gecko-Register 0 then just change one of the codes to Register 1.
For your code this would be:

283ADB6A 00000200  <-- Checks if (1) is pressed, if yes
2647F060 001D4750  <-- Checks if the value is lower than 001D4750, if yes
82200001 8047F060  <-- Loads the value of 8047F060 in Gecko-Register 1 (last number indicates register-number (0 - F))
86000001 00000E10  <-- Adds 00000E10 to the value stored in Gecko-Register 1
84200001 8047F060  <-- Writes the value stored in Gecko-Register 1 to 8047F060
E0000000 80008000
283ADB6A 00000100  <-- Checks if (2) is pressed, if yes
2447F060 001C03E0  <-- Checks if the value is higher than 001C03E0, if yes
82200001 8047F060  <-- Loads the value of 8047F060 in Gecko-Register 1 (last number indicates register-number (0 - F))
86000001 FFFFF1EF  <-- Substracts 00000E10 of the value stored in Gecko-Register 1
84200001 8047F060  <-- Writes the value stored in Gecko-Register 1 to 8047F060
E0000000 80008000

I added a check so, you won't go lower or higher than the desired values.

You also forgot to change the OFF-Code to 32bit (instead of 82100000 you have to use 82200000, same with 84100000),
thats maybe why the OFF-Code didn't work.
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 11, 2008, 05:09:12 PM
Thanks. Now i got it. I'll test them when i get the televison back. That means when the movie ends. :)

Greetings
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 11, 2008, 11:41:01 PM
Ok. I think i found the problem. Time Code got 2 codes. So i need to increase a second code at the same time...

Can u help me? What do i have to do when there are 2 codes?

Everythings same but the codes are now:

8047F060
8047F064
both increased by same value: E10

So, thats what i got:
[Time increase/decrease]
283ADB6A 00000200
82200000 8047F060
86000000 00000E10
84200000 8047F060
82200001 8047F064
86000001 00000E10
84200001 8047F064
E0000000 80008000
283ADB6A 00000100
82200000 8047F060
86000000 FFFFF1EF
84100000 8047F060
82200001 8047F064
86000001 FFFFF1EF
84100001 8047F064
E0000000 80008000

Now... When i press button 1 time increses by 1 hour, but when i release the button it goes back to the previous position.
Example: Its 8:00. I press 1 and its 9:00 as long as i press the button. I release the button and its 8:00 again. Same with button 2.

edit: Finally i made it work. :D :D :cool: :cool: :D :D
I had to make 2 different codes. One for increasing and one for decreasing. Now it works. But... (Why has there always to be a but?) It increases/decreases much to fast. I tryed with the following code and tested a little bit, but i don't know how it works. Or is there an other way to tell my Gecko just to use it once? I lowered the value it increases each time and so it works. But thats not what it should be... :)

Hope someone can help me.

CST4 : 16bits (endif, then) If counter value equal

A80XXXX0 ZZZZYYYY : 16bits If equal 16bits compares if (XXXX and not(ZZZZ))==YYYY. If yes, codes are executed (else code execution set to false).

A80XXXX1 NM00YYYY : Endif, then 16bits If equal Makes one endif, then 16bits compares if (XXXX and not(ZZZZ))==YYYY. If yes, codes are executed (else code execution set to false).

Here what both codes now look like:
[Time increase]
283ADB6A FDFF0200
A8000000 F1EE0E11 -> just one of my tests (didn't work so deactivated it)
82200000 8047F060
86000000 00000384
84200000 8047F060
82200001 8047F064
86000001 00000384
84200001 8047F064
E0000000 80008000

[Time decrease]
283ADB6A 00000100
A800E0F0 F1F00E10 -> another test (also didn't work, also deactivated)
82200000 8047F060
86000000 FFFFFC7B
84200000 8047F060
82200001 8047F064
86000001 FFFFFC7B
84200001 8047F064
E0000000 80008000

Greetings
Title: Re: How to use Button-Combination to activate cheat?
Post by: Romaap on October 12, 2008, 07:12:19 AM
maybe if you make a counter, so make a code that adds 1 to a geckoregister, and when it is 10 it goes back to 1, and in your time increase, just make a if geckoregisterN is equal to 10, that makes it 10 times slower.
Title: Re: How to use Button-Combination to activate cheat?
Post by: lindtec on October 12, 2008, 08:51:10 AM
Try using this as your second line in each code:

A8000000 FFFC0003

This is a counter, like Romaap suggested it.

Each time you press the button combination, the counter is raised by one.
When the counter reaches the desired number (in this case 3), the code is executed.
In other words, the code is executed 3 times slower, if you keep pressing a button
(normally you have to press the buttion just a split second, to execute it just once).

If it still goes to fast, just raise the counter, like

A8000000 FFFB0004
or
A8000000 FFFA0005

Hope, that helps.
Title: Re: How to use Button-Combination to activate cheat?
Post by: OnkelLes on October 12, 2008, 11:26:22 AM
Thx... Now i got it. :)

I'll test it, but i think thats it.

Greetings

edit: It works. Everything works exactly the way i want it. :) Thanks soooo much.
Title: Re: How to use Button-Combination to activate cheat?
Post by: rafalfaro_18 on December 08, 2008, 05:16:08 PM
I want this code work with (-) or (z and -) but i don't know how to do it, please someboady help me!


RMCE01
Mario Kart Wii

[Cycle Through Items]
XXXXXXXX XXXXXXXX
22001510 00000001
04001510 00000001
48000000 809BD118
DE000000 80008180
58010000 00000008
DE000000 80008180
4A100000 0000008C
92210000 00000000
86000000 00000001
94210000 00000000
36000000 00000010
14000004 00000001
30000001 00000005
14000004 00000003
34000001 0000000F
14000004 00000003
34000001 00000012
14000000 00000000
14000004 00000001
E0000000 00000000
YYYYYYYY YYYYYYYY
04001510 00000000
E0000000 80008000

[X Values]
Standard Button Activator

[Y Values]
Same as X's but with A for second digit (ex.

2A341462 00000002)
Title: Re: How to use Button-Combination to activate cheat?
Post by: mdmwii on December 09, 2008, 02:18:27 AM
Quote from: rafalfaro_18 on December 08, 2008, 05:16:08 PM
I want this code work with (-) or (z and -) but i don't know how to do it, please someboady help me!


RMCE01
Mario Kart Wii

[Cycle Through Items]
XXXXXXXX XXXXXXXX
22001510 00000001
04001510 00000001
48000000 809BD118
DE000000 80008180
58010000 00000008
DE000000 80008180
4A100000 0000008C
92210000 00000000
86000000 00000001
94210000 00000000
36000000 00000010
14000004 00000001
30000001 00000005
14000004 00000003
34000001 0000000F
14000004 00000003
34000001 00000012
14000000 00000000
14000004 00000001
E0000000 00000000
YYYYYYYY YYYYYYYY
04001510 00000000
E0000000 80008000

[X Values]
Standard Button Activator

[Y Values]
Same as X's but with A for second digit (ex.

2A341462 00000002)


Try this and let me know if it works, please. I can't test it.



28343e80 FF7e0081 <-- Left D-Pad on GCN controller
a8000008 fdff0200
8600000f 00000001
8000000e 00000001
28343e81 FF7d0082 <-- Right D-Pad on GCN controller
a8000008 fdff0200
8600000f FFFFFFFE
8000000e 00000001
28341847 00000013
8000000f 00000000
28341847 0000ffff
8000000f 00000012
28341847 00000005
8000000e 00000003
28341847 00000010
8000000e 00000003
28341847 00000011
8000000e 00000003
28341847 00000012
8000000e 00000003
28341847 00000000
8000000e 00000001
e0000000 00000000
48000000 809BD118
DE000000 80008180
58010000 00000008
DE000000 80008180
4A100000 0000008C
9421000f 00000000
9421000e 00000004
e0000000 80008000

Title: Re: How to use Button-Combination to activate cheat?
Post by: rafalfaro_18 on December 24, 2008, 09:20:58 AM
Quote from: mdmwii on December 09, 2008, 02:18:27 AM
Quote from: rafalfaro_18 on December 08, 2008, 05:16:08 PM
I want this code work with (-) or (z and -) but i don't know how to do it, please someboady help me!


RMCE01
Mario Kart Wii

[Cycle Through Items]
XXXXXXXX XXXXXXXX
22001510 00000001
04001510 00000001
48000000 809BD118
DE000000 80008180
58010000 00000008
DE000000 80008180
4A100000 0000008C
92210000 00000000
86000000 00000001
94210000 00000000
36000000 00000010
14000004 00000001
30000001 00000005
14000004 00000003
34000001 0000000F
14000004 00000003
34000001 00000012
14000000 00000000
14000004 00000001
E0000000 00000000
YYYYYYYY YYYYYYYY
04001510 00000000
E0000000 80008000

[X Values]
Standard Button Activator

[Y Values]
Same as X's but with A for second digit (ex.

2A341462 00000002)


Try this and let me know if it works, please. I can't test it.



28343e80 FF7e0081 <-- Left D-Pad on GCN controller
a8000008 fdff0200
8600000f 00000001
8000000e 00000001
28343e81 FF7d0082 <-- Right D-Pad on GCN controller
a8000008 fdff0200
8600000f FFFFFFFE
8000000e 00000001
28341847 00000013
8000000f 00000000
28341847 0000ffff
8000000f 00000012
28341847 00000005
8000000e 00000003
28341847 00000010
8000000e 00000003
28341847 00000011
8000000e 00000003
28341847 00000012
8000000e 00000003
28341847 00000000
8000000e 00000001
e0000000 00000000
48000000 809BD118
DE000000 80008180
58010000 00000008
DE000000 80008180
4A100000 0000008C
9421000f 00000000
9421000e 00000004
e0000000 80008000



Thanks for the help... And for classic controller a good combination, please...
Title: Re: How to use Button-Combination to activate cheat?
Post by: Sonarca on December 31, 2008, 02:01:35 PM
The MarioKart's Cycle Through Items is funny, but it doesn't work as I expected. So I made this one (PAL-EU) :

48000000 809C22B0
DE000000 80008180
4A100000 FFFF9F5C
28348200 00000980
86300001 000000FF
94210001 00000004
30000004 00000000
86000000 00000001
86000001 00000001
E2000001 00000000
2A348201 00000980
80000001 00000000
E2000001 00000000
86300000 0000000F
94210000 00000000
14000004 00000001
E0000000 80008000

The difference is first you have an green shell. Push A+Y, then you'll have a red shell. Push A+Y again, then you got a banana, and so on. The item displayed can be used all the time. You can hold A+Y, items will not continue changing. See what I mean ?

Experts could probably optimize it. I dont have USBGecko, I just read the code type document to do this. And it works !

Also, I wanted to know. What are coderange for the GCN C-Stick ? Do it use the same addr as other buttons ?
My idea is to set some items to C-stick : C-up to have a star, C-down to have a bullet bill, or whatever. Could anybody help ?
Title: Re: How to use Button-Combination to activate cheat?
Post by: biolizard89 on January 01, 2009, 08:01:17 AM
Quote from: Sonarca on December 31, 2008, 02:01:35 PM
The MarioKart's Cycle Through Items is funny, but it doesn't work as I expected. So I made this one (PAL-EU) :

48000000 809C22B0
DE000000 80008180
4A100000 FFFF9F5C
28348200 00000980
86300001 000000FF
94210001 00000004
30000004 00000000
86000000 00000001
86000001 00000001
E2000001 00000000
2A348201 00000980
80000001 00000000
E2000001 00000000
86300000 0000000F
94210000 00000000
14000004 00000001
E0000000 80008000

The difference is first you have an green shell. Push A+Y, then you'll have a red shell. Push A+Y again, then you got a banana, and so on. The item displayed can be used all the time. You can hold A+Y, items will not continue changing. See what I mean ?

Experts could probably optimize it. I dont have USBGecko, I just read the code type document to do this. And it works !

Also, I wanted to know. What are coderange for the GCN C-Stick ? Do it use the same addr as other buttons ?
My idea is to set some items to C-stick : C-up to have a star, C-down to have a bullet bill, or whatever. Could anybody help ?
Since the C stick is analog, you wouldn't be comparing binary flags, you'd be doing LT/GT compares.  However, the C stick data should be right next to the button data.  I believe that the control stick and digital buttons are in one 32-bit value, and the 32-bit value after that contains the C stick and the L/R analogs.  The next 32-bits are frequently a value indicating whether the controller is plugged in.
Title: Re: How to use Button-Combination to activate cheat?
Post by: Romaap on January 01, 2009, 11:51:55 AM
If the C-stick is the same as the nunchuck stick it would have a value that holds it X and Y position, like XXXXYYYY.
Title: Re: How to use Button-Combination to activate cheat?
Post by: Sonarca on January 01, 2009, 06:19:03 PM
Thanks. All I wanted to know is where the values were located. Analogic is not a problem, I used to hack stick of N64 pad years ago... that seems so far to me now. :-[

Another question yet. Instead of choosing an item by pressing a button and use it by another, I think it could be interresting to directly use the item. I made another code that set star on D-pad left, bulletbill on D-Pad down, and others. It works fine. Then I tried to simulate R-push by adding its value to the current buttons pushed, but no surprise, didnt work. Maybe we have to found how the "item launch" is triggered. Any idea ?
Title: Re: How to use Button-Combination to activate cheat?
Post by: matt123337 on January 02, 2009, 01:22:25 AM
try making it just d-pad activator and then on the next line repeat but change the 20 at the beginig of the code to 80 then on change the D-pad activator to R button (second line) :D hope this helps!

ps: if this makes no sence simply post the code you made and I will try :D
Title: Re: How to use Button-Combination to activate cheat?
Post by: Sonarca on January 15, 2009, 06:06:40 PM
I'll ask simplier. How can I use the current item stored by using another button than L ?
Title: Re: How to use Button-Combination to activate cheat?
Post by: TurtleXTreme on January 17, 2009, 06:03:00 PM
28348200 YYYYXXXX PAL-EU
28343E80 YYYYXXXX NTSC-US
28347B80 YYYYXXXX NTSC-JP

Y = FFFF - XXXX = YYYY
Ex: FFFF - 1881 = E77E = Y + Start + Left + 0080 = 2834¿?¿? E77E1881
http://www.motionnet.com/calculator/ (http://www.motionnet.com/calculator/)
Switch to HEX, FFFF '-' the result + 0080 = YYYY

Quote from: Volderbeek
Z Values - GCN Controller
0001 = Left
0002 = Right
0004 = Down
0008 = Up
0010 = Z
0020 = R
0040 = L
0100 = A
0200 = B
0400 = X
0800 = Y
1000 = Start
--> ADD 0080 IN HEX TO THE RESULT !!! <--

Special Thanks to Volderbeek (US + international button), mdmwii (PAL) and ARM9 (JP)
Title: Re: How to use Button-Combination to activate cheat?
Post by: TreizeKnight on January 18, 2009, 05:13:09 AM
I'm lost here, so say for Fire Emblem: Radiant Dawn [NTSC-US] code

Everyone is Player Controlled
08884E04 8066B830
20FD03F0 00000000

Would I imput the code using this?
Quote28343E80 YYYYXXXX NTSC-US
I'm so confused...  :confused:
Title: Re: How to use Button-Combination to activate cheat?
Post by: TurtleXTreme on January 18, 2009, 07:53:06 AM
Quote from: TreizeKnight on January 18, 2009, 05:13:09 AM
I'm lost here, so say for Fire Emblem: Radiant Dawn [NTSC-US] code

Everyone is Player Controlled [????]
28343E80 YYYYXXXX
08884E04 8066B830
20FD03F0 00000000
E0000000 00000000

I think, It's only for a normal GCN controller (≠WaveBird)
Don't work ? try the version from Link :)
Title: Re: How to use Button-Combination to activate cheat?
Post by: TreizeKnight on January 18, 2009, 07:58:32 AM
I meant, I don't know how to put the on/off button command on.
Title: Re: How to use Button-Combination to activate cheat?
Post by: TurtleXTreme on January 18, 2009, 08:17:04 AM
Everyone Player is controlled [??]
22884E04 8066B830
20FD03F0 00000000
E0000000 00000000
8221000C 00884E04 <- I think this line is wrong
28348201 FF7E0081
08884E04 8066B830
20FD03F0 00000000
E0000000 00000000
28348201 FF7d0082
8421000C 00884E04 <- I think this line is Wrong
E0000000 80008000

This code is based on the No Clipping Switch by mdmwii
Title: Re: How to use Button-Combination to activate cheat?
Post by: TreizeKnight on May 18, 2009, 11:13:32 PM
Disregard question, solved
Title: Re: How to use Button-Combination to activate cheat?
Post by: Yerger on June 23, 2009, 03:04:09 AM
Ok, so I'm kinda new at the WiiRD and stuff, but bear with me....

I'm trying to make a activator for the following code for The Legend of Zelda Majora's Mask for US. 

Time Freezer [hetoan2]:
- insert activator for freezing here -
04B2F6B0 60000000
- insert activator for unfreezing here -
04B2F6B0 A3470032
E0000000 80008000

I am trying to use the ZL button on the classic controller to freeze it, and ZR to unfreeze it, so i tried this

Time Freezer [hetoan2]
281BCB8A 00000080
04B2F6B0 60000000
281BCB8A 00000004
04B2F6B0 A3470032
E0000000 80008000

But it doesn't seem to work. ???  I don't really know what I'm doing,  so any help would be good.  Thanks!
Title: Re: How to use Button-Combination to activate cheat?
Post by: codename: on October 11, 2009, 07:05:37 PM
ok I've been reading every post in this thread and done my own button activators.. but i need a little help with this code:

*TEST* Cycle trough items #1
2881E500 00001000
A8000008 FFFB0004
265524F4 E9000000
82200000 805524F4
86000000 01000000
84200000 805524F4
E0000000 80008000
2881E500 88E00800
A8000008 FFFB0004
245524F4 01000000
82200000 805524F4
86000000 FEFFFFFF
84200000 805524F4
E0000000 80008000

now, that's just for slot #1 it uses buttons -(minus) & A
And I thought I could do it with every other slot but then i realize... well, they're just too many button convinations  :o
& so i think it would be better if i could cycle ALSO trough slots, it would be great
How can I cycle trough adresses?

0x805524F4 press B then 0x80552500

please help :'(
Title: Re: How to use Button-Combination to activate cheat?
Post by: Mal1t1a on January 09, 2010, 07:04:52 AM
Hi, I was just wondering. For the Wiimote, A= 0800, and Minus = 1000 and 1 = 0200 then.
How would I get A+1? Logically, it would be 1000. But then, That's Minus. So what would I do? Thanks.
Title: Re: How to use Button-Combination to activate cheat?
Post by: wiiztec on January 09, 2010, 08:43:20 AM
You add them in hex 0800+0200=0A00
Title: Re: How to use Button-Combination to activate cheat?
Post by: Mal1t1a on January 09, 2010, 09:01:54 AM
Thank-you very much!
Title: Re: How to use Button-Combination to activate cheat?
Post by: Sonarca on April 22, 2010, 06:36:48 PM
In Mario Kart wii (pal), isn't it possible to make a button-combinator to change player while in game ? I mean, we are 12 racer : the first one is the player, others are cpu. Could we take control of a cpu-racer ? Isnt it simply pointer to the racer we want to control ?