I've been looking into writing a script to run on Desmume. I'm thinking of running it on either Platinum or one of the Gen V games. I haven't been able to find any detailed instructions for setting things up, can anyone help me out? It doesn't have to be Lua, really it should be something that "plugs in" to the emulator (fires button inputs straight into the emulator rather than using something like the Robot in Java to send keyboard and mouse events over the desktop). Also, if I wanted to look into reading the memory from the frame, how would I figure out what address and value correspond to what (ie. tiles, items, Pokemon health, player position, etc.)?