This guide is intended for use with the latest release Randomizer version. Dev builds require slightly altered instructions.
The aim of this page is to help the reader set up Bizhawk for Multiworld. In Multiworld players collaborate by finding items for one another that are scattered throughout every player's world. For instance, for player 1 to advance in their own world they may need to be sent their Megaton Hammer from player 2's world. In other words, even though each player has their own world and inventory every world is still linked together. In order to link everyone's worlds together players need to make use of so-called "lua scripts". Currently, these are only compatible with Bizhawk, but support for console and other emulators is planned. While the setup itself is not difficult there are nevertheless things that go wrong, so it is strongly encouraged that the reader follow the guide carefully. Enjoy Multiworld. :)
- 1 Generating the ROMs Using the Webpatcher
- 2 Generating the ROMs Using the Offline Version
- 3 Download the Custom Bizhawk Installer
- 4 Running the Custom Bizhawk Installer
- 5 Configuring Bizhawk for Multiworld
- 6 Opening the Lua Console
- 7 Rooms
- 8 Play Some Multiworld!
- 9 Common Errors
- 9.1 Help! My emulator crashed!/I accidentally opened TAStudio and got a black screen!
- 9.2 NullHawk Does Not Implement Memory Domains
- 9.3 Error 401
- 9.4 This ROM is not compatible with this version of the co-op script.
- 9.5 Unable To Find Domain: CARTROM
- 9.6 Dynamic Libraries Not Enabled
- 9.7 Unprotected Error in Call to LUA API
- 9.8 Connection Failed: Timeout
- 10 Special Circumstances
Generating the ROMs Using the Webpatcher
Start off by going to the Webpatcher and set up the settings you want for the seed. On the
Rom Options tab change the
Player Count to however many people will be playing. Once you're done, generate the seed.
After you have generated the seed, share the URL with your partners and have everyone choose a different
Player ID. Then continue patching the rom as you would normally (don't forget cosmetics and sfx). Each player should have their own Randomizer ROM, with the formula
OoT_SeedID_SettingsHash_W0P0 with the W0 and P0 being world count and player ID respectively.
Generating the ROMs Using the Offline Version
Generating a ROM using an offline build works a little differently. After choosing the settings you wish to play with, go to the
ROM Options tab and set
Generate From Seed. Choose
Patch File as your
Output Type and change the
Player Count to however many people will be playing. Then hit
Send the patch file (.zpfz) to your partners and have them set
Generate From File. The
Output Type should be
Compressed [Stable] now, and everyone should choose a different
Player ID. Select the patch file and hit
Generate! (don't forget to set cosmetics and sfx). Each player should have their own Randomizer ROM, with the formula
OoT_SeedID_SettingsHash_W0P0 with the W0 and P0 being world count and player ID respectively.
Note: if your partners don't have the offline build they can also patch the rom using the website. Make sure to set
Generate From File and select your patch file (.zpfz).
There are several reasons why someone might want to generate a ROM using an offline build. For example, some builds might have features that are not available on the website build (yet), like additional Entrance Randomizer settings. Generating from an offline build also lets you play with your own custom patches.
Download the Custom Bizhawk Installer
The very first thing that you must do is download the Multiworld script from TestRunner's GitHub page. When you download this, extract its contents to its own folder - it will be creating a new Bizhawk install for you to use, so you must keep it separate. Note: Whenever there is an update to the Multiworld script, everybody playing must update to the latest version.
Running the Custom Bizhawk Installer
Once you have the contents extracted to its own folder, locate the
bizhawk-co-op.ps1 file. Right Click and select Run with PowerShell.
If Powershell prompts you for permissions, say yes to all. From here, the Powershell is getting you 99% of the way done: it will create a new Bizhawk 2.3 install and place everything for you. Once Powershell is done, open up the Bizhawk 2.3 folder it created and launch
EmuHawk.exe. Note: It is recommended you delete everything outside of the Bizhawk 2.3 folder that was created. These files are no longer needed and only add confusion.
If you are running Windows 7 you will need to enable remote Powershell script execution, and make sure Powershell is updated.
First, go to the Installing Powershell page and navigate to the download page for the the latest Windows 7 SP1 Powershell version. At the time of writing it is WMF 5.1. The file on the download page you want to download is named similar to
Win7AndW2K8R2-KB3191566-x64.zip. Run the
.msu file inside of the zip file and it should update Powershell.
You may need to enable executing Powershell scripts without requiring the script to be digitally signed. Open Powershell from the Start Menu by right clicking it and selecting "Run as Admin". Click the "Yes" button to allow Powershell to run as Administrator. Type
Set-ExecutionPolicy Unrestricted and press
Enter once, type
Y then press
Enter again. The Powershell script should now run.
Another issue that can occur while running the Powershell script is your anti-virus deleting the files it downloads. The BizHawk Prerequisites often gets marked as suspicious due to it being an installer that runs more installers. We can't give a detailed guide on how to exclude a folder in every anti-virus software, but search Google with a query like
Exclude Folder <your_anti-virus_name> and you should find a guide on their official site explaining how to do so. Exclude the folder that has the Powershell script in it and now you should be able to run it without the downloaded files getting deleted.
Configuring Bizhawk for Multiworld
There are a few things you need to do once you've got the emulator running. The very first thing is go to
Config -> Customize and navigate to the Advanced tab. At the bottom, there is an option for Lua Core; select
Lua+LuaInterface and hit OK. While on the Advanced tab, you should also check the box for
AutoSaveRAM and set it to a reasonable time, such as 60-180 seconds (keep in mind that setting this too low could increase lag and decrease overall emulator performance). This will allow Bizhawk to write your in-game save to your drive. This is NOT a form of save state - it simply periodically creates/updates a file on your hard drive with your in-game save data, and is wonderful for mitigating the effects of crashes. In the event of a crash (or if you open TAStudio by accident) DO NOT RELOAD THE ROM! DO NOT RELOAD THE ROM! Doing so will overwrite your backups, meaning that your save files will be gone. To recover your save file follow the instructions over here.
In the General tab of the Customize menu, tick the boxes for "Accept background input" and "Run in background" – this will allow Bizhawk to keep accepting controller inputs when you tab over to your tracker or notes and prevent the emulation from pausing (which will disconnect you). Clear your hotkeys by going to Config -> Hotkeys, and at the bottom click Misc and Clear All.
The next step is to set your controller up. Your controller configuration will vary based on what controller you are using; for Bizhawk to enable the Controller menu, you must have a ROM loaded. For a smooth controller experience, you must unbind the first 4 binds in Config -> Controller such that it looks like this:
You'll then have to bind your analog stick in the Analog tab of your controller config and adjust your sensitivity and deadzones to your preference. Additional info on controller setup can be found in Step 6 of the Bizhawk Guide.
You can fix how your game looks by going to Config -> Cores -> N64 Video Plugin Settings. In here, change your resolution so that it runs smooth. Multiworld will drop your performance, so keep that in mind. The recommended video plugin is GLideN64. (This is not the same plugin as Glide64!)
Opening the Lua Console
Once you have your emulator set up to run how you are comfortable with, its time to move to the Lua console. Go to Tools -> Lua Console, and a separate window will open up. This window must remain open at all times during a Multiworld. In the Lua Console, go to Settings and checkmark the Disable Scripts on loads.
This is the last of the settings changes you have to do. If you want Bizhawk to retain these settings changes for the next time, go to Config -> Save Config. Once you have these steps done, you MUST close your emulator and reopen it for this change to take effect. Close out of Bizhawk, and then reopen it and the Lua Console. Sometimes this will not be enough and you will still get an error trying to load the Lua file. In that case reboot your entire computer.
If for some reason you do not have your Multiworld ROM open, you must do so now.
From here in the Lua Console, Open Script and locate the
bizhawk co-op.lua file in the Bizhawk 2.3 folder. Once you have that done, a red square will appear in the console; double click it and a new window will open up.
This window must also stay open at all times.
The Lua Console Script is where you set up a room and join rooms.
If you are the Host: You must port forward. How you do this varies on what brand your router is. Instructions on how to do this can be found by Googling your brand/model of router. You'll want to use a port between 49152 and 65535. We highly recommend using the default port, 50000. You'll also want to ensure you're forwarding the TCP protocol as that is the protocol Multiworld uses. Most other games you have port forwarded in the past likely were using the UDP protocol.
Once that is done, in the Bizhawk Co-op window the Host must set their name, password, and the port that was forwarded, along with setting the game script to Ocarina of Time. Hit Create Room and tell the people joining the Room Name, password, and port. (It is not recommended to use your own personal password here, as it is shared with the group. Use something that will prevent random people from joining your room, but not something that will compromise your own security.)
If you are Joining and the Host has set up the room: hit Refresh in the Bizhawk Co-op window and select the Host's Room from the dropdown bar. When you input your username, keep in mind the game will use this to display who got what item for everyone playing. It will max out at 8 characters, even if you input more. Fill in the password and port number the Host gave you and select the Ocarina of Time Game Script and hit Join Room.
You can also select a player number when both hosting and joining a room. This is non-mandatory, and player numbers will be automatically selected if non are entered. This also does not need to match the world number chosen when patching your ROM file. If you do select a player number, and that number is already filled in that room, you will be unable to join.
Play Some Multiworld!
Go and have fun with new or old friends! If you are part of the Ocarina of Time Randomizer Discord, you can assign the Multiworld role to yourself by going to the #chat-bot channel and typing
!role Multiworld - this will allow you to receive pings in the server where there are announcements from the Devs or folks are looking for players. You can also visit #multiworld-planning to look for additional players. It is highly recommended that you use one of the Trackers so that you don't accidentally leave those new friends out to dry if you miss a check.. Map Trackers such as 2deep4real's Web Tracker or Hamsda's Map and Item Tracker package for EmoTracker are highly recommended.
These are the most common errors that pop up that have known solutions. If none of these solve the problem, try rebooting your computer again afterwards to ensure any new configurations are fully loaded.
Help! My emulator crashed!/I accidentally opened TAStudio and got a black screen!
First of all, DO NOT RELOAD THE ROM! DO NOT RELOAD THE ROM! Doing so will overwrite your backups, meaning that your save files will be gone. To recover your save files follow these instructions.
- In your Bizhawk folder navigate to
- Identify the
AutoSaveRAMfiles corresponding to your seed. Sorting by date may help. Note that the
AutoSaveRAMfiles will only exist if you've enabled that beforehand.
- Optional: manually make a backup of these files somewhere on your pc.
- Delete the
SaveRAMfile and rename
AutoSaveRAMto take the place of the
SaveRAMfile you've just deleted.
- Now you can safely load your seed again and continue playing.
NullHawk Does Not Implement Memory Domains
You must load the ROM before activating the Lua scripts.
This generally means that either the password entered was incorrect, or that the room name already exists. Also, avoid special characters like spaces in the room name. We recommend using letters (no accents) and numbers only.
This ROM is not compatible with this version of the co-op script.
Unable To Find Domain: CARTROM
You are using the A Link to the Past LUA script. Choose Ocarina of Time in the dropdown instead.
Dynamic Libraries Not Enabled
You did not set the Lua Core setting properly. Remember to restart Bizhawk after changing it.
Unprotected Error in Call to LUA API
This is a general error that pops up randomly. You need to ensure all copies of Bizhawk are closed properly. The easiest way to ensure this is by rebooting your computer.
Connection Failed: Timeout
There are several reasons this can happen, all of them being various methods of misconfiguration.
First, the host must have the port being used forwarded if not using Hamachi. Your private IP address that you forward the port to can change for various reasons. Always ensure that the router is pointing to the right computer with the port forwarding options. The host must also not have pings blocked in their router settings. This setting can be found under many names depending on the router.
Everyone playing must have the Bizhawk emulator allowed through their firewall.
The above Bizhawk configuration options are not optional. If you do not configure the emulator properly you will be unable to stay connected to each other.
If nobody in your multiworld group can port-forward for whatever reason, and you cannot get someone who can to join, then there is a program you can use: Hamachi. Let me preface this by saying that Hamachi basically 'tricks' your computers to believe that you are all connected via LAN.
To start, download Hamchi [here] and install it. Create an account, and go to System > Preferences > Settings to make sure that 'Encryption' is enabled. Then, click on the power button to go online.
If you're hosting, then click Network > Create a new network. Give it a unique name and password, making sure that nobody other than the people you're playing with find out this information. After this, you'll see it pop onscreen:
To join an existing network, click Network > Join an existing network. Type in your friend's network ID and the network's password.
Once you're all connected in the network, you can start the multiworld.
Right click on the address above your nickname, and click 'Copy IPv4 address':
Then, start up the Bizhawk co-op lua script. Set 'Rooms' to '(Custom IP)' and paste the IPv4 into the 'Host IP' bar. Set your Username and Password as usual, and the game script to Ocarina of Time.
Now you should be ready to start. As usual, if you have any more problems, seek advice within the OoTR Discord Server. Oh, and, be careful with who you give permission to join your network to.
Hamachi Request Timed Out
Follow these steps to ensure Hamachi is allowed through your firewall. Both the Host and the clients connecting to the host should do this.
Playing over LAN
If you're playing over a LAN network, then all you need to do is set the 'room' to (Custom IP), type the LAN's Ipv4 into the 'host IP' field, and give yourself a username. Leave the password field blank.
Unable to use Bizhawk
While Bizhawk is the officially supported emulator for multiworld, it is known to be a resource-intensive emulator in addition to being Windows only. If using Bizhawk is impossible for any reason, try the emulator ModLoader64 (Windows and Linux compatible), as DemoXin has modified the multiworld script to work with it. This method does not require a host.
- ModLoader64 Setup Instructions
- ModLoader64 Program
- Multiworld Plugin
Please see the ModLoader64 FAQ for common issues.
Note that few on the support staff of the Ocarina of Time Randomizer discord have used this method. The ModLoader64 Discord can provide additional help if the FAQ does not cover the issue.