TestRunnerSRL / bizhawk-co-op

Syncs inventory, ammo, and more of multiple players for a coop experience
GNU Lesser General Public License v3.0
56 stars 41 forks source link

Errors in lua console output when attempting to create a room #51

Open Zenshu opened 3 years ago

Zenshu commented 3 years ago

New install of bizhawk and the co-op scripts, followed all the set-up instructions including the confing and tools setup steps within bizhawk itself and changing the lua core to Lua+LuaInterface, and have a ROM of OoT running on bizhawk, when running the script and inputting the required information to start hosting a game, once the create button is clicked the following errors are thrown by the lua console.



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

Zenshu commented 3 years ago

I tried reinstalling everthing, and this time when trying to load everything the game locked up and the lua console has been spitting this same error nonstop(which is why the game is frozen) image

Zenshu commented 3 years ago

Another update, and this one has thrown me for a loop and I am not sure what is going on here. I was able to succesfully create a room using the ALttP lua while OoT was running, but not able to create a room when the OoT lua was selected, this is when the original error message shows up, and the endless memory errors only occur when ALttP is running and attempting to launch a game with the ALttP lua selected. Additionally after failing to work, if I do not completely close bizhawk and reopen it, when I try to reload the script to try again to create a room I get this error NLua.Exceptions.LuaScriptException: [string "main"]:215: Created global variable "mainform". Didn't you want this to be local? If you actually wanted a global variable, use the "declare" function instead.