Making A Backup

From OoT Randomizer Wiki

For using the Ranodmizer you need to have a backup copy of Ocarina of Time on your computer. This guide will demonstrate how to do this.

Wii Virtual Console

The easiest method of backing up a copy of Ocarina of Time is by creating a WAD of the version installed on your Wii and then extracting that WAD using gzinject and finding the file called rom inside of the extracted contents.

What You Will Need

Getting and Setting Up gzinject

gzinject is an application by Krim/Krimtonz originally for putting the OoT Practice ROM in a WAD, but now has a variety of uses.

Windows: Download then extract the zip file. To run it, open the folder with gzinject in it, then click in the address bar and type cmd and press Enter. In the terminal that shows up you should be able to type gzinject and press Enter and see a bunch of information on how to use gzinject. If you do, move on to the next step.

Linux: Try using the WSL build of gzinject. It doesn't link to many libraries so should work without recompiling. If not, download the source code and then follow the BUILDING file on GitHub.

macOS: Currently you have to build from source. Setting up a build environment is out of scope for this guide, but once you have it set up you should be able to download the source code then follow the BUILDING file on GitHub

Once you have a version of gzinject that runs, you'll need to find yourself the Wii common key or figure out a way to generate one. It is the same file you will need to make a WAD on the online generator as well. The file should be placed in the same folder as gzinject and called common-key.bin. Once you have that in place, gzinject should be ready for use.

Extracting the ROM From the WAD

To extract all of the data from your dumped WAD, open a terminal and type gzinject -a extract -w . Don't forget the space at the end. Next drag your dumped WAD onto the terminal. This should put the path to the WAD at the end. If there is not a space between the "w" and the path, use the arrow keys to go back and add the space. If so, press Enter and gzinject should now extract the WAD to a folder called wadextract.

If it does not make sure that you have the common-key.bin file in the right place, and that you typed the command in the terminal correctly, including the space.

Now if you open the wadextract folder there should be another folder inside called content5 and inside of that folder is a bunch of files, but the one you are looking for is called rom. This is an Ocarina of Time 1.2 ROM that you can run in an emulator. If you want to use it for the Randomizer you will have to downgrade it to 1.0.