WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: Nutmeg on December 24, 2010, 01:02:29 AM

Title: Moon Jump
Post by: Nutmeg on December 24, 2010, 01:02:29 AM
I have a pretty simple game to hack.  It's Animal Crossing for Game Cube, but I want to make a moon jump.  However, in this game, it's impossible to jump, or fall off a tall place, like the GLEE method recommends.  So, instead, I found the Y value (height) instead of the Y value speed, as the GLEE method reommends.

My code is structed like this, right now:

28XXXXXX 0000ZZZZ  //button activator
05XXXXXX YYYYYYYY  //Y floating point cooridinate (show by the Y's)
E00000000 80008000  //full terminator

Here's my problem:  When I press button ZZZZ, I jolt up to the Y coordinate.  I want to have a smooth moonjump where I can control the height.

What should I do?  I have tried ASM, but I don't know a command for adding floats.  Is there one?
--------------
Sorry for not providing the breakpoint or the DASM.  I will when I can, but that may be after Christmas...
Title: Re: Moon Jump
Post by: Romaap on December 24, 2010, 01:25:32 AM
There is a way to increase a floating point number with the Gecko Registers.
Just load it in a Gecko Register (82), use the Gecko Register Direct Value Operations codetype (86) with 9 as T (fadds), then just store the number back (84).
Title: Re: Moon Jump
Post by: Nutmeg on December 24, 2010, 02:07:18 AM
Are you sure T = 9?  On the technical code sheet, it says A, and 9 doesn't do anything... hmmm....

Here is what I tried:

28XXXXXX 0000ZZZZ
8220000E 81XXXXXX
86A0000E 3F8000000
8420000E 81XXXXXX
E0000000 80008000

It just froze the game...
Title: Re: Moon Jump
Post by: dcx2 on December 24, 2010, 03:26:30 AM
There is an updated codetype doc on the code database.  The other codetype doc had a few errors.

http://www.geckocodes.org/index.php?arsenal=1#88

T = 9 = fadds