RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    (GUIDE) How to add Super Mario 64 PC to Retropie(Pi4 and Pi3b)

    Scheduled Pinned Locked Moved Ideas and Development
    mariomario 64nintendo 64sm64sm64pc
    150 Posts 23 Posters 60.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by A Former User

      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.

      Super Mario 64 PC is only for the Pi 4 and 3B+

      NOTE: Super Mario 64 PC requires OpenGL, which runs out of the box on pi4, but needs configuration on other rpi models.

      There are two ways to install Super Mario 64 PC:
      1: Manual installation(You will download and build the game) - for Pi 3B+ and 4
      2: Scriptmodule by @zerojay - ONLY FOR PI 4

      Manual Installation:
      Step 1: Run this command

      sudo 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 <ROM_LOCATION>/<YOUR_ROM>.z64 sm64pc/baserom.<ROM_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 :)

      Scriptmodule:
      Step 1: Go to ~/RetroPie-Setup/scriptmodules/ports

      Step 2: Enter the following in your terminal(F4)

      git clone https://github.com/zerojay/RetroPie-Extra/blob/master/scriptmodules/ports/sm64ex.sh
      

      Step 3: Go to the RetroPie Setup menu and in the packages you will find sm64ex

      Step 4: Download sm64ex and have fun :)

      Feedback is very appreciated

      Note: sm64pc automatically configures controllers, so you don't need to go into config files

      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/<ROM=REGION>_pc/sm64.us.f3dex2e.arm %U
      

      MODS ARE ONLY FOR MANUAL INSTALLATION

      Thanks to @pjft for the solution for mods.
      Thanks to @zerojay for a scriptmodule.

      S 1 Reply Last reply Reply Quote 5
      • ?
        A Former User
        last edited by

        Edit: In step 3, instead of downloads, type path to rom(eg. RetroPie/roms/n64/Mario.z64

        1 Reply Last reply Reply Quote 0
        • KrakatoaK
          Krakatoa
          last edited by

          @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?

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @Krakatoa
            last edited by

            @Krakatoa
            It does, you can follow the instructions from any website

            1 Reply Last reply Reply Quote 0
            • Stuart2773S
              Stuart2773
              last edited by

              im stuck / confused with steps 3 onwards any help please?

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @Stuart2773
                last edited by

                @Stuart2773
                What's the problem?

                1 Reply Last reply Reply Quote 0
                • Stuart2773S
                  Stuart2773
                  last edited by

                  im getting this error

                  Makefile:148: *** unknown version

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @Stuart2773
                    last edited by

                    @Stuart2773
                    What are you putting in the terminal for step 3?

                    1 Reply Last reply Reply Quote 0
                    • Stuart2773S
                      Stuart2773
                      last edited by

                      cp RetroPie/roms/n64/Mario.z64 sm64pc/baserom.Mario.z64

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @Stuart2773
                        last edited by

                        @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)

                        1 Reply Last reply Reply Quote 0
                        • retropieuser555R
                          retropieuser555
                          last edited by retropieuser555

                          Yeah the baserom needs to be called baserom.us.z64 (or eu or jp). I'm just building it now

                          Pi 5 4GB

                          Retroflag GPI with raspberry pi zero 2 w/ wifi

                          Retroachievements:- lovelessrapture

                          ? 1 Reply Last reply Reply Quote 0
                          • Stuart2773S
                            Stuart2773
                            last edited by

                            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

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @retropieuser555
                              last edited by

                              @retropieuser555
                              Also when running make VERSION=us TARGET_RPI=1 -j4, replace us with the region of the rom

                              1 Reply Last reply Reply Quote 1
                              • ?
                                A Former User @Stuart2773
                                last edited by

                                @Stuart2773
                                It is the us file

                                1 Reply Last reply Reply Quote 0
                                • Stuart2773S
                                  Stuart2773
                                  last edited by

                                  yes

                                  1 Reply Last reply Reply Quote 0
                                  • Stuart2773S
                                    Stuart2773
                                    last edited by

                                    @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

                                    ? 1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @Stuart2773
                                      last edited by

                                      @Stuart2773
                                      For you, type

                                      cp 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
                                      
                                      1 Reply Last reply Reply Quote 1
                                      • Stuart2773S
                                        Stuart2773
                                        last edited by

                                        @Luddo183

                                        cheers thank you so much ive now got it working,

                                        now to add some texture packs !!!!

                                        ? 1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User @Stuart2773
                                          last edited by

                                          @Stuart2773
                                          You can get them on the official website

                                          Stuart2773S 1 Reply Last reply Reply Quote 0
                                          • Stuart2773S
                                            Stuart2773 @A Former User
                                            last edited by

                                            @Luddo183 said in (GUIDE) How to add Super Mario 64 PC to Retropie(Pi4 and Pi3b):

                                            @Stuart2773
                                            You can get them on the official website

                                            can you provide the link?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            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.