WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: biolizard89 on December 07, 2008, 03:21:35 AM

Title: Triggering a Non-Human Player Action
Post by: biolizard89 on December 07, 2008, 03:21:35 AM
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.
Title: Re: Triggering a Non-Human Player Action
Post by: paprika_killer on December 07, 2008, 05:01:45 PM
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.
Title: Re: Triggering a Non-Human Player Action
Post by: 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.
Title: Re: Triggering a Non-Human Player Action
Post by: biolizard89 on December 07, 2008, 06:39:54 PM
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!
Title: Re: Triggering a Non-Human Player Action
Post by: Romaap on December 07, 2008, 06:57:18 PM
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.
Title: Re: Triggering a Non-Human Player Action
Post by: paprika_killer on December 09, 2008, 06:29:21 PM
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.