Navigation

    RetroPie forum home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

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

    Ideas and Development
    mario mario 64 nintendo 64 sm64 sm64pc
    19
    127
    2184
    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.
    • Luddo183
      Luddo183 last edited by Luddo183

      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 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 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.

      1 Reply Last reply Reply Quote 3
      • Luddo183
        Luddo183 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
        • Krakatoa
          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?

          Luddo183 1 Reply Last reply Reply Quote 0
          • Luddo183
            Luddo183 @Krakatoa last edited by

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

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

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

              Luddo183 1 Reply Last reply Reply Quote 0
              • Luddo183
                Luddo183 @Stuart2773 last edited by

                @Stuart2773
                What's the problem?

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

                  im getting this error

                  Makefile:148: *** unknown version

                  Luddo183 1 Reply Last reply Reply Quote 0
                  • Luddo183
                    Luddo183 @Stuart2773 last edited by

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

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

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

                      Luddo183 1 Reply Last reply Reply Quote 0
                      • Luddo183
                        Luddo183 @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
                        • retropieuser555
                          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

                          Luddo183 1 Reply Last reply Reply Quote 0
                          • Stuart2773
                            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

                            Luddo183 1 Reply Last reply Reply Quote 0
                            • Luddo183
                              Luddo183 @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
                              • Luddo183
                                Luddo183 @Stuart2773 last edited by

                                @Stuart2773
                                It is the us file

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

                                  yes

                                  1 Reply Last reply Reply Quote 0
                                  • Stuart2773
                                    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

                                    Luddo183 1 Reply Last reply Reply Quote 0
                                    • Luddo183
                                      Luddo183 @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
                                      • Stuart2773
                                        Stuart2773 last edited by

                                        @Luddo183

                                        cheers thank you so much ive now got it working,

                                        now to add some texture packs !!!!

                                        Luddo183 1 Reply Last reply Reply Quote 0
                                        • Luddo183
                                          Luddo183 @Stuart2773 last edited by

                                          @Stuart2773
                                          You can get them on the official website

                                          Stuart2773 1 Reply Last reply Reply Quote 0
                                          • Stuart2773
                                            Stuart2773 @Luddo183 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.