mam91 / neat-genetic-mario

Update of Seth Bling's MarI/O
182 stars 62 forks source link

well shit an error #18

Open yarik303 opened 2 years ago

yarik303 commented 2 years ago

i tried to run the program when this erorr come to me

NLua.Exceptions.LuaException: unprotected error in call to Lua API (0) в NLua.Lua.PanicCallback(IntPtr luaState) в lua_error(lua_State ) в NLua.ObjectTranslator.throwError(IntPtr luaState, Object e) в NLua.Lua.SetPendingException(Exception e) в NLua.LuaMethodWrapper.call(IntPtr luaState) в NLua.MetaFunctions.runFunctionDelegate(IntPtr luaState) в lua_resume(lua_State , Int32 ) в BizHawk.Client.EmuHawk.Win32LuaLibraries.ResumeScript(LuaFile lf) в BizHawk.Client.EmuHawk.LuaConsole.<>c__DisplayClass61_1.b__1() в BizHawk.Client.Common.LuaSandbox.Sandbox(Action callback, Action exceptionCallback)

ctor2dtor commented 2 years ago

Hi,

This happens because it's trying to load a state file that isn't the one you supplied and I guess there's some mismatch with that state and the rom or the version of BizHawk. The config.lua isn't working as one would expect, so it looks for the statefile in the PoolDir instead of the StateDir.

Update the line in config.lua that reads "Filename = _M.PoolDir .. _M.State[1]," to instead read "Filename = _M.StateDir .. _M.State[1]," and it will look for it in the StateDir instead.

Or just copy your DP1.state to the PoolDir folder instead.