hoangduit / bizhawk

Automatically exported from code.google.com/p/bizhawk
0 stars 0 forks source link

Accessing memory library before setting one has very uninformative error message. #379

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

The code below results in an error 'LuaScriptException: 0' which isn't very 
informative and took me forever to find the problem.

Code:
-- uncomment this line to fix the problem
--memory.usememorydomain("68K RAM")

while true do
    emu.frameadvance()  -- pause and wait for the next frame
    memory.write_u8(0x7FFF, 0)
end

Version: SVN
Core: Any
Game: Any

Original issue reported on code.google.com by tribeam....@gmail.com on 21 Jan 2015 at 5:56

GoogleCodeExporter commented 9 years ago
This shouldn't be an error to begin with, the default should have been "main 
memory".

Revision 8918 fixes this issue, by making it not an error to begin with (thus 
no need for an informative message ^_^)

Original comment by adeli...@tasvideos.org on 24 Jan 2015 at 9:34