WiiRd forum

Wii & Gamecube Hacking => WiiRD Remote Debugger => Topic started by: idiosync on March 15, 2010, 05:12:50 PM

Title: Button Help in Tales of Symphonia DONW(RT4EAF)
Post by: idiosync on March 15, 2010, 05:12:50 PM
I'm trying to add one of an item to my inventory when ever I press the 2 button. So far I have this bit of code:
* 284D75DE FEFF0100
* 82000000 80493A72
* 86000000 00000001
* 84000000 80493A72
* E0000000 80008000
which works kinda. it will add items faster than I can release the button. One button tap is about four items. any help on getting down to just one item per press would be great.
Title: Re: Button Help in Tales of Symphonia DONW(RT4EAF)
Post by: Panda On Smack on March 15, 2010, 05:40:32 PM
284D75DE FEFF0100
A8000000 FF800000
82000000 80493A72
86000000 00000001
84000000 80493A72
E0000000 80008000

Try that
Title: Re: Button Help in Tales of Symphonia DONW(RT4EAF)
Post by: dcx2 on March 15, 2010, 09:02:18 PM
You should post this in the Support forum (EDIT: this support forum (http://wiird.l0nk.org/forum/index.php/board,36.0.html)) instead.  FYI, this is the code that you are looking for.  I ran into this issue when I was writing my own item modifier (http://wiird.l0nk.org/forum/index.php/topic,1840.msg44950.html#msg44950).

* 284D75E2 FEFF0100
* 82000000 80493A72
* 86000000 00000001
* 84000000 80493A72
* E0000000 80008000

In Tales, and I think most games, the word after the controller in memory is the "controller buttons pressed" word, which is also followed by a "controller buttons released" word.  You get a 1 in these words for exactly one frame, either when the button is pressed (controller+4) or released (controller+8).  Read that memory address instead of the "controller button state" word (controller+0) and you'll get one item per button press.
Title: Re: Button Help in Tales of Symphonia DONW(RT4EAF)
Post by: dcx2 on March 16, 2010, 02:36:46 AM
I just noticed that your original button activator was using address 0x804D75DE.  This is not the address that I was using.  The controller buttons should be on at 0x804D755A and the 1-for-a-single-frame-on-button-press would be at 0x804D755E.  The 1-for-a-single-frame-on-button-release would be 0x804D7602.

* 284D755E FEFF0100
* 82000000 80493A72
* 86000000 00000001
* 84000000 80493A72
* E0000000 80008000