(GUIDE) How to add Super Mario 64 PC to Retropie(Pi4 and Pi3b)
-
This guide will show you how to add a improved and open-source version of Super Mario 64, called Super Mario 64 PC, and launch it from emulation station.
NOTE: Super Mario 64 PC requires opengl, which runs out of the box on pi4, but needs configuration on other rpi models.
Step 1: Run this commandsudo apt install build-essential git python3 libaudiofile-dev libglew-dev libglfw3-dev libusb-1.0.0 libsdl2-dev
Step 2: Git clone into the files
git clone https://github.com/sm64pc/sm64pc
Step 3: Take your .z64 file of Super Mario 64 and put it in the files
cp Downloads/YOUR_ROM.z64 sm64pc/baserom.YOUR_ROMS_REGION.z64
Step 4: Build
cd sm64pc make VERSION=ROM_REGION TARGET_RPI=1 -j4
Step 5: Create .sh file
Create a .sh file, name it sm64pc.sh, and put the following code in it:
#!/bin/bash /home/pi/sm64pc/build/ROM_REGION_pc/sm64.us.f3dex2e.arm %U
Move the .sh file into /home/pi/RetroPie/roms/ports
Step 6: Have fun :)
Feedback is very appreciated
Note: sm64pc automatically configures controllers, so you don't need to go into config files
EDIT: To add mods, @pjft came up with this solution:
Run first 4 steps, replacing step 2 with:git clone --single-branch --branch nightly https://github.com/sm64pc/sm64ex.git
Then after step 4 run:
rm -rf build
Copy the content of the patch to the folder.
Then run:make VERSION=ROM_REGION TARGET_RPI=1 -j4 EXTERNAL_DATA=1
where ROM_REGION is the region of your ROM, as in the first time you compiled it.
Replace the code inside sm64pc.sh with:#!/bin/bash /home/pi/sm64ex/build/us_pc/sm64.us.f3dex2e.arm %U
EDIT: @zerojay has made a scriptmodule here: https://github.com/zerojay/RetroPie-Extra/blob/master/scriptmodules/ports/sm64ex.sh
THIS IS ONLY FOR PI 4!!!
Copy your Mario 64 ROM to /home/pi/baserom.<VERSION>.z64 before attempting to install.Thanks again to @pjft for the solution for mods.
Thanks again to @zerojay for a scriptmodule. -
Edit: In step 3, instead of downloads, type path to rom(eg. RetroPie/roms/n64/Mario.z64
-
@Luddo183 said in (GUIDE) How to add Super Mario 64 PC to Retropie(Pi4 and Pi3b):
Super Mario 64 PC
Awesome, does it support the texture packs? -
@Krakatoa
It does, you can follow the instructions from any website -
im stuck / confused with steps 3 onwards any help please?
-
@Stuart2773
What's the problem? -
im getting this error
Makefile:148: *** unknown version
-
@Stuart2773
What are you putting in the terminal for step 3? -
cp RetroPie/roms/n64/Mario.z64 sm64pc/baserom.Mario.z64
-
@Stuart2773
First of all, make sure you have a Mario.z64 in there.
Second, instead of baserom.Mario, you need to put the region(eg. us, eu) -
Yeah the baserom needs to be called baserom.us.z64 (or eu or jp). I'm just building it now
-
my mario.z64 is in my n64 roms dir
the original rom file was called Super Mario 64 (U) [!].z64
but i changed it to Mario.z64
-
@retropieuser555
Also when running make VERSION=us TARGET_RPI=1 -j4, replace us with the region of the rom -
@Stuart2773
It is the us file -
yes
-
@Luddo183 said in (GUIDE) How to add Super Mario 64 PC to Retropie(Pi4 and Pi3b):
RetroPie/roms/n64/Mario.z64
step 3 is really confusing me, not sure what needs to be typed
-
@Stuart2773
For you, typecp RetroPie/roms/n64/Mario.z64 sm64pc/baserom.us.z64
And for step 4:
cd sm64pc make VERSION=us TARGET_RPI=1 -j4
And for the sm64pc.sh file:
#!/bin/bash /home/pi/sm64pc/build/us_pc/sm64.us.f3dex2e.arm %U
-
-
@Stuart2773
You can get them on the official website -
@Luddo183 said in (GUIDE) How to add Super Mario 64 PC to Retropie(Pi4 and Pi3b):
@Stuart2773
You can get them on the official websitecan you provide the link?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.