Player (169)
🇯🇵 Japan
Joined: 8/4/2013
Posts: 115
Location: 🇯🇵 Japan
Is there a memory.readword in lua? I get an error Help file is white and not displayed luaでmemory.readwordはないのでしょうか?エラーがでます ヘルプファイルは白くなって表示されません
Player (169)
🇯🇵 Japan
Joined: 8/4/2013
Posts: 115
Location: 🇯🇵 Japan
Solved it. You have to set 2 bytes. 解決しました 2バイト設定しないとダメなんですね
Sand
He/Him
Player (147)
Joined: 6/26/2018
Posts: 206
There's no memory.readword, but there are memory.read_s16_be, memory.read_s16_le, memory.read_u16_be, memory.read_u16_le: Wiki: BizHawk/LuaFunctions. You have to specify whether you want to read as signed (s) or unsigned (u), and big-endian (be) or little-endian (le).
Site Admin, Skilled player (1244)
Joined: 4/17/2010
Posts: 11722
Sand wrote:
There's no memory.readword, but there are memory.read_s16_be, memory.read_s16_le, memory.read_u16_be, memory.read_u16_le: Wiki: BizHawk/LuaFunctions. You have to specify whether you want to read as signed (s) or unsigned (u), and big-endian (be) or little-endian (le).
This is a FCEUX forum :D
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.