Nice! Thank you,
marzojr.
I'm not at home at the moment, but I'll test your addresses as soon as I get there.
I posted it on the Snes forum a while back, here's the ones I've found;
Position = mainmemory.read_u16_be(0xA2D0)
Subpixel = mainmemory.read_u8(0xA2D2)
The X position and subpixel seem similar to the ones you've found, and I'm pretty sure we've found the correct ones.
In any case, I'm testing a new strategy in Maharajah to not use the peppers.
(saving them to use in Egypt)
So, it will be no problem if a restart is needed, as I need to manage the Popcorn better, too.
edit:
Our addresses are pretty much the same, but I think longword makes Donald's position a bit confusing.
It makes enough sense for speed though. This or I don't know what longword means. :)
In any case,
here's the Lua script I'm using. (updated with some of your addresses)
final edit;
Not using the peppers in Maharajah is barely faster, just 4 frames, but I can save some popcorn, too.
But with the new addresses it's possible to optimize Donald's movement a little further, especially his jumps.
So, a restart is more than welcome at this point, since almost everything I did so far can be improved.