testrunnersrl / bizhawk-co-op Goto Github PK
View Code? Open in Web Editor NEWSyncs inventory, ammo, and more of multiple players for a coop experience
License: GNU Lesser General Public License v3.0
Syncs inventory, ammo, and more of multiple players for a coop experience
License: GNU Lesser General Public License v3.0
To be honest its kinda Frustating That you have to stay close to each other in,more Specifically Metroid Zero Mission to get all the items so it would be nice to have an option that allows Both/All the Players to get all the Items and erasing them Afterwards to other people
I haven't tested any connectivity yet but the instructions mentioned to put in the IP of whoever's gonna be the host, though I can't type anything into the box. I don't know if it only allows you to when you click "Join Room" because whenever I click "Join Room", it immediately says "Error joining room [Code: 401]". Is this supposed to happen, and is there a fix?
Hello, I've recently run into an issue where I cannot connect with anyone after a shutdown.
I was having no problems joining a room with a fresh installation, but after finishing for the day and shutting off my computer and trying again the next day, the application "stops responding" and times out. It doesn't crash, merely freezes for an extended period of time (30+ seconds, audio loop) and eventually times out with the message connection failed: timeout.
I have tried wiping all the files and replacing them with fresh new files (the same as before) and this fixes it until I turn off my computer and start it back up. (This also removes all my progress.)
I've tried joining other rooms: same issue
Details
Windows 10 64 bit
Bizhawk 2.3 (With changes made from Bizhawk Co-op, all recommended steps followed)
OoT v1.0 w/ OoT Randomiser 3.0
Port (11100) has been opened and everything has been allowed through firewalls
Number of Players: 2
Host or Player: Player
Host is located in the same household as myself.
Let me know if any other information could be helpful
I obtained the Magic Hammer from King Zora and My Friend obtained the crystal 7 from the Desert Palace Boss and right after we got them the console (the item drop info text) said,
"Magic Hammer Removed" and
"Crystal 7 Removed" then removed them from our inventories.
-More info
We were playing with 3 people this might have ruined something, the randomizer page said that it could be played with one or two players, this might have been the problem.
If I loaded the script the OOT starts to lagg if the resolution is higher then 480x360.
Are there any configs to set to get a better performance? Without the co-op script loaded it runs without problems.
Graphic: NVidea 1060
CPU: AMD Ryzen
Error during sync: LuaInterface.LuaScriptException: bizhawk-co-op\ramcontroller\Metroid Zero Mission.lua:341: invalid arguments to method call: 50169686
produces a bunch of errors of the type: "Warning: Attempted read of 1591673 outside the memory size of 1048576". The first number is different from error to error, but the second is always the same.
Is there any way I can run the bizhawk to another player on the same network? I've tried "localhost" as IP and we've tried both of our IPv4 addresses. We can connect to the rooms in lua, but nothing in the games syncs with the other client.
-I have personally confirmed that everything is the same... (Same seeds, bizhawk version, and randomizer version.)
-Have also gone through all the Hamachi firewall settings here and disabled the firewall on both pcs and they are pinging each other just fine...
-Both PCs are running Windows 10
-If you need any more info, please let me know
Hi,
I am getting an error code 410 when trying to create a room today.
I didn't have any problem creating rooms in the past weeks, so I might suspect something is up with the server for the connections.
My brother, with whom I am trying to play, has the same error code when searching for rooms.
Any help is appreciated and thank you for your hard work.
I've noticed that the room names have gotten a bit out of hand including people using straight up racial slurs as names for their rooms.
This error occurs when any user connects to the session.
Steps to reproduce:
At this point, on both host and remote the message "the domain CARTROM is not writable" appears many times. It displays around 140 times, though it seems the number varies (could this be the script attempting to edit the chest contents?)
When playing the game, both players have all chests which can result in obtaining the same item multiple times. (On my first play-though we managed to get the titan's mitts right off the bat this way) Otherwise the script still functions.
Details:
Ran the powershell script to install the emulator on both host and remote
Bizhawk 2.3.0
Both computers on same local network
Rom came from https://alttpr.com/en/randomizer
Sometimes when somebody reconnects after a network problem or an emuhawk crash, they do so without error during consistency check whatsoever and by being "connected" to the room properly; but the person is just out of sync indefinitely with the other players.
His rupees, ammunitions and health are his own and he doesn't re-receive the items that were found before he got disconnected.
I was wondering if maybe it is linked to his save file ? Since he didn't get a chance to save for some time before being disconnect and having to reconnect to the room and therefore resetting the game.
Is there a way to force resync ?
LuaInterface.LuaException: unprotected error in call to Lua API (0)
in LuaInterface.Lua.PanicCallback (IntPtr luaState)
in lua_error (lua_State *)
in LuaInterface.ObjectTranslator.throwError (IntPtr luaState, Object e)
in LuaInterface.Lua.SetPendingException (Exception e)
in LuaInterface.LuaMethodWrapper.SetPendingException (Exception e)
in LuaInterface.LuaMethodWrapper.call (IntPtr luaState)
in LuaInterface.MetaFunctions.runFunctionDelegate (IntPtr luaState)
in lua_resume (lua_State *, Int32)
in BizHawk.Client.EmuHawk.EmuLuaLibrary.ResumeScript (Lua script)
in BizHawk.Client.EmuHawk.LuaConsole. <> c__DisplayClass3c. b__35 ()
in BizHawk.Client.Common.EnvironmentSandbox.Sandbox (Action callback)
in BizHawk.Client.Common.LuaSandbox.Sandbox (Action callback, Action exceptionCallback)
Use 32 Bits
Long title to try and avoid confusion but it'll still be there I'm sure.
On commit 7e52995:
$filename ="bizHawk-1.12.0.zip"
$filename = "bizHawk-2.3.zip"
Is there a way to force the script to resync the items in case some items were not sent? (OoTR specific)
We've updated our Ocarina of Time.lua for 3.0 in our bizhawk-co-op folders and still continue to have issues. Had no issues prior to 3.0 so I'm thinking it's the lua. Everything is done with Bizhawk 2.3 if that matters.
When testing using the same Multiplayer Seed:
If I don't have lua open I can open chests.
If I have lua open and don't have other players in my room I can open chests.
If there is at least one other player in my room, my game crashes upon approaching a chest.
When trying to setup a LAN room for the Oracles Multiworld I get the following Error: "Error in Listen: ...\Downloads\BizHawkRoot\bizhawk-co-op\sync.lua:49: bad argument #1 to 'lines' (bizhawk-co-op.lua: No such file or directory)" for the hosting side and: "Error during Join Server: .\bizhawk-co-op\sync.lua:49: bad argument #1 to 'lines' (bizhawk-co-op.lua: No such file or directory)" for the joining side.
So I've got the latest dev branch and co-op scripts but I keep getting this error:
NLua.Exceptions.LuaScriptException: .\bizhawk-co-op\sync.lua:104: attempt to index upvalue 'ram_controller' (a nil value)
as host and:
Error during sync: .\bizhawk-co-op\sync.lua:200: attempt to index upvalue 'ram_controller' (a nil value)
when connecting to someone else.
Everyone running new scripts
I can't seem to Open the Script In lua,Even after booting the rom. it just gives me this error "NLua.Exceptions.LuaScriptException: [string "main"]:54: loop or previous error loading module 'bizhawk-co-op\host'"
Hey there, a friend and I were recently trying out this script for the first time but we noticed that items were not split between us but were present in both files. When we first have the second player connect to the host, we both see a long list of errors in the Lua Console: "CARTROM domain is not writable". This is repeatable 100% of the time.
The other features we tried - Ammo & Rupee sharing, and the general sharing of items and hearts seems to work perfectly. But we worried picking up too many hearts or other item dupes could make things... interesting.
The co-op script should be capatible for Bizhawk 1.12.0+ and 2.2.2+
Capatible isn't a word.
Greetings,
My friends and I wanted to try OOT Randomizer at 3. I tried joining their room after following the instructions but I only get these messages.
[01:23:22] Joined room (Custom IP)
[01:23:22] Checking configuration consistency...
[01:23:22] Configuration consistency check failed: Bad hash
[01:23:22] You are not both using the same sync code (perhaps one of you is using an older version?)
[01:23:22] Make sure your sync code is the same and try again.
[01:23:22] Server closed.
My two other friends can connect to each other but only I can't.
Do you know where the problem could be ?
Thanks in advance.
Maybe update that to mention Bizhawk version 2.3 instead?
When I try to create or join a OoT Multiworld server I get the error
"Error during Join Server: Created global variable "require_status".
Didn't you want this to be local?
If you actually wanted a global variable,
use the "declare" function instead."
If I first try to join a LttP server "which works" and then try to join a OoT Server I get the error
"The RAM controller file could not be loaded: ...zhawk-co-op\ramcontroller\Ocarina of Time.lua:205: bad argument #1 to 'create' (Lua function expected)" instead.
I even got the entire thing a friend uses and which works for him, and I still have the errors, can someone help me?
Don't think that it's a big thing to do nor it is important but it might be nice to add.
The possibility to save server settings (IP, pseudo, pass, port, script) so you just have to go to your saved servers list and click on it instead of retyping the whole thing.
With witch protocol of the OSI 4 the script works ?
Because I want to open the port with the right protocol, not with all .(precision is more secure)
I've been enjoying running multiworld OOT runs with my friends recently, except for one problem...
The sensitivity for the controller X and Y axis appears to be much too high, and cannot be cleanly adjusted.
We've tried adjusting the Sensitivity in both directions, along with the deadzones, and the controllers still do not properly act as intended.
For example, the Lost Woods Slingshot game it is near impossible to aim at the target (Without needing to climb down the ladder, and awkwardly aim upwards). The same goes for the Hookshot target in the second level of the Water Temple that you need to hit the eye switch first for.
We've tried the following controllers, with no changes;
RetroLink N64 Controller
Steam Controller
PS4 Controller
GameCube controller using Wii U adapter
It would be a nice quality of life improvement if the interface would either show a list of peoples names or at least the number of people in the current room. This helps to keep an overview for larger groups of people.
tl;dr Keys obtained from jars and critters sometimes do not appear. These are the keys that are not supposed to be randomized. The only co-op setting we had toggled on was "Raid Boss."
Today I played my first lttp randomizer with a buddy and decided to do co-op. We set up 1.12 Bizhawk and everything looked great. The ONLY option we selected was "Raid Bosses"
Very early on we were a bit confused because my buddy got key-locked out of completing both the rescue Zelda sequence and the sewer sequence later (when we eventually got bracers and he could push the bookcase out of the way to reveal the sewers).
Over and over again I got key-locked out of dungeons which was annoying because we did raid boss HP with the intent to fight the bosses together. We just figured it was something to do with the co-op logic and worried less when the other one of us was able to finish the dungeon.
But then we finally hit a crystal dungeon (swamp) that BOTH of us were key-locked out of and a very observant viewer on twitch noticed something was very very wrong. Jars were not holding their expected keys for either of us. We finally realized we were hard locked out of completing the game and decided to completely shut down and restart bizhawk and the co-op script to see if that would fix anything.
We went back into the swamp and my buddy's key did NOT drop from the jar it was supposed to be in, but suddenly my previously missing key did. I had him re-try the Zelda rescue and sewer escape areas and he was able to find the previously missing keys and full clear them. I then got stuck in sewer again and my viewer said there was a jar I opened that should have had a key but didn't.
So basically, the keys confirmed to glitch out and not appear on some jars and from at least one critter in the sewers. A full reset seemed to make some of the missing keys be obtainable but keys started being unobtainable again shortly after restart. I can't find a full log of how the script split our items up to confirm things and the randomizer spoiler log also won't say because it doesn't know it was created for co-op. Otherwise I am happy to share whatever information you may deem useful to troubleshoot.
For what its worth, my buddy and I have done multiple multi-worlds in Ocarina of Time with no major issues. This was our first time in lttp co-op and thus trust this script more than the other one that is available since we're already familiar with it. We'd like to keep using it if it works properly!
I have someone who hasn't been able to connect to my room, while others can join perfectly fine. The error is:
"Server: Created global variable "require_status".
Didn't you want this to be local?
If you actually wanted a global variable,
use the "declare" function instead."
It occurs when he tries to click Join Room with the information correctly put in on the most recent Lua script (i.e. correctly joining the room). Apparently a few others have had these issues in the OoT Multiworld server as well.
Had an issue where one player got a key item for other. But we got disconnected from the room. We we got reconnected the item never popped. Tried both of us saving and restart the game. With no luck.
Did get this error in the lue console after we reconnected.
Configuration consistency check failed: Bad hash
[07:21:34] You are not both using the same sync code (perhaps one of you is using an older version?)
[07:21:34] Make sure your sync code is the same and try again.
is there a fix for this ?
logs:
[14:29:13] The RAM controller file could not be loaded: bizhawk-co-op\ramcontroller\Ocarina of Time.lua:42: This ROM is not compatible with this version of the co-op script
Script protocol version: 2
ROM protocol version: 4
Hi, is it possible to save and continue a co-op run, or would that cause items to be put into a chest that was already opened by that player?
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)
I updated to the latest lua script and got this issue:
NLua.Exceptions.LuaScriptException: .\bizhawk-co-op\sync.lua:104: attempt to index upvalue 'ram_controller' (a nil value)
and
Error during sync: .\bizhawk-co-op\sync.lua:200: attempt to index upvalue 'ram_controller' (a nil value)
What can i do to use the Same Username to create another room? its been a few days already and the Connection is aparently still "up" (My Usernames that i used are Felipe,Sparky and Sparky7198)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.