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

                        @AdamBeGood The more I think about you could probably skip steps 4 and 5 becuase its being built in step 8

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

                          @AdamBeGood

                          thats where i ran into problems with the rm -rf build thats why i didnt include it when i finally got mine to build

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

                            @Stuart2773 @Krakatoa I ended up trying with both /build/us_pc/res and /build/res at the same time to see if either worked...

                            Judging from the speed it runs now, I think it has...! It's unplayably slow though, did people find that?

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

                              @Stuart2773 @Krakatoa I ended up trying with both /build/us_pc/res and /build/res at the same time to see if either worked...

                              Judging from the speed it runs now, I think it has...! It's unplayably slow though, did people find that?

                              Yes it is slow compared to the non textured version. But at times the game does play too fast with the textures installed !!!!

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

                                @Stuart2773 The speed issues might be fixed by the below.

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

                                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.

                                I think I will stick with the normal version then, unless I've done something wrong. Mine is really jerky as hell outside the castle at the start. It is fine inside the castle, but that doesn't really matter. I thought about finding the config to lower the resolution but that doesn't seem a good solution as I do think the non-patched version looks pretty good as is.

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

                                  Has anyone figured out how to launch the custom menu yet?

                                  Figured it out press shift on the keyboard in the pause menu.

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

                                    For some reason, one mod pack is running into problems. Gonna see what it is.

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

                                      Out of interest, have people got other texture packs and model packs working on Pi with smooth performance? I was thinking about trying Hypatia with the SGI models, but if it is going to be slow then I'll stick with the normal games.

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

                                        @AdamBeGood I tried the SGI and it was still laggy. Currently I am running SGI and sm64redrawn. It looks amazing and runs stupid fast at times, then other times it runs like crap.

                                        I might try the patch to see if that helps.

                                        S A 2 Replies Last reply Reply Quote 0
                                        • S
                                          skj @Krakatoa
                                          last edited by skj

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

                                          @AdamBeGood I tried the SGI and it was still laggy. Currently I am running SGI and sm64redrawn. It looks amazing and runs stupid fast at times, then other times it runs like crap.

                                          I might try the patch to see if that helps.

                                          Could you write a noobs guide step by step on how to install the game and the SGI pack too?

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

                                            @skj It'll basically be the same as the previous guide but with the additional files, wouldn't it?

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