2024-01-18 17:27:02 +00:00
# MAME - General Guide
2024-01-06 08:25:02 +00:00
2024-01-18 17:27:02 +00:00
< img src = "../../../wiki_images/logos/mame-logo.png" width = "180" >
2024-01-06 08:25:02 +00:00
## Where to put the games
Games that you want to run with MAME should be put under the `retrodeck/roms/mame/` directory.
2024-05-04 17:07:41 +00:00
2024-07-20 08:28:14 +00:00
## Enable cheats
2024-07-20 08:44:11 +00:00
RetroDECK already ships the cheat file from [Pugsy's Cheats ](https://www.mamecheat.co.uk/ ) as part of the cheat folder.
2024-07-20 08:28:14 +00:00
To enable cheats open MAME via the Configurator (we plan to make this easier later).
In the MAME interface go to -> `General Settings` -> `Miscellaneous Options` -> `Cheats` and toggle it to `On` -> go back and click `Save Settings` and leave MAME.
When you launch a game open the `Quick Menu` and go to the `Cheat` menu to toggle cheats for that game.
2024-07-20 08:44:11 +00:00
## Applying effects such as Shaders and Scanlines
First read up on BGFX effects on [BGFX MAMEdev ](https://docs.mamedev.org/advanced/bgfx.html )
We
1. Go to `~/.var/app/net.retrodeck.retrodeck/config/mame/ini`
2. Open the `mame.ini` with your text editor of choice.
3. Find `OSD VIDEO OPTIONS` and edit the value: `video` from `opengl` to `bgfx` .
4. Find `GFX POST-PROCESSING OPTIONS` and edit the value: `bgfx_screen_chains` fron `nothing` to `what ever value you want` from the BGFX link. Example value from MAME: `bgfx_screen_chains` : `crt-geom` ,`pillarbox_left_horizontal`,`pillarbox_right_horizontal`.
2024-05-04 17:07:41 +00:00
## MAME Standalone Folders
MAME Standalone comes with several folders for various assets and files.
2024-05-04 18:05:21 +00:00
### Configuration Folders
2024-05-04 17:07:41 +00:00
**CFG**
`~/.var/app/net.retrodeck.retrodeck/config/mame/cfg`
2024-07-20 09:59:02 +00:00
This is where the `default.cfg` is and also any custom game configs are saved.
2024-05-04 17:07:41 +00:00
**INI**
`~/.var/app/net.retrodeck.retrodeck/config/mame/ini`
2024-07-20 09:59:02 +00:00
This is where `ui.ini` and `mame.ini` files are located. But they should not be touched unless you know what you are doing.
You can always reset via the configurator if you mess things up.
2024-05-04 17:07:41 +00:00
**INP**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/config/mame/inp`
### Data Folders
**Cheat**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/cheat`
**DATS**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/dats`
**Folders**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/folders`
**Hash**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/hash`
**Plugin-Data**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/plugin-data`
**Plugins**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/plugins`
### Asset Folders
**Artwork**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/artwork`
**Artwork-preview**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/artwork-preview`
**Bosses**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/bosses`
**Cabinets**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/cabinets`
**Comments**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/comments`
**Covers**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/covers`
**Cpanel**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/cpanel`
**Crosshair**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/crosshair`
**Ends**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/ends`
**Flyers**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/flyers`
**Fonts**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/fonts`
**Game Over**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/gameover`
**Howto**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/howto`
**Icons**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/icons`
**Language**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/language`
**Logo**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/logo`
**Marquees**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/marquees`
**PCB**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/pcb`
**Samples**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/samples`
**Scores**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/scores`
**Select**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/select`
**Share**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/share`
**Software**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/software`
**Titles**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/titles`
**UI**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/ui`
**Versus**
2024-05-04 18:05:21 +00:00
2024-05-04 17:07:41 +00:00
`~/.var/app/net.retrodeck.retrodeck/data/mame/assets/versus`