Welcome, this is the discussion board of TASVideos.
Good luck with this game! :)
while true do local function displayer() xpix = memory.readbyte(0x00B) xbig = memory.readbyte(0x00A) xpos = 256*xbig + xpix xspeed=memory.readbyte(0x014) if xspeed==0 then xpixspeed=0 elseif xspeed<=12 then xpixspeed=1 elseif xspeed<=76 then xpixspeed=2 elseif xspeed<=204 then xpixspeed=3 elseif xspeed<=236 then xpixspeed=4 elseif xspeed>=238 then xpixspeed=5 end time1=memory.readbyte(0x33A) time2=memory.readbyte(0x33B) time3=memory.readbyte(0x334) igtime=600*time1+60*time2+time3 ytext=40 gui.text(10,ytext,"X pos: " .. xpos) gui.text(10,ytext+8,"X speed: " .. xspeed) gui.text(10,ytext+16,"X pixel speed: " .. xpixspeed) gui.text(150,ytext,"Ingame Time: " .. igtime) end gui.register(displayer) FCEU.frameadvance() end
elseif xspeed<236>=238 then xpixspeed=5 end
Will 'fixing' it this render the script inaccurate in any way? I see no reason why it shouldn't but I'd like be be able to consult the script maker just in case I'm making a massive mistake. Of course, the error causes the whole script to crash. Using the fix seems to make the script work spiffingly however, but I am worried it could be giving bogus results. IMPORTANT EDIT: THIS GAME CAN CRASH FCEUX! Why? It has already crashed on me twice, and I doubt it is just coincidence. If anyone has any ideas how to fix this, it'd be brilliant. This time, it happened due to me trying to load a state. THIS IS IMPORTANT AS IT MEANS I AM UNABLE TO RECOVER WORK I HAVE LOST! TO CLARIFY THE MATTER. The first crash did NOT happen when loading a save state, it happened while recording the video normally... which also let me recover my progress, unlike the most recent crash.
elseif xspeed<=238 then xpixspeed=5 end