The instructions below outline setting up CEN64 with respect to using it for emulation during homebrew development but if your just looking to set the emulator up for basic usage the steps below will also apply.
Setup
- Download CEN64 or Build It From Source
You can get a pre-built Windows executable of CEN64 from https://www.cen64.com/uploads/stable/cen64-windows-x86_64.exe.
When you visit the site you’ll get a certificate warning, it appears to be expired. To be safe scan this with Windows Defender and test it out on VirusTotal. If you want to build it yourself from source see the repository README.
Unsigned Binaries
Windows Defender/SmartScreen is going to complain throughout if your using the pre-built binaries and telling you there are unsafe (because they are not digitally signed and did not originate on your system), if you accept the risk then continue to dismiss these throughout, otherwise I would suggest building from source.
-
With CEN64 downloaded extract to wherever you plan to install it, were going to assume you’ve created the following folder structure,
~/n64/cen64/
. Placecen64-windows-x86_64.exe
inside the cen64 folder and rename tocen64.exe
. -
Go out and get a copy of
pifdata.bin
, this file is essentially the system BIOS used to initialize the N64 hardware. It’s copyrighted and I’m not hosting it but if you did a Google search like"pifdata.bin MESS 0.151 archive"
you’re likely to find a ZIP folder container it. -
Place your copy of
pifdata.bin
inside of the folder alongsidecen64.exe
. -
Get a ROM to test the emulator, use your own or download my Homebrew test ROM from https://github.com/werkn/n64devkit-everdrive/raw/main/N64DevKit/homebrew/0_hello_world/hello_world.z64. Save this as
hello_world.z64
in the same folder ascen64.exe
andpifdata.bin
. -
If your using a clean install of Windows you likely don’t have a copy of OpenAL (audio library used by CEN64). To test if you have it try double clicking cen64 (SmartScreen may complain at this point). If you don’t get an error saying something like
OpenAl32.dll
not found then you can proceed to step 8. Otherwise we need to install OpenAL. -
To setup OpenAL download the following OpenAL 1.1 Windows Installer (zip). Open the zip folder and run
oalinst
and complete the installation. You should now have OpenAL installed, proceed to step 8. -
Now if you already have OpenAL/OpenGL installed you should be able to do the following:
- Launch PowerShell/cmd from the folder
~/n64/cen64/
. An easy way to do this is in explorer hold<SHIFT>
and<RIGHT-CLICK>
on an area in the folder that is not a file and selectLaunch powershell/cmd window here
in the list of options. - With your new PowerShell window launched, type the following
.\cen64.exe pifdata.bin hello_world.z64
and press<ENTER>
. If you see a window launched that says “Hello World!” in black text on a white background, congratulations you’re setup is complete.
(Optional) Helpers
Optionally, and to make working with CEN64 easier I recommend creating a command alias that you can call from PowerShell run any .z64 file from any directory.
Note: If you do not have an existing profile for
Current user, All Hosts
. If one exists we append to it. You may want to back up the file found at$PROFILE.CurrentUserAllHosts
before running the commands below.
- Begin by launching a PowerShell admin shell by pressing
<WIN>+<R>
which will bring up the run dialogue. From here enterpowershell
and press<CTRL>+<SHIFT>+<ENTER>
this will prompt you to run powershell as administrator, select yes. Next paste the code below into powershell (<RIGHT-CLICK>
will paste or<CTRL>+<SHIFT+<V>
) and press<ENTER>
. When prompted to change execution policy entera
and hit<ENTER>
. After complete close powershell and relaunch it (it does not need to be an admin shell).
|
|
- From the newly launched shell you should now be able to run the command
c64 -RomFile <your_rom_file.z64>
.