Button Help in Tales of Symphonia DONW(RT4EAF)

Started by idiosync, March 15, 2010, 05:12:50 PM

Previous topic - Next topic

idiosync

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.

Panda On Smack

284D75DE FEFF0100
A8000000 FF800000
82000000 80493A72
86000000 00000001
84000000 80493A72
E0000000 80008000

Try that

dcx2

#2
You should post this in the Support forum (EDIT: this support forum) instead.  FYI, this is the code that you are looking for.  I ran into this issue when I was writing my own item modifier.

* 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.

dcx2

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