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

    lr-mame2003 nvram/dipswitch settings not being saved, can't exit game once it starts

    Scheduled Pinned Locked Moved Help and Support
    mame2003lr-mame2003
    17 Posts 6 Posters 2.4k 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.
    • markwkiddM
      markwkidd
      last edited by

      Can you try these steps:

      1. Update RetroPie-Setup
      2. Update mame2003 from source
      1 Reply Last reply Reply Quote 1
      • Y
        yonkiman
        last edited by

        Thanks Mark.

        1. Update RetroPie-Setup

        Done. That alone didn't do it.

        1. Update mame2003 from source

        Is there a script or instructions somewhere for that? I don't want to hack my way through it only to find I was using the wrong source or putting things in the wrong directories, etc.

        And I should have asked this initially: What is the default key (combination) to exit mame? Was thinking it was Esc, but maybe it's something I just haven't tried yet.

        Also I should mention I made all my files/directories writable in case it was a file permission issue. Didn't help.

        markwkiddM G 2 Replies Last reply Reply Quote 0
        • markwkiddM
          markwkidd @yonkiman
          last edited by markwkidd

          @yonkiman said in lr-mame2003 nvram/dipswitch settings not being saved, can't exit game once it starts:

          Thanks Mark.

          1. Update RetroPie-Setup

          Done. That alone didn't do it.

          1. Update mame2003 from source

          Is there a script or instructions somewhere for that? I don't want to hack my way through it only to find I was using the wrong source or putting things in the wrong directories, etc.

          And I should have asked this initially: What is the default key (combination) to exit mame? Was thinking it was Esc, but maybe it's something I just haven't tried yet.

          Also I should mention I made all my files/directories writable in case it was a file permission issue. Didn't help.

          I'm fairly knowledgeable about mame2003 but not so much about RetroPie. I would like to wait for someone with more knowledge about RetroPie to agree that compiling from source is a good idea before you do it for the first time. If you had said "sure I've done that a dozen times" that would be different :)

          About your other question: If you have a keyboard, press F1 to get to the RetroArch menu to exit.

          When I'm using mame2003 on my brother's arcade cabinet I exit the game via the RetroArch menu. I have a hotkey set up via RetroArch on my arcade controls to be -- I think, muscle memory is how I usually remember this -- to be Down + L1 + R1 + Y.

          I think the default hotkey in RetroPie is Select + X.

          1 Reply Last reply Reply Quote 1
          • G
            grant2258 Banned
            last edited by

            its the same deal for all emulators in retropie press start and select to exit unless you picked some other combo when setting your gamepad up

            1 Reply Last reply Reply Quote 1
            • G
              grant2258 Banned @yonkiman
              last edited by

              @yonkiman said in lr-mame2003 nvram/dipswitch settings not being saved, can't exit game once it starts:

              Thanks Mark.

              1. Update RetroPie-Setup

              Done. That alone didn't do it.

              1. Update mame2003 from source

              Is there a script or instructions somewhere for that? I don't want to hack my way through it only to find I was using the wrong source or putting things in the wrong directories, etc.

              And I should have asked this initially: What is the default key (combination) to exit mame? Was thinking it was Esc, but maybe it's something I just haven't tried yet.

              Also I should mention I made all my files/directories writable in case it was a file permission issue. Didn't help.

              updating mame from source is easy got to your retropie menu

              then select retropie setup

              then select manage packages

              then select manage main packages

              then choose lr-mame2003

              then choose update from source

              1 Reply Last reply Reply Quote 1
              • Y
                yonkiman
                last edited by

                Thanks everyone. I followed Grant's instructions and rebuilt lr-mame2003, but everything's working the same.

                A little more info in case it helps. I'm not using a gamepad - I've mapped everything in EmulationStation to my PC keyboard. I've tried pressing the mapped keys for "Start + Select" and "Select + X" (and a lot of other combinations), but the game running on lr-mame2003 just keeps running.

                Ultimately the system is destined for an old Galaga Cocktail machine. I'm so close! I've got the joysticks and buttons wired-up and working (using pikeyd). I just can't exit a game (or store DIP settings, etc.) once it starts.

                1 Reply Last reply Reply Quote 0
                • G
                  grant2258 Banned
                  last edited by

                  youll need to ask the retropie gurus how to do this on a keyboard. You need to exit mame properly to save your info

                  1 Reply Last reply Reply Quote 1
                  • dankcushionsD
                    dankcushions Global Moderator
                    last edited by

                    your hotkey is separately configured from your select key - it's the last entry in initial contoller setup. you need to press hotkey + start to exit a game

                    Y 1 Reply Last reply Reply Quote 1
                    • Y
                      yonkiman @dankcushions
                      last edited by

                      @dankcushions said in lr-mame2003 nvram/dipswitch settings not being saved, can't exit game once it starts:

                      your hotkey is separately configured from your select key - it's the last entry in initial contoller setup. you need to press hotkey + start to exit a game

                      Ah, that helps - I'd forgotten what the hotkey was assigned to. OK, so hotkey + X is taking me to a menu...progress!

                      Here's a more fundamental question I've had for a while. EmulationStation has its key assignments, but MAME has different key assignments. How does MAME know to exit when I use a key combination from ES? It seems like ES has to be sending MAME a signal to shutdown - is that signal not a key or key combination?

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

                        @yonkiman said in lr-mame2003 nvram/dipswitch settings not being saved, can't exit game once it starts:

                        It seems like ES has to be sending MAME a signal to shutdown - is that signal not a key or key combination?

                        No, Emulationstation goes into the background once the emulator (RetroArch or otherwise) gets started, it's entirely up to the emulator to process the user input and exit by itself.

                        Y 1 Reply Last reply Reply Quote 1
                        • Y
                          yonkiman @mitu
                          last edited by

                          @mitu said in lr-mame2003 nvram/dipswitch settings not being saved, can't exit game once it starts:

                          No, Emulationstation goes into the background once the emulator (RetroArch or otherwise) gets started, it's entirely up to the emulator to process the user input and exit by itself.

                          That's what I originally thought. So why can't I find/change/set the key that makes the emulator (lr-make2003 in this case) exit?

                          dankcushionsD 1 Reply Last reply Reply Quote 0
                          • dankcushionsD
                            dankcushions Global Moderator @yonkiman
                            last edited by

                            @yonkiman it’s hotkey + start to exit. it sounds like your hotkey is now working, so now i presume you just have to make sure start is bound correctly.

                            1 Reply Last reply Reply Quote 1
                            • stoney66S
                              stoney66
                              last edited by

                              @yonkiman It's in your main retroarch.cfg file located in /opt/retropie/configs/all

                              There will be two settings in that config file, one for the start and one for hotkey. In my case I use num1 and num5 keys.

                              pi@retropie:/opt/retropie/configs/all $ more retroarch.cfg | grep input_player1_start
                              input_player1_start = "num1"

                              pi@retropie:/opt/retropie/configs/all $ more retroarch.cfg | grep enable_hotkey
                              input_enable_hotkey = "num5"

                              Y 1 Reply Last reply Reply Quote 1
                              • Y
                                yonkiman @stoney66
                                last edited by

                                @stoney66 @dankcushions Thank you both! Can definitely exit now, and it does remember its settings, so I've basically got it working. But the crux of why I was confused is this:

                                How does lr-mame know it's time to exit when I press a key combination defined in EmulationStation?

                                dankcushionsD 1 Reply Last reply Reply Quote 0
                                • dankcushionsD
                                  dankcushions Global Moderator @yonkiman
                                  last edited by

                                  @yonkiman the controller setup process in emulation station basically generates a bunch of config files for various things in retropie, such as: emulationstation, retroarch (the emulator 'front end' for almost every default emulator, including lr-mame2003), and some 'standalone' emulators such as mupen64plus.

                                  Y 1 Reply Last reply Reply Quote 1
                                  • Y
                                    yonkiman @dankcushions
                                    last edited by

                                    @dankcushions Got it. 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.