RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    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

    [Solved] mupen64plus crashes back to EmulationStation (x86 system)

    Scheduled Pinned Locked Moved Help and Support
    n64mupen64plusubuntu 18.04x86
    12 Posts 2 Posters 3.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.
    • P
      Panja
      last edited by Panja

      I'm not using zipped files, I unzipped them.
      These are verified roms...
      z64 should be compatible as per wiki.

      I can try .n64 when I get back to my machine.
      But I don't think that's the issue to be honest.

      1 Reply Last reply Reply Quote 0
      • P
        Panja
        last edited by

        I don't want to sound rude but I really think the z64 file is not the problem.
        As far as I know z64 is supported with all emulators and is the prefered extension for N64 games.

        No-Intro and other rom rips are all Big Endian rips:
        Little Endian (.n64)
        Byte Swapped (.v64)
        Big Endian (.z64)

        So the error and crash should be coming from something different.

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @Panja
          last edited by mitu

          @Panja said in mupen64plus crashes back to EmulationStation (x86 system):

          I don't want to sound rude but I really think the z64 file is not the problem.

          You're right, for some reason I thought .z64 is a zipped .n64. I tested initially with the .n64 ROM version and didn't get an errors. But I also got a .z64 - validated it against the No-Intro .dat file - and I get no errors also. The game starts the same message shows in the log file for both ROMs.

          Executing: /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh mupen64plus-video-glide64mk2 "/home/pi/RetroPie/roms/n64/Super Mario 64 (U) [!].z64"
           __  __                         __   _  _   ____  _
          |  \/  |_   _ _ __   ___ _ __  / /_ | || | |  _ \| |_   _ ___
          | |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __|
          | |  | | |_| | |_) |  __/ | | | (_) |__   _|  __/| | |_| \__ \
          |_|  |_|\__,_| .__/ \___|_| |_|\___/   |_| |_|   |_|\__,_|___/
                       |_|         https://mupen64plus.org/
          Mupen64Plus Console User-Interface Version 2.5.9
          
          UI-Console: attached to core library 'Mupen64Plus Core' version 2.5.9
          UI-Console:             Includes support for Dynamic Recompiler.
          Core: Using full mem base
          Core: Goodname: Super Mario 64 (U) [!]
          Core: Name: SUPER MARIO 64
          Core: MD5: 20B854B239203BAF6C961B850A4A51A2
          Core: CRC: 635A2BFF 8B022326
          Core: Imagetype: .z64 (native)
          Core: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
          Core: Version: 1444
          Core: Manufacturer: Nintendo
          Core: Country: USA
          ....
          

          Do all your N64 Roms behave similarly or it's just one (Super Mario 64) ?

          1 Reply Last reply Reply Quote 0
          • P
            Panja
            last edited by

            Thanks for checking!
            It's all roms I've tried (around 6).

            1 Reply Last reply Reply Quote 0
            • P
              Panja
              last edited by

              Indeed it's the problem I'm using ALSA instead of Pulse.
              Edited /etc/pulse/client.conf and changed back to ;autospawn = yes
              Now mupen64plus runs.

              The thing is I need to disable Pulse on my machine because it's not working properly.
              After a while playing and changing emulators the sounds begins to lag behind.
              Running only ALSA fixed this problem for me.

              Is there a way I can run mupen64plus with Alsa instead of Pulse?

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by

                I can see 2 options you can try:

                • Make PulseAudio work - try to make it run realtime and see if that makes a difference: https://medium.com/@gamunu/enable-high-quality-audio-on-linux-6f16f3fe7e1f

                • Switch to ALSA in Mupen - modify the /opt/retropie/configs/emulators/mupen64plus/bin/mupen64plus.sh startup script and set SDL_AUDIOPLUGIN=alsa instead of pulse around line 447

                P 1 Reply Last reply Reply Quote 1
                • P
                  Panja @mitu
                  last edited by

                  @mitu

                  I’ve tried to make it work and did not succeed.
                  I can give that link a try though.

                  The second option is maybe better for me.
                  Though when changing the file will it be overwritten again if I do a RetroPie update?

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @Panja
                    last edited by mitu

                    @Panja said in mupen64plus crashes back to EmulationStation (x86 system):

                    Though when changing the file will it be overwritten again if I do a RetroPie update?

                    Yes, when mupen64plus will be updated, the file will be overwritten.

                    P 1 Reply Last reply Reply Quote 1
                    • P
                      Panja @mitu
                      last edited by

                      @mitu

                      Ok. I’ll have to make a script than to change it to Alsa.

                      But I’ll give Pulse another try with the link provided first.

                      Thanks!

                      1 Reply Last reply Reply Quote 0
                      • P
                        Panja
                        last edited by Panja

                        @mitu

                        Quick update.
                        Changing line 447 in /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh fixed my problem. I have changed pulse to alsa.

                        Further more I've created a simple script, named n64audio to run at start/boot.
                        In this script:

                        #!/bin/sh
                        
                        sed -i 's/pulse/alsa/g' /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh
                        

                        Made the script executable sudo chmod +x n64audio
                        After that sudo crontab -e
                        And added the line @reboot /home/retropie/n64audio

                        Now after every reboot pulse will be changed to alsa in the file /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh , if the line pulse exists.

                        So if I update RetroPie and mupen64plus gets updated and overwrites my file (and put pulse back in to play) it will be overwritten on the next reboot.

                        Again, thanks for all your help!

                        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.