# MAME

Multi-Arcade Emulator - Release year: 1997

{% embed url="<https://en.wikipedia.org/wiki/MAME>" %}

## Information

<table data-header-hidden><thead><tr><th width="224"></th><th></th></tr></thead><tbody><tr><td><strong>Emulators</strong></td><td><ul><li>Libretro: mame</li><li>Libretro: mame2016</li><li>Libretro: mame2010</li><li>Libretro: mame2003_plus</li><li>Libretro: mame2003</li><li>Libretro: mame2003_midway</li><li>Libretro: mame2000</li><li>mame64</li><li>GroovyMame</li></ul></td></tr><tr><td><strong>File folder</strong></td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f4c2">📂</span> roms \ <span data-gb-custom-inline data-tag="emoji" data-code="1f4c2">📂</span> mame</td></tr><tr><td><strong>File extension</strong></td><td>.zip .7z</td></tr></tbody></table>

## System Features

<table><thead><tr><th width="245">Retroachievements</th><th width="200">Netplay</th><th>Controller autoconfig</th></tr></thead><tbody><tr><td>NO</td><td>NO</td><td>lr-mame: YES<br>Mame64: YES<br>GroovyMame: YES</td></tr></tbody></table>

## Bios Information

Depending on the [romset type](https://wiki.retrobat.org/arcade-guide#romsets), a BIOS can be required or not to play some games:

* **Full non-merged**: the BIOS is included in the ROM file, so no BIOS file will be needed
* **Non-merged**: same as "Full non-merged" but BIOS that are shared by multiple games are placed outside of the individual ROMs
* **Split**: BIOS files are required
* **Merged**: BIOS files (as well as multiple versions of the game) are placed inside the ROM, no separate BIOS is required

{% hint style="info" %}
Refer to the [Arcade page for more information about ROM set types](https://wiki.retrobat.org/arcade-guide#rom-set-types).
{% endhint %}

**Here is a non-exhaustive list of MAME bios files (based on rom set 0.255):**

{% file src="<https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2F4t8SiqKqtlcxjlWjqC1V%2FMAME%200.255%20ROMs%20(bios-devices).xml?alt=media&token=1b2aa581-53ff-41f3-94a8-de00ec164c9b>" %}

BIOS files must be placed at the root of the `\bios` folder of your RetroBat installation.

## MAME folders

**Rompath**: \bios & \roms\mame

**Samples**: \bios\mame\samples

**Cfg**: \saves\mame\cfg

**Ini**: \bios\mame\ini

**Hash**: \bios\mame\hash

**Artworks**: \saves\mame\artwork

**Cheats**: \cheats\mame

**Ctrl**: \saves\mame\ctrlr

{% hint style="info" %}
RetroBat is using the folder \bios\mame\artwork to store artworks created to display bezels. Artworks stored there will be overriden.
{% endhint %}

## Controls

### Controller mapping

| Retrobat Button                                                                                                                                                                                                    | Arcade Key                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| START                                                                                                                                                                                                              | START                                                                                 |
| SELECT                                                                                                                                                                                                             | COIN                                                                                  |
| Left analog stick                                                                                                                                                                                                  | <p>Left Joystick<br>Paddle<br>Positional device<br>Dial<br>Trackball<br>Ad\_Stick</p> |
| Right analog stick                                                                                                                                                                                                 | Right Joystick                                                                        |
| D-PAD                                                                                                                                                                                                              | Directions                                                                            |
| ![](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2F5yYVjQu41LdiMVCXpyNa%2Fimage.png?alt=media\&token=e43f5c0f-2c53-49cc-9271-2385216d89df) | 3                                                                                     |
| ![](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FW8q8wzu0yW9Htt5h4zEA%2Fimage.png?alt=media\&token=a4ae3ad3-3a80-4c28-8b15-92a1b5a80da7) | 1                                                                                     |
| ![](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FQlIryQa7tR2pBTWHhMXR%2Fimage.png?alt=media\&token=e1940a32-2494-4e92-a8b1-df9a722ed4f8) | 2                                                                                     |
| ![](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FxHRhyw00NGOZ8cEPrQdp%2Fimage.png?alt=media\&token=d6027ace-7176-4b82-b702-e3b2b65d7cd4) | 4                                                                                     |
| L1                                                                                                                                                                                                                 | 5                                                                                     |
| R1                                                                                                                                                                                                                 | 6                                                                                     |
| L2                                                                                                                                                                                                                 | Pedal 2 / 7                                                                           |
| R2                                                                                                                                                                                                                 | Pedal 1 / 8                                                                           |
| L3                                                                                                                                                                                                                 | Test                                                                                  |
| R3                                                                                                                                                                                                                 | Service                                                                               |

{% hint style="info" %}
Follow this guide to perform specific controller mapping for MAME64 ([refer to this guide](https://wiki.retrobat.org/controllers/specific_mapping/mame64-controller-mapping)).
{% endhint %}

## Specific system information

### ROM set versions&#x20;

Refer to the [Arcade Guide rom set section](https://wiki.retrobat.org/arcade-guide#available-arcade-emulators-in-retrobat).

### CHD or IMG files

Refer to the [Arcade Guide section](https://wiki.retrobat.org/arcade-guide#chd-or-img-files) about CHD.

### **Sample files**

Refer to the [Arcade Guide "sample file" section](https://wiki.retrobat.org/arcade-guide#samples).

### Service Menu

Press L3 and R3 buttons to access to service menu.\
You can also use 0 and 9 on the keyboard.

## Known issues & fixes

### I only get a black screen when running games with libretro:mame core

Libretro:Mame has a limitation in the length of the paths it uses when launching a game through command lines. This limitation does not exist with standalone Mame.

In order to be able to fix this issue, ensure that your RetroBat folder path does is not installed in a path that is too long.

For example the path `C:\Emulation\Multi Emulators\FrontEnd\All-in-one\This is top\RetroBat version 7.5.3` is too long and will result in the issue.

### Using a CRT screen: GroovyMAME specifics

When using a CRT screen, it is possible to use GroovyMAME to automatically switch to a specific screen profile that matches the screen resolution and refresh rate.

The RetroBat team has created a list of profiles available in the advanced settings > video section:

<div align="left"><figure><img src="https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FqAKemPNLdiTXoMYDJMuA%2Fimage.png?alt=media&#x26;token=c8cafd9b-a520-46fe-8ff2-2301a028c5dd" alt=""><figcaption></figcaption></figure></div>
