This does not have relevancy to a speedrun, but I found some interesting stuff about game time. Game time in this game are looked hexed values on WRAM, but you have to take them as decimal values without converting bases. This mechanism is also applied in another game (e.g. Lvl (7E1B6A) in Soul Blazer/Blader).
NOTE: not %2d or %02d but %2X and %02X.
Language: lua
local gameTime = {}
function dispGT()
for i = 0, 3 do
gameTime[i] = memory.readbyte(0x7EFC1A+i)
end
gui.text(2, 1, string.format("%2X %02X %02X", gameTime[0], gameTime[1], gameTime[2]))
if gameTime[3] % 0x60 < 0x30 then
gui.text(2, 1, " : : ", "cyan")
end
end
Language: lua
local gameTime = {}
function dispGT()
for i = 0, 3 do
gameTime[i] = mainmemory.read_u8(0xFC1A+i)
end
gui.pixelText(1, 1, string.format("%2X %02X %02X", gameTime[0], gameTime[1], gameTime[2]))
if gameTime[3] % 0x60 < 0x30 then
gui.pixelText(1, 1, " : : ", "cyan", 0x00000000)
end
end
Language: lua
local gameTime = {}
for i = 0, 3 do
gameTime[i] = memory.readbyte(0x7EFC1A+i)
end
gui.text(1042, 0, string.format("%2X %02X %02X", gameTime[0], gameTime[1], gameTime[2]))
if gameTime[3] % 0x60 < 0x30 then
gui.text(1042, 0, " : : ", "cyan")
end