Triggering a Non-Human Player Action

Started by biolizard89, December 07, 2008, 03:21:35 AM

Previous topic - Next topic

biolizard89

This may be a weird question, but how would I find an address such that if I poke it, a computer-controlled player in a multiplayer game takes an action (e.g. using an item in Mario Kart)?  For a human player, I could simulate this by poking the pad data, but since computer-controlled players usually don't have pad data, any idea how I could do this?  Preferably, the same method should work for a human player (so that, for example, I could copy the value from a human player to a computer-controlled player with a WiiRD code, with the result that every time the human player takes the action, the computer-controlled player mimics it).

Any ideas would be helpful, even if you're not 100% sure.  Thanks in advance.

paprika_killer

why not try to find where the action itself is being made, I'm pretty sure that a CPU player uses the same adresses for that as when a human would take up that slot.
[SIGPIC][/SIGPIC]

Romaap

maybe use equal/not equal searches. if the CPU does nothing do a unknown search then when it does something, like using a item, search for not equal and so on.

biolizard89

Quote from: Romaap on December 07, 2008, 05:34:46 PM
maybe use equal/not equal searches. if the CPU does nothing do a unknown search then when it does something, like using a item, search for not equal and so on.

Hmm, here's the issue, how do I know when exactly to do the searches, when I'm not controlling the CPU player?  Even if I were doing it for a human player, how would that work?  Pause game, search unknown, hold the use item button, advance a frame, search not equal, etc.?  Would the CPU players be likely to be equally spaced after the human players, e.g. P1, P2, P3, P4, CPU5, CPU6, CPU7, CPU8 all being equally spaced in RAM?

Thanks!

Romaap

you could just search for P1 and P2 and calculate the offset and look if you add the offset to the P2 address you get the P3 address.

paprika_killer

couldn't you just try to manipulate the CPU in player slot 2 first?

just try out manipulating a (human) p2 and then see what happens if you do the same on the CPU version.

if this works out, we could have some nice AI maybe.
[SIGPIC][/SIGPIC]