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.
    • KrakatoaK
      Krakatoa @AdamBeGood
      last edited by

      @AdamBeGood it wont work with that texture pack, the images are too large so it fails to compile, which results in the file not being generated. Use the texture pack from discord.

      A S 2 Replies Last reply Reply Quote 1
      • A
        AdamBeGood @Krakatoa
        last edited by AdamBeGood

        @Krakatoa But aside from that, the method seems okay? I see from an earlier post that you used SM64Redrawn - am I looking for a version of that on the Discord or do I need to consider a different pack?

        1 Reply Last reply Reply Quote 0
        • A
          AdamBeGood
          last edited by AdamBeGood

          Also, on my normal build of SM64PC, I am having trouble with the controls.

          When I plug my Xbox One Controller in, Mario defaults to ducking - I can get around this if I move straight after a jump though.

          If I have the keyboard plugged in, and then plug the Controller in, that stops Shift working - so I can no longer get into the Controller Config menu. Has anyone experienced anything similar?

          I'm keen to get this to work, it looks amazing even without texture packs (thanks to everyone who has contributed to this thread, it's great).

          Edit: I used the Nightly version instead of the one at the top of the thread, and selected this version:

          git checkout 685efc81c
          

          My controller is all good now, no problems anymore.

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

            This post is deleted!
            1 Reply 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):

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

              thats where i got the packs from :-

              https://discord.com/invite/QNjJAFH

              https://discord.com/channels/727721825953513472/728264742736494603

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

                @Stuart2773 That's the one I installed as well.

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

                  I installed the HD Luigi pack. I cloned the directory, saved the textures and sound files where they needed to be, ran the apply_patch.sh with HD_luigi.sh then ran make. Works fine for me 👍

                  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 Stuart2773

                    ok finally , ive managed to install the sm64redrawn pack into the main game :)

                    know i need to try and get the game to look like this:-

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

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

                      @Stuart2773 can you provide instructions? I’d like to use that pack.

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

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

                        @Stuart2773 can you provide instructions? I’d like to use that pack.

                        ok this is my WORK-AROUND !!!

                        first of all i downloaded this:- https://github.com/TechieAndroid/sm64redrawn/archive/master.zip and extacted the folder to my desktop

                        on my pi4b 4gb i already had the sm64pc installed (without texture packs)

                        using putty :-

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

                        2. git clone -b nightly https://github.com/sm64pc/sm64ex.git

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

                        4. cd sm64ex

                        now on WinSCP

                        in the folder "sm64ex" i noticed i did not have a "build" folder so i copided the "build" folder from "sm64pc" to "sm64ex"

                        and within that build/us_pc folder i created a directory call "res"

                        now in the "res" folder i copied the "gfx" folder that i extracted from the "sm64redrawn-master" on my desktop

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

                        2. create the sm64ex.sh file in /home/pi/RetroPie/roms/ports

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

                        then restarted the pi :)

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

                          @Stuart2773 Thank you.

                          did you only use the gfx folder in the zip? I think the other folder is alternative gfx's

                          Also, anyone know how to open the custom menu? It mentions it in the readme for sm64ex.

                          Stuart2773S 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 Thank you.

                            did you only use the gfx folder in the zip? I think the other folder is alternative gfx's

                            Also, anyone know how to open the custom menu? It mentions it in the readme for sm64ex.

                            yes i only used the gfx folder but you can copy the other alternative folder there too if you wish

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

                              Build sm64ex with the sm64redrawn texture pack - Assumes you are building us versions

                              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 sm64ex

                              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. Note change the code to your rom name in your roms directory.

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

                              Step 4: Build

                              cd sm64ex
                              
                              make VERSION=us TARGET_RPI=1 -j4
                              

                              Step 5: rm -rf build

                              Step 6: Create a build folder and a gfx and res folder under the sm64ex folder
                              build\us_pc\res\gfx
                              <pre>sm64ex
                              ┗ build
                              ┗ us_pc
                              ┗ res
                              ┗ gfx
                              ┣ actors
                              ┣ levels
                              ┗ textures</pre>

                              <b>(Master Clone)</b>
                              If you git clone the master you can just copy the gfx folder into your res directory and that's it.

                              Step 7: download the zip package sm64redrawn sm64redrawn and unzip

                              step 8: copy the contents of the gfx folder and alt folder from the extracted sm64redrawn zip into the res folder created in step 6 (alt folder contains icon updates etc.)

                              step 9: cd sm64ex

                              Step 8:

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

                              Step 9: Create a .sh file, name it sm64pc.sh, and put the following code in it:

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

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

                              Step 11: Play the game as you imagined it was in the 90

                              A 1 Reply Last reply Reply Quote 1
                              • A
                                AdamBeGood @Krakatoa
                                last edited by AdamBeGood

                                @Krakatoa Can you make it totally noob friendly and be clear when you say "Step 4: Build" please?

                                Also when you say "create a build folder", is that totally empty (in terms of files) aside from the sm64redrawn files? I assume it is but just want to be sure as Stuart2773 mentioned copying an existing build folder with files within it.

                                One other thing I've noticed - Step 4 is region-free, Step 8 is US.

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

                                  @AdamBeGood Sorry I forgot that step. fixed it now.

                                  A 1 Reply Last reply Reply Quote 1
                                  • A
                                    AdamBeGood @Krakatoa
                                    last edited by AdamBeGood

                                    @Krakatoa I deleted my previous directory, so I was starting from scratch. I am sure I followed this to the letter but mine has built again without the textures. I don't know what I've done wrong.

                                    The textures are still in the build/gfx/res folder, they are sitting there but for some reason they don't appear to be there when I play.

                                    It is right that the SM64Redrawn folders sit under build\gfx\res\actors and so on, isn't it? I think this is going to be where the problem lies. I moved the actors, levels and templates directories to sit under build\gfx\res. I amalgamated the contents of the gfx and alt versions of those directories also. Looking at what Stuart did, that seems quite different - and there isn't usually room for interpretation in these things.

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

                                      @AdamBeGood It could be an error on my end. I typed it up from memory after playing around with it this morning.

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

                                        @Krakatoa There is quite a bit of difference and I am very unsure where to put those files. Thank you very much for the guide though - I feel like I am near to it.

                                        Stuart2773 has those files in build/us_pc/res/gfx (and presumably build/us_pc/res/alt), while your guide has them in build/gfx/res.

                                        I am also slightly confused as to whether I copy in a previously made build folder, or if there should only be the SM64Redrawn files in there when I do the final build (I hope that makes sense as a sentence). The instructions suggest the build folder is blank at the point you copy in the SM64Redrawn files but I am pretty sure it shouldn't be.

                                        I guess I will try to do this again, I'll have another punt once work is finished.

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

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

                                          @Krakatoa There is quite a bit of difference and I am very unsure where to put those files. Thank you very much for the guide though - I feel like I am near to it.

                                          Stuart2773 has those files in build/us_pc/res/gfx (and presumably build/us_pc/res/alt), while your guide has them in build/gfx/res.

                                          I am also slightly confused as to whether I copy in a previously made build folder, or if there should only be the SM64Redrawn files in there when I do the final build (I hope that makes sense as a sentence). The instructions suggest the build folder is blank at the point you copy in the SM64Redrawn files but I am pretty sure it shouldn't be.

                                          I guess I will try to do this again, I'll have another punt once work is finished.

                                          The only reason i copied the existing build folder was that mine was missing when i complied. As for copying the files to the res folder i just followed the instructions that was in the readme.md file that came with the sm64redrawn.zip

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

                                            @Stuart2773 Yeah, I have done that though... I followed the steps given and then moved the gfx and alt folders to build/us_pc/res/gfx and build/us_pc/res alt. I have looked at the github documentation also.

                                            The step I don't understand is why the folder is removed with "rm -rf" before the SM64Redrawn files are put in to the folder.

                                            You say you were missing the build folder, but if it is being deleted even if it is created, then what is the purpose of you copying an existing build folder over...?

                                            God, I'm confused. Thanks for the help.

                                            KrakatoaK Stuart2773S 2 Replies 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.