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

    Restore Mame emulators to default keyboard settings

    Scheduled Pinned Locked Moved Help and Support
    11 Posts 2 Posters 14.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.
    • thedonT
      thedon
      last edited by

      Sorry to ask another dumb question - this time I've managed to delete the Select key mapping in both libretro and advmame whilst trying to setup my arcade panel.

      Amazingly I only deleted that critical button - joystick and other buttons all fine, but I can't now make any menu selections / changes within Mame. (Emulation Station controls are still fine).

      Is there any way to restore those to their default / new build state, without having to rebuild everything from scratch? I found some advice on a Mame site to just Delete the file "mame.cfg" inside folder "cfg" - but I can't find that folder.

      It's really not gone well tonight! any help would be appreciated.

      1 Reply Last reply Reply Quote 0
      • FloobF
        Floob
        last edited by

        Try removing this file
        /opt/retropie/configs/mame-libretro/cfg/default.cfg

        Please read the Docs before asking a new question.
        RetroPie Help Guides: https://goo.gl/3gcNsT

        thedonT 1 Reply Last reply Reply Quote 0
        • thedonT
          thedon @Floob
          last edited by

          @Floob Thanks Floob, I don't seem to have that file in there.

          I just have:

          content_history.lpl
          emulators.cfg
          retroarch.cfg

          the only one with todays date alongside it is content_history - but that is 0 (zero) bytes in size?

          1 Reply Last reply Reply Quote 0
          • FloobF
            Floob
            last edited by

            Sorry - I meant in here:
            /opt/retropie/configs/mame-mame4all/cfg

            Please read the Docs before asking a new question.
            RetroPie Help Guides: https://goo.gl/3gcNsT

            thedonT 1 Reply Last reply Reply Quote 0
            • thedonT
              thedon @Floob
              last edited by thedon

              @Floob thanks again, that folder is there, but empty.

              In the parent folder opt/retropie/configs/mame-mame4all - I do have:

              emulators.cfg (dated Mar 2)
              mame.cfg (dated Mar 2)
              retroarch.cfg (dated today)

              1 Reply Last reply Reply Quote 0
              • FloobF
                Floob
                last edited by

                Sorry again - I read your post too quickly.
                For libretro based emulators, your controller file is in /opt/retropie/configs/all/retroarch-joypads
                You'll see your controller file in there.

                Has anything changed in that file today?

                You can read your mame-libretro retroarch.cfg override with
                nano /opt/retropie/configs/mame-libretro/retroarch.cfg anything odd in there?

                Are you running mame-2003 ? If so, you can find its default in
                /home/pi/RetroPie/roms/mame-libretro/mame2003/cfg

                If you want to paste your configs, please use pastebin.com

                Please read the Docs before asking a new question.
                RetroPie Help Guides: https://goo.gl/3gcNsT

                thedonT 1 Reply Last reply Reply Quote 0
                • thedonT
                  thedon @Floob
                  last edited by

                  @Floob Yes, a couple of Changes:
                  ControlBlockGamepad.cfg
                  ControlBlockGamepad.cfg.bak

                  This seems to be the thing, as my arcade panel interface to the Pi is a ControlBlock - and within both files I can see button mappings. Oddly the "input_select_btn" = "10"

                  Is there something simple I can change this value too (do I just type "Enter" in the quotes instead of 10, to get me back able to edit the in-mame config menu?

                  1 Reply Last reply Reply Quote 0
                  • FloobF
                    Floob
                    last edited by

                    Did you try deleting the default.cfg in here?
                    /home/pi/RetroPie/roms/mame-libretro/mame2003/cfg

                    To rewrite the controller file you mention above, you can just go into Emulation Station and press Start to bring up the Configure Controller option and re-run that process - it should overwrite/update your controller file.

                    Please read the Docs before asking a new question.
                    RetroPie Help Guides: https://goo.gl/3gcNsT

                    thedonT 1 Reply Last reply Reply Quote 0
                    • thedonT
                      thedon @Floob
                      last edited by

                      @Floob Hmm maybe I'm getting lost here - in /home/pi/RetroPie/roms/mame-libretro/ I just see my game roms, the only folders are Artwork and Samples

                      Emulation Station seems to work fine - but are you saying redoing that setup will affect the separate button mappings in the Mame emulators?

                      FloobF 1 Reply Last reply Reply Quote 0
                      • FloobF
                        Floob @thedon
                        last edited by

                        @thedon If you run mame2003 it should create a folder in there called mame2003.
                        Are you running RetroPie 3.8 or a previous versions.

                        Re-running the controller setup in ES will just re-create the main controller files for RetroArch, not specific to MAME.
                        You could search for a default.cfg I guess sudo find / -name "default.cfg"

                        Please read the Docs before asking a new question.
                        RetroPie Help Guides: https://goo.gl/3gcNsT

                        thedonT 1 Reply Last reply Reply Quote 0
                        • thedonT
                          thedon @Floob
                          last edited by thedon

                          @Floob

                          Thanks Floob, I thought I was running version 3.8, but can't see it in any of the menu's / splash screen - where would I find it?

                          I ran the sudo find / -name "default.cfg" command, and there is one in home/pi/RetroPie/roms/config/default.cfg

                          I also tried the nano /opt/retropie/configs/mame-libretro/retroarch.cfg and tried to put a select button map in there. Whatever I've done (blindly) seems to have helped and I could restart and use select the libretro mame config menu, but not in advmame.

                          However, in my earlier attempts to update packages to try to fix the button mapping I've created two new problems -

                          • (update - fixed, and no longer an issue, I removed the static IP allocation and it works again!) my WiFi adapter doesn't seem to work anymore (edit: it see's the SSID, but doesn't connect - I'm checking my router config / static IP allocation in case the problem is in there...)

                          • the RetroPie menu in ES looks very different, and

                          • in the libretro Mame config interface (pressing Tab when game is running), half way through setting the buttons, it starts to takes ESCAPE to be a button choice, rather than to clear the existing button mapping (by the way your

                            was one of the most helpful when I first set this up with a little usb gamepad to test the concept before i built my cabinet - it's brilliant, thank you).

                          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.