Editor, Skilled player (1158)
Joined: 9/27/2008
Posts: 1084
Ah, lua scripting stuff is sort of a mess at times. I did some investigating with some quick scripts, and it looks as though sticking a gui.text( 1 , 1 , memory.readbyte(0x7E0000) ) (or some other memory address other than 7E0000) anywhere always reports what the value was one frame ago in Snes9x 1.51. I've checked the standard while true do [...] emu.frameadvance() end loop, as well as the three main registers one could use, emu.registerbefore, emu.registerafter, and gui.register. The results were all the same: I see what the value was one frame ago, not what it is now. Nothing wrong with your code. I just don't see any way of having it display up-to-date information in Snes9x, as it stands.