Posted: Mon May 06, 2019 10:03 pm Post subject: Lua Script on Emulator
Hello guys I have a script that is working fine with pc games but the only problem, it cannot work with an emulator. I am trying this script on gens32 emulator but the error comes with the address I guess.
Simple question. How to put this address so that it can work.
"Gens32Surreal.exe+2A3026"
Also see Screenshots
This is the script and it is working fine with pc games
DoneState = false
local addr = 0x00559118
local val = 1
local function timer_tick(timer)
local v = readInteger(addr) -- read value
if v < 100 then -- check value
writeInteger(addr, val + v) -- write value
else
end
if DoneState == true then
timer.destroy()
end
end
if syntaxcheck then return end
local someTimer = createTimer(MainForm)
someTimer.Interval = 3000
someTimer.OnTimer = timer_tick
^^ readInteger, writeInteger, and getAddress can all take a string for the address parameter, but readInteger and writeInteger basically call getAddress on it. But this would keep it from needing to be called twice.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum