Lua script used and linked on #4015: MESHUGGAH's NES Streemerz: Super Strength Emergency Squad Zeta "Superb Joe mode" in 00:53.45
Uploaded for permanent storage on TASVideos
lastXpos = 0
lastYpos = 0
lasttimer = 0
lastXcam = 0
lastYcam = 0
lagged = false
function Stuff()
Xpos = memory.readbyte(0x4c1)
Ypos = memory.readbyte(0x4c3)
timer = memory.readbyte(0xd9)
Xcam = memory.readbyte(0x368)
Ycam = memory.readbyte(0x369)
Xspd = Xpos - lastXpos
Yspd = Ypos - lastYpos
Xcamspd = Xcam - lastXcam
Ycamspd = Ycam - lastYcam
gui.text( 0, 8, string.format("X: %d\nY: %d",Xpos,Ypos))
gui.text(170, 8, string.format("Xcam: %4d\nYcam: %4d",Xcam,Ycam))
gui.text(115, 8, string.format("Tmr: %d",timer))
gui.text(Xpos, Ypos, string.format("%.2f\n%.2f",Xspd,Yspd), "#00ff00ff")
lastXpos = Xpos
lastYpos = Ypos
lasttimer = timer
lastXcam = Xcam
lastYcam = Ycam
end
function DetectLag()
lagflag = true
end
function SetLag()
if lagflag then
emu.setlagflag(false);
lagflag = false;
else
emu.setlagflag(true);
end
end
memory.registerexecute(0xfd7d, DetectLag)
memory.registerexecute(0x802E, SetLag)
emu.registerafter(Stuff)