MAME Tips and Tricks¶
- MAME Tips and Tricks
- Maintaining ROM Versions
- How to Configure Multiplayer
- How to Determine if a ROM Requires BIOS
- How to Determine if a ROM Requires a CHD File
- How to Configure Controls on a Per Game Basis
- How to Add Custom Bezels
- How to Enable Shaders/Scanlines in MAME (Standalone)
- How to Configure MAME to Work With EmulationStation-DE
- How to Roll Back MAME to an Older Version
- How to Configure Language Settings
- How to Use Cheats
- How to Configure Light Gun Games
Maintaining ROM Versions¶
Ideally use ROMs that are the same version as MAME's version. MAME often releases improved versions of ROMs to fix issues. Issues are less of a concern with the most popular classics because most of those haven't changed in years. But to avoid having to track multiple different versions of your ROMs, most people just keep their ROM sets updated as the emulator updates.
To understand how MAME works, look up the difference between merged and split ROM sets, and learn what a sample and a chd are and how they're used in conjunction with ROMs to deliver a playable game.
Reference image: 
Tip
Refer to https://docs.mamedev.org/usingmame/aboutromsets.html, for additional information.
How to Configure Multiplayer¶
Multiplayer for MAME is configured out of the box, no additional configuration is needed.
You may need to re-arrange the controller order in Game Mode for your controllers to function as expected. See How to Re-Arrange the Controller Order for more information.
How to Determine if a ROM Requires BIOS¶
Some ROMs for MAME may require BIOS to run. For this section, these ROMs will be split into either System or Software ROMs. To delineate between the two simply, System ROMs are typically arcade ROMs and Software ROMs are usually computers or video game consoles.
How to Determine if a System ROM Requires BIOS¶
- In a folder of your choice, right click anywhere in the folder, and click
Open Terminal here - Enter:
flatpak run org.mamedev.MAME -listxml > mame.xml- This command will create a
mame.xmlfile in the folder you chose in Step 1 - Right click
mame.xml, clickOpen with Kateor a text editor of your choice - Search the file (either using
Ctrl+For by clickingEdit-->Find) and type inisbios - You will see a line that generally looks like the following:
<machine name="MACHINENAME" sourcefile="PATH/FILENAME" isbios="yes">- For example
<machine name="neogeo" sourcefile="neogeo/neogeo.cpp" isbios="yes">
- Let's break this line down, using
neogeoas an example: <machine name="neogeo" sourcefile="neogeo/neogeo.cpp" isbios="yes">isbios="yes"means BIOS are required for the Neo-Geo MV-6F- The
machine_name=gives you the name of the BIOS file. BIOS files forSystemROMs always have a.zipfile extension. Forneogeo, the bios will beneogeo.zip - The list of files below the
manufacturertypically comprise the files in a mergedneogeo.zipfile. Using a mergedneogeo.zipmay take up extra space but guarantees you have the BIOS necessary to play any Neo-Geo MV-6F ROM
- Place your BIOS in
Emulation/biosorEmulation/roms/arcade(the latter is required if you are playing through EmulationStation-DE)
Recreating this file whenever MAME updates will get you the latest list of which System ROMs require BIOS.
How to Determine if a Software ROM Requires BIOS¶
- Open http://adb.arcadeitalia.net/default.php
- Search for the name of the console or computer in the search box, respecting punctuation and hyphenation when possible
- On the respective console or computer's page, scroll down to
Required Files, and clickSHOW MAME REQUIRED FILES 
- Place the file(s) in the list in
Emulation/biosor the matching ROM folder (the latter is required if you are playing through EmulationStation-DE) - For example, if you are playing
Game.comthrough EmulationStation-DE, placegamecom.zipinEmulation/roms/gamecom
How to View Compatibility for Software ROMs¶
- Open http://adb.arcadeitalia.net/default.php
- Click
SOFTWAREon the left side - Search for your console or computer in the
SYSTEMbox and clickSearch - For example, Game.com: http://adb.arcadeitalia.net/?search=mess&machine_name=gamecom%3B
- You will see a full list of the ROMs for that respective console or computer. The circle color in the top right of each box is the game's compatibility
- Green: Supported
- Yellow: Imperfect
- Some pages may explain the specific issues affecting the game
- Red: Not Supported
How to Determine if a ROM Requires a CHD File¶
Game ROMs for MAME are primarily .zip files. Some of these games require additional files to run. These additional files are primarily .chd files.
To determine if your ROM requires a .chd file:
- In Desktop Mode, open Konsole
- Enter:
flatpak run org.mamedev.MAME -listroms ROMSHORTNAME- Typically, the short name of the ROM is the file name. For example, the file name for
Street Fighter III 3rd Strikeissfiii3.zipand the short name issfiii3 - You can also use http://adb.arcadeitalia.net/ to locate a MAME ROM's short name
- Typically, the short name of the ROM is the file name. For example, the file name for
- You will get an output similar to below:
ROMs required for driver "sfiii3". Name Size Checksum sfiii3_euro.29f400.u2 524288 CRC(30bbf293) SHA1(f094c2eeaf4f6709060197aca371a4532346bf78) cap-33s-2 SHA1(5a090956fc6d68e496ac42854199059898f2fe16) - The line without a file size or a CRC is the
.chdfile required. The line with a file size and a CRC is the file located within the zip file - For example,
sfiii3_euro.29f400.u2is the file located insfiii3.zipandcap-33s-2is the.chdfile required to runsfiii3.zip - Create a subfolder matching the shortname in
Emulation/roms/arcadeand place the.chdfile in the subfolder - For example, with
sfiii3, create asfiii3folder inEmulation/roms/arcadeand placecap-33s-2.chdinEmulation/roms/arcade/sfiii3 - Place
sfiii3.zipdirectly inEmulation/roms/arcade
How to Configure Controls on a Per Game Basis¶
- While in game, press
STEAMandDPad Down - Select
Input Settings - Select
Input Settings (this system) - Configure controls
- To ensure your controls are saved, press
STEAMandDPad Leftto exit out of the game - If you press
STEAMand use theExit gamebutton, your controls will not be saved - Your controls will be saved as a file to
home/deck/.mame/cfg/GAMESHORTNAME.cfg - You may also share this configuration file with others
How to Add Custom Bezels¶
- Open
Emulation/storage/mame - Copy bezel files, in .zip format, into this folder, named the same as the ROM.
- Done.
Tip
Use the Bezel Project to locate bezels for your MAME ROMs: https://github.com/thebezelproject/BezelProject-Windows
How to Enable Shaders/Scanlines in MAME (Standalone)¶
- In Desktop Mode, open
/home/deck/.mame/mame.ini ~/.mameis a hidden folder by default. In Dolphin (file manager), click the hamburger menu in the top right, clickShow Hidden Filesto see these folders.- Under the
OSD VIDEO OPTIONSsection, setvideotobgfx - Under the
BGFX POST-PROCESSING OPTIONSsection, setbgfx_screen_chainsto the shader of your choice - For example:
crt-geom-deluxe - Save your changes to the file
Tip
Other shader values can be found here: https://docs.mamedev.org/advanced/bgfx.html
How to Configure MAME to Work With EmulationStation-DE¶
EmuDeck installs both MAME (Standalone, installed as a flatpak), and RetroArch's MAME core.
In order to use MAME (Standalone), make sure your ROMs are in Emulation/roms/arcade.
In order to use MAME (Standalone) for EmulationStation-DE, make sure you are selecting MAME [Standalone] in the Alternative Emulators menu.
Tutorial
- In EmulationStation-DE, press the
Startbutton - Scroll down and select
Other Settings - Select
Alternative Emulators - Scroll down to
Arcadeand selectMAME [Standalone]
How to Roll Back MAME to an Older Version¶
If you do not have access to a mouse and keyboard for the below section, use L2 to right click and R2 to left click. Alternatively, remote into your Steam Deck using one of the methods found in the FAQ, How do I remotely control my Steam Deck?.
- In Desktop Mode, open
Konsole - To see a list of prior versions of the emulator, type:
flatpak remote-info --log flathub org.mamedev.MAME- If Konsole prompts you to select
systemoruser, enter2to selectuser - Konsole will list a list of previous versions for the flatpak. The important line for each version is the
Commit:line. TheCommit:line will have a long accompanying alphanumeric string (the “commit” code). Copy the string for the version you want to downgrade to. - Using Citra as an example:
- To downgrade to the version you want:
flatpak update --commit=put_commit_code_here org.mamedev.MAME- Replace
put_commit_code_herewith the actual code you located in Step 2.- Using Citra as an example:

If the above steps did not work and you are getting an error message along the lines of Flatpak not installed, your Flatpak is likely installed at the system level instead. Select one of the below solutions:
Solution 1: Open the EmuDeck application, click the Manage Emulators page, select the emulator in question, and click Reinstall / Update.
Solution 2: Add sudo in front of the commands written in Step 2 and Step 5. In Step 2, write sudo flatpak remote-info --log flathub org.mamedev.MAME and in Step 5, write sudo flatpak update --commit=put_commit_code_here org.mamedev.MAME.
How to Configure Language Settings¶
UI¶
- In Desktop Mode, open MAME
- At the bottom, click
General Settings - Click
Customize UI - Click
Language, select your preferred language in the drop-down menu
How to Use Cheats¶
- Download the latest cheat package from https://www.mamecheat.co.uk/. Click the
XML/JSON Cheat Collection for MAME 0.###at the top to download the latest cheat package ###matches the MAME version of the cheat package which may vary depending on when you visit the site- Extract
cheat###.zipto a folder of your choice ###matches the MAME version of the cheat package which may vary depending on when you visit the site- Move
cheat.7zfrom the extracted folder toEmulation/storage/mame/cheat - Open MAME without a game loaded, click
General Settings,Miscellaneous Options, toggleCheatson, back out of this menu, clickSave Settings - While in game, press
Select+R3to open the Quick Menu, clickCheat Options, enable cheat(s)
How to Configure Light Gun Games¶
- In Game Mode, single click the game you would like to change the Steam Input Profile for, and click the
Controller Iconon the right of the screen. Click the layout (whichever name it is currently set to) at the top - Click the
Templatestab - Select the
EmuDeck - Steam Deck Light Gun Controlsprofile - Light gun controls will now be configured for this game
{{ read_csv('emudeck-steam-deck-light-gun-controls.csv') }}
