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

      Apparently it can also be scraped with TheGamesDB, although the boxart is for the original SM64

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

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

        @pjft
        I edited the first post to show your solution for modding.

        Hi guys

        sorry to be a nuisance, i tried installing the game with the texture pack, but when i launch the game i get the following error:-

        /home/pi/RetroPie/roms/ports/sm64pc.sh: line 2: /home/pi/sm64pc/build/us_pc/sm64.us.f3dex2e.arm: No such file or directory

        heres the steps i used:-

        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 --single-branch --branch nightly https://github.com/sm64pc/sm64ex.git

        Step 3: Take your .z64 file of Super Mario 64 and put it in the files

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

        Step 4: Build

        cd sm64pc

        make VERSION=us TARGET_RPI=1 -j4 EXTERNAL_DATA=1

        rm -rf build

        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/us_pc/sm64.us.f3dex2e.arm %U

        Step 6:

        Move the .sh file into /home/pi/RetroPie/roms/ports

        any ideas where ive messed up?

        many thanks

        KrakatoaK I 2 Replies Last reply Reply Quote 0
        • KrakatoaK
          Krakatoa @Stuart2773
          last edited by

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

          line 2: /home/pi/sm64pc/build/us_pc/sm64.us.f3dex2e.arm

          Does the file "sm64.us.f3dex2e.arm" exist in the path? also is the path correct?

          /home/pi/sm64pc/build/us_pc/sm64.us.f3dex2e.arm

          Stuart2773S 1 Reply Last reply Reply Quote 0
          • pjftP
            pjft
            last edited by

            It's probably /home/pi/sm64ex/build/us_pc/sm64.us.f3dex2e.arm for the nightly build.

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

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

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

              line 2: /home/pi/sm64pc/build/us_pc/sm64.us.f3dex2e.arm

              Does the file "sm64.us.f3dex2e.arm" exist in the path? also is the path correct?

              /home/pi/sm64pc/build/us_pc/sm64.us.f3dex2e.arm

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

              It's probably /home/pi/sm64ex/build/us_pc/sm64.us.f3dex2e.arm for the nightly build.

              im not sure what i need to do or where to check :(

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

                @Stuart2773

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

                It's probably /home/pi/sm64ex/build/us_pc/sm64.us.f3dex2e.arm for the nightly build.

                im not sure what i need to do or where to check :(

                It is in /home/pi/sm64ex/build/us_pc

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

                  @Stuart2773
                  Create a .sh file with this inside:

                  #!/bin/bash
                  /home/pi/sm64ex/build/us_pc/sm64.us.f3dex2e.arm %U
                  

                  Put it in /home/pi/RetroPie/ports

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

                    @skj
                    Are the mods working? Just asking

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

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

                      @Stuart2773

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

                      It's probably /home/pi/sm64ex/build/us_pc/sm64.us.f3dex2e.arm for the nightly build.

                      im not sure what i need to do or where to check :(

                      It is in /home/pi/sm64ex/build/us_pc

                      i dont have that folder "build/us_pc"

                      would i need to change steps 3 & 4 to sm64ex instead of sm64pc ?

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

                        @Stuart2773
                        Then what do you you have in the build folder

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

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

                          @Stuart2773
                          Then what do you you have in the build folder

                          there is no folder called build :(

                          im totally confused by the setup steps to install the packs,

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

                            @Stuart2773
                            What did you do and where are you looking

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

                              @Stuart2773
                              Yes, you should change steps 3 and 4 to sm64ex instead of sm64pc

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

                                @Luddo183

                                is this the correct steps with the correct folder names:-

                                sudo apt install build-essential git python3 libaudiofile-dev libglew-dev libglfw3-dev libusb-1.0.0 libsdl2-dev

                                git clone --single-branch --branch nightly https://github.com/sm64pc/sm64ex.git

                                or

                                git clone --single-branch --branch nightly https://github.com/sm64ex/sm64ex.git

                                cp RetroPie/roms/n64/Mario.z64 sm64ex/baserom.us.z64

                                cd sm64ex

                                make VERSION=us TARGET_RPI=1 -j4 EXTERNAL_DATA=1

                                rm -rf build

                                #!/bin/bash
                                /home/pi/sm64ex/build/us_pc/sm64.us.f3dex2e.arm %U

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

                                  @Stuart2773

                                  git clone --single-branch --branch nightly https://github.com/sm64pc/sm64ex.git

                                  Whether step 2 and 4 are correct or not (because of the "us" part) only depends on your version of the ROM, but you'll get an error if that's not right.

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

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

                                    @Stuart2773

                                    git clone --single-branch --branch nightly https://github.com/sm64pc/sm64ex.git

                                    Whether step 2 and 4 are correct or not (because of the "us" part) only depends on your version of the ROM, but you'll get an error if that's not right.

                                    the rom im using is Super Mario 64 (U) [!].z64
                                    (which i renamed to Mario.z64)

                                    1 Reply Last reply Reply Quote 0
                                    • pjftP
                                      pjft
                                      last edited by

                                      One note: it seems that the nightly build is the one that is messed up in terms of speed.

                                      The original one (the one you don't use mods in) runs fine at the right speed!

                                      Stuart2773S A 2 Replies Last reply Reply Quote 0
                                      • Stuart2773S
                                        Stuart2773 @pjft
                                        last edited by Stuart2773

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

                                        One note: it seems that the nightly build is the one that is messed up in terms of speed.

                                        The original one (the one you don't use mods in) runs fine at the right speed!

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

                                        After step 4, delete the build folder:

                                        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.

                                        thats where im getting stuck with the content of the patch folder ???

                                        the texture pack i download is called version1.1hotfix

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

                                          @Stuart2773 I'm sorry. Different patches may have different instructions - I don't know.

                                          I shared the instructions for the patch corresponding to one of the videos you shared, copied from the discord channel linked in that video - just because that was the one I also used.

                                          What are the instructions where you download that patch from? Do they have a discord or forum? That might shed some light for that specific pack.

                                          The content of the patch, in my case, is the content of the uncompressed zip file. I also ran into one which was a .pak file, but I had no idea what to do with it and, honestly, didn't bother much to follow up on it.

                                          Hope these help somewhat.

                                          S Stuart2773S 2 Replies Last reply Reply Quote 0
                                          • pjftP
                                            pjft
                                            last edited by

                                            A final note before logging off: if you want to use a patch that requires the nightly build, after checking out the code enter the folder and run

                                            git checkout 685efc81c
                                            

                                            which is the last good commit before the frame rate issues.

                                            Hope it helps.

                                            A 1 Reply Last reply Reply Quote 1
                                            • 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.