View Single Post
August 7th, 2010 (12:42 PM).
The Bay Area
Sorry for the delay. The game uses a very long and inefficient way to perform the modulo operation and it does it about 6 times before it actually starts to edit anything. D:
Well from what I can tell, the game is editing the last byte of the
. There is no documentation on that piece of data which means that is possible that it controls obedience. The guy who wrote that article seems to think that it's a halfword (16-bit) but the game reads from it using
so I'm guessing that it is actually two bytes. The 'setobedience' command takes whatever value is stored there, '
's it with '0x7F' (i.e., clears the most significant bit), '
's that with some other value (it was '0x80' for me) and then stores the final result back in the Growth substructure. I'll look more into it later but right now I have to go run a few errands. If anyone's interested, the routine that does what I mentioned above is located at '0x08040A82'.
Joined May 2008
View Public Profile
Send a private message to colcolstyles
Find all posts by colcolstyles
Find threads started by colcolstyles
Ignore Posts by colcolstyles