Post subject: LUA memory.readword problems
cheeze42
He/Him
Joined: 6/5/2015
Posts: 15
Hello! I'm currently trying to get the value of an address (2-byte) and store it to a variable, but it's not working, throwing the error:
LuaInterface.LuaScriptException: [string "main"]:3:attempt to call field 'readword' (a nil value)
My script:
local firstCard, secondCard
firstCard=memory.readword(0x060A)
secondCard=memory.readword(0x060C)
Any help would be appreciated.
Games of Interest: -Pokemon Rumble (Wii) -Kingdom Hearts: Chain of Memories (GBA) -Kingdom Hearts: re:Coded (NDS)
Editor, Expert player (2312)
Joined: 5/15/2007
Posts: 3855
Location: Germany
readword does not work in bizhawk. It has a different name. Refer to this page http://tasvideos.org/Bizhawk/LuaFunctions.html