Script i developed on my own to help the tas development. Can be vastly improved, but it does the job, uploading in case i lose it locally
gui.use_surface("emucore")
gui.defaultPixelFont("0")
local WITEM = 23
local HITEM = 15
local XTEXT = 120
local YTEXT = 5
local CLOCKS
local GCS1
local GCS2
local GCS_TOT
local CARROTS
local HP
local GCS1_1 = 0
local HASH = gameinfo.getromhash()
while true do
POINTER = memory.read_u32_le(0x069640) - 0x80000000 -- USA Version
POINTER2 = memory.read_u32_le(0x069698) - 0x80000000
if (POINTER > 0) then
STATE = mainmemory.read_s8(POINTER + 0x98) --AnimationState
BugsAngle = mainmemory.read_s16_le(POINTER2 + 0xDE)
gui.pixelText(28,40,"AnimationState: " .. STATE,"white")
--JUMP_FLY = (mainmemory.write_s8( POINTER + 0x98, 0x7 ))
--RHOLE = memory.read_u8 (POINTER)
CLOCKS = memory.read_u8(0x010045)
gui.pixelText(XTEXT+20, YTEXT+3, " " .. ((CLOCKS)),"white")
gui.drawImage("CLOCKS.png",XTEXT, YTEXT-2, WITEM, HITEM)
GCS1 = memory.read_u8(0x010047)
GCS2 = memory.read_u8(0x01013C)
GCS_TOT = GCS1 + GCS2 * 256
gui.pixelText(XTEXT+65, YTEXT+3, " " .. ((GCS_TOT)), "white")
gui.drawImage("GOLDENCARROT.png",XTEXT+50, YTEXT-2, WITEM, HITEM)
CARROTS = memory.read_u8(0x010043)
gui.pixelText(XTEXT+125, YTEXT+3, " " .. ((CARROTS)),"white")
gui.drawImage("NORMALCARROT.png",XTEXT+105, YTEXT-2, WITEM, HITEM)
HP = memory.read_u8(0x10041)
gui.pixelText(XTEXT+160, YTEXT+3, "HP: " .. ((HP)),"white")
RNG = memory.read_s32_le(0x0701B8)
gui.pixelText(XTEXT+320, YTEXT+3, "RNG: " .. string.format("%08X",(RNG)), "white")
-- gui.pixelText(XTEXT+320, YTEXT+20, "BugsAngle: " .. ((BugsAngle)), "white")
end
emu.frameadvance()
end