Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Zenshu opened this issue Aug 22, 2020 · 2 comments · Fixed by GhostlyDark/bizhawk-co-op#5
Open

Comments

@Zenshu
Copy link

Zenshu commented Aug 22, 2020

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
Copy link
Author

Zenshu commented Aug 22, 2020

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
Copy link
Author

Zenshu commented Aug 22, 2020

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.

@Zenshu Zenshu changed the title "Error: Nullhawk does not implement memory domains" when attempting to create a room Errors in lua console output when attempting to create a room Aug 22, 2020
danielfinke added a commit to danielfinke/bizhawk-co-op that referenced this issue Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant