Restore Mame emulators to default keyboard settings
-
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.
-
Try removing this file
/opt/retropie/configs/mame-libretro/cfg/default.cfg -
@Floob Thanks Floob, I don't seem to have that file in there.
I just have:
content_history.lpl
emulators.cfg
retroarch.cfgthe only one with todays date alongside it is content_history - but that is 0 (zero) bytes in size?
-
Sorry - I meant in here:
/opt/retropie/configs/mame-mame4all/cfg
-
@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) -
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
-
@Floob Yes, a couple of Changes:
ControlBlockGamepad.cfg
ControlBlockGamepad.cfg.bakThis 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?
-
Did you try deleting the default.cfg in here?
/home/pi/RetroPie/roms/mame-libretro/mame2003/cfgTo 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.
-
@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?
-
@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 guesssudo find / -name "default.cfg"
-
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
-
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.