User File #40497472128025222

Upload All User Files

#40497472128025222 - F-Zero GP Legend Slider Stat Viewer

FZGPL_Slider.lua
686 downloads
Uploaded 7/20/2017 7:08 PM by Memory (see all 89)
To view relevant stats from the accel/speed slider tweak screen in F-Zero GP Legend.
local R4u , R4s= memory.read_u32_le , memory.read_s32_le
local R2u , R2s= memory.read_u16_le , memory.read_s16_le
local R1u , R1s= memory.read_u8     , memory.read_s8
local a= 0x2EA0
local s= string.format

while true do
  gui.pixelText(  0,  16,s("Accel"),0xFFFFFFFF)
  gui.pixelText(  0,   8,s("Speed"),0xFFFFFFFF)
  gui.pixelText( 20,   0,s("Sp1"),0xFFFFFFFF)
  gui.pixelText( 40,   0,s("Sp2"),0xFFFFFFFF)
  gui.pixelText( 60,   0,s("Sp3"),0xFFFFFFFF)
  gui.pixelText( 80,   0,s("Sp4"),0xFFFFFFFF)
  gui.pixelText(100,   0,s("Bst"),0xFFFFFFFF)
  gui.pixelText( 20,  16,s("%4d",R1u(a+0x00,"IWRAM")),0xFFFFFFFF)  --Acc1
  gui.pixelText( 40,  16,s("%4d",R1u(a+0x01,"IWRAM")),0xFFFFFFFF)  --Acc2
  gui.pixelText( 60,  16,s("%4d",R1u(a+0x02,"IWRAM")),0xFFFFFFFF)  --Acc3
  gui.pixelText( 80,  16,s("%4d",R1u(a+0x03,"IWRAM")),0xFFFFFFFF)  --Acc4
  gui.pixelText( 20,   8,s("%4d",R2u(a+0x04,"IWRAM")),0xFFFFFFFF)  --Spd1
  gui.pixelText( 40,   8,s("%4d",R2u(a+0x06,"IWRAM")),0xFFFFFFFF)  --Spd2
  gui.pixelText( 60,   8,s("%4d",R2u(a+0x08,"IWRAM")),0xFFFFFFFF)  --Spd3
  gui.pixelText( 80,   8,s("%4d",R2u(a+0x0A,"IWRAM")),0xFFFFFFFF)  --Spd4
  gui.pixelText(100,  16,s("%4d",R1u(a+0x10,"IWRAM")),0xFFFFFFFF)  --AccB
  gui.pixelText(100,   8,s("%4d",R2u(a+0x12,"IWRAM")),0xFFFFFFFF)  --SpdB

  gui.pixelText(160,   0,s("Hyst"),0xFFFFFFFF)
  gui.pixelText(140,   8,s("Norm"),0xFFFFFFFF)
  gui.pixelText(140,  16,s("Bst"),0xFFFFFFFF)  
  gui.pixelText(160,   8,s("%4d",R2u(a+0x0E,"IWRAM")),0xFFFFFFFF)  --HystA
  gui.pixelText(160,  16,s("%4d",R2u(a+0x16,"IWRAM")),0xFFFFFFFF)  --HystB

  gui.pixelText( 0, 32,s("Incr"),0xFFFFFFFF)
  gui.pixelText(20, 32,s("%4d",R1s(0x2F81,"IWRAM")),0xFFFFFFFF) --Slider Increment

  emu.frameadvance()
end