Wintermute0110.github.io

AEL, AML, ADL documentation and emulation guides.

View on GitHub

This page describes how to configure AML with all the features and options available. Depending on the features you need, you may choose which of the optional features you want although it is recommended that you setup everything.

Table of Contents

This is the recommended MAME directory layout. You have to create all the directories yourself, AML does not create any directory automatically.

Name Directory Notes
ROM path /home/kodi/MAME-ROMs/ Place MAME arcade ROM, BIOS and device ZIP files here.
Asset path /home/kodi/MAME-assets/ (Optional) Place MAME and Software Lists assets here.
DAT/INI path /home/kodi/MAME-DATs/ (Optional) Place DAT/INI files here.
CHD path /home/kodi/MAME-CHDs/ (Optional) Place the CHDs here
Samples path /home/kodi/MAME-samples/ (Optional) MAME sample ZIP files.
SL hash path   (Optional) Software Lists XML files.
SL ROM path /home/kodi/AML-SL-ROMs/ (Optional) Place the Software Lists ROMs here
SL CHD path /home/kodi/AML-SL-CHDs/ (Optional) Place the Software Lists CHDs here

Remember to update your mame.ini configuration file to point to the correct directories where you have placed your ROM ZIP and CHD files. Otherwise MAME won’t work at all.

If MAME the MAME runtime files are installed in /home/kodi/bin-mame/ then you will need to modify your mame.ini like in this example:

#
# CORE SEARCH PATH OPTIONS
#
homepath        $HOME/.mame
rompath         /home/kodi/MAME-ROMs;/home/kodi/MAME-CHDs;/home/kodi/MAME-SL-ROMs;/home/kodi/MAME-SL-CHDs
hashpath        /home/kodi/bin-mame/hash
samplepath      /home/kodi/bin-mame/samples;/home/kodi/MAME-samples
artpath         /home/kodi/bin-mame/artwork;/home/kodi/MAME-assets/artwork
ctrlrpath       /home/kodi/bin-mame/ctrlr
inipath         $HOME/.mame
fontpath        /home/kodi/bin-mame/fonts
cheatpath       /home/kodi/bin-mame/cheats
crosshairpath   /home/kodi/bin-mame/crosshairs
pluginspath     /home/kodi/bin-mame/plugins
languagepath    /home/kodi/bin-mame/language
swpath          software

Note that the rompath includes all directories that contain game files.

Notes for Windows users

The instructions in this guide focus on Linux because it is the operating system used for development and testing of AML. Windows users just need to adapt the Linux paths and filenames to a Windows format configure their setup. For example, let’s assume that you install MAME version 0.207 on E:\MAME 0.207\ and you want to place all MAME files on unit E:. Then:

Linux path Windows path
/home/kodi/MAME-ROMs E:\MAME-ROMs\

Setting up MAME ROM ZIPs

Place your compressed ROMs ZIP files in the /home/kodi/MAME-ROMs/ directory.

Setting up MAME Samples (Optional)

Place the compressed MAME Samples into the /home/kodi/MAME-samples/ directory.

You can download a complete set of MAME Samples from Progretto SNAPS.

Setting up MAME CHDs (Optional)

Place you CHD files in the /home/kodi/MAME-CHDs/ directory.

The CHDs of a machine must be in a subdirectory with the same name as the machine. For example, the machine sfiii Street Fighter III: New Generation (Euro 970204) has a CHD named cap-sf3-3. You must place this CHD in the path /home/kodi/AML-CHDs/sfiii/cap-sf3-3.chd.

Note that many CHD collections already follow this convention so you only have to copy all the files to /home/kodi/MAME-CHDs/.

Setting up MAME INI files (Optional)

All INI files are optional and enable additional MAME filters.

After downloading and decompressing the INI files you want, place all of them in the /home/kodi/MAME-DATs/ directory. Note that Linux filenames are case sensitive.

Directory Notes
/home/kodi/MAME-DATs/bestgames.ini (Optional) Best games catalog.
/home/kodi/MAME-DATs/catlist.ini (Optional) Catlist.
/home/kodi/MAME-DATs/catver.ini (Optional) Catver.
/home/kodi/MAME-DATs/genre.ini (Optional) Genre.
/home/kodi/MAME-DATs/mature.ini (Optional) Mature flag.
/home/kodi/MAME-DATs/nplayers.ini (Optional) Number of players.
/home/kodi/MAME-DATs/series.ini (Optional) Series catalog.

Setting up MAME DAT files (Optional)

AML supports History.dat, MAMEInfo.dat, Gameinit.dat and Command.dat. All these files are optional. The information in the DAT files can be accessed in the context menu.

After downloading and decompressing the DAT files you want, place all of them in the /home/kodi/MAME-DATs/ directory. Note that Linux filenames are case sensitive.

Directory Notes
/home/kodi/MAME-DATs/command.dat (Optional) Command DAT
/home/kodi/MAME-DATs/gameinit.dat (Optional) Gameinit DAT
/home/kodi/MAME-DATs/history.dat (Optional) History DAT
/home/kodi/MAME-DATs/mameinfo.dat (Optional) MAME Info DAT

Setting up MAME Assets (Optional)

Place the MAME assets/artwork, in PNG format, in the following directories. Video previews should be in MP4 format. Manuals must be in PDF format (CBZ and CBR format support is under development). Note that AML does not create any directory automatically, you have to create all these directories yourself.

Directory Notes
/home/kodi/MAME-assets/artpreviews/ MAME artpreview PNG files.
/home/kodi/MAME-assets/artwork/ MAME artwork ZIP files.
/home/kodi/MAME-assets/cabinets/ MAME cabinets.
/home/kodi/MAME-assets/clearlogos/ MAME clearlogos/wheels.
/home/kodi/MAME-assets/cpanels/ MAME control panels.
/home/kodi/MAME-assets/fanarts/ AML will create MAME Fanarts here.
/home/kodi/MAME-assets/flyers/ MAME flyers.
/home/kodi/MAME-assets/manuals/ MAME machine PDF/CBZ/CBR manuals.
/home/kodi/MAME-assets/marquees/ MAME marquees.
/home/kodi/MAME-assets/PCBs/ MAME PCBs.
/home/kodi/MAME-assets/snaps/ MAME in-game screenshots.
/home/kodi/MAME-assets/titles/ MAME title screenshots.
/home/kodi/MAME-assets/videosnaps/ MAME trailers (MP4 format)

AML doesn’t have (and never will have) asset/artwork scrapers. You can however download full MAME artwork collections from here:

(*) Registration Required

Explain MAME artwork

Explain MAME Fanarts

Setting up Software Lists ROMs (Optional)

The Software Lists ROM ZIP files must be in a subdirectory whose name must match each Software List name, like in the following example:

# ROMs for 32x Software List
/home/kodi/MAME-SL-ROMs/32x/game_1.zip
/home/kodi/MAME-SL-ROMs/32x/game_2.zip
...
# ROMs for megadriv Software List
/home/kodi/MAME-SL-ROMs/megadriv/game_1.zip
/home/kodi/MAME-SL-ROMs/megadriv/game_2.zip
...

Setting up Software Lists CHDs (Optional)

Write me.

Setting up Software Lists Assets (Optional)

MAME machines have a broad range of assets, including Cabinets, Clearlogos, Control Panels, Flyers, PCBs, in-game snaps and title screenshots. On the other hand, Software Lists only have Covers/Boxfronts, in-game snaps and title screenshots.

Directory Notes
/home/kodi/AML-assets/covers_SL/ Software Lists covers/boxfronts.
/home/kodi/AML-assets/fanarts_SL/ AML will create SL Fanarts here.
/home/kodi/AML-assets/manuals_SL/ SL items PDF/CBZ/CBR manuals.
/home/kodi/AML-assets/snaps_SL/ Software Lists in-game screenshots.
/home/kodi/AML-assets/titles_SL/ Software Lists title screenshots.
/home/kodi/AML-assets/videosnaps_SL/ Software Lists trailers (MP4 format).

The Covers, Snaps and Titles of each software list must be in their own subdirectory like in this example:

Directory Notes
/home/kodi/AML-assets/covers_SL/32x/ Covers for 32x Software List
/home/kodi/AML-assets/covers_SL/megadriv/ Covers for megadriv Software List
/home/kodi/AML-assets/snaps_SL/32x/ Snaps for 32x Software List
/home/kodi/AML-assets/snaps_SL/megadriv/ Snaps for megadriv Software List

Note that the Software List artwork collections ZIP or Torrent files follow this naming scheme so you only have to decompress or copy the ZIP file/torrent in the appropiate directory.

Configuring AML

Once you have placed your ROMs, CHDs, DAT/INI files and artwork in the appropiate directories it is time to configure AML.

In Kodi, open the AML root window. Select any row on the root window and open the context menu. If you are using a keyboard to control Kodi, the default key to open the context menu is C. Browse and select the menu “AML addon settings”. Note that you also can the AML addon settings window from the Kodi addon browser.

In the AML addon settings window, go to the Paths tab and configure the following stuff:

1) MAME executable Click to open a file selection dialog and browse to the location of the MAME executable.

2) MAME ROM path Write me.

3) MAME Assets path Write me.

4) MAME INI/DAT path Write me.

3) MAME CHDs path Write me.

3) MAME Samples path Write me.

4) Software Lists hash path is a subdirectory inside the MAME installation directory which contains the Software Lists XML databases.

Linux users: in Debian/Ubuntu it is typically located in `/usr/share/games/mame/hash/`.

Windows users: if you installed MAME in `E:\MAME\` then the Software Lists hash path would be located in `E:\MAME\hash\`.

3) Software Lists ROMs path Write me.

3) Software LIsts CHD path Write me.

After you have finished with the configuration, select the OK button to close the settings window and commit the changes.

Setting up AML (Easy mode)

After configuring AML, go to the AML root window. Bring the context menu and select Setup plugin. Then click on All in one step (Extract, Build and Scan). Now wait until AML builds the MAME databases and scans you ROMs. This process should take about 10/15 minutes.

If everything goes well you are now able to navigate all MAME arcade/computer machines and Software Lists items, and also launch them. Now, in the section Browsing MAME machines you have more details about how to use AML for MAME and in the section Browsing Software Lists you have more details about the Software Lists.

Setting up AML

After configuring AML, go to the AML root window. Bring the context menu and select Setup plugin. Then, execute in consecutive order:

  1. Extract MAME.xml … extracts the MAME.xml database from MAME.

  2. Build all databases converts the MAME XML database into JSON format, strips out unneeded information to boost performance, generates the filter parent/clone lists and processes the Software List XML databases.

  3. Scan everyting scans your MAME machine ROMs, CHDs and Samples, Software Lists ROMs and CHDs, and MAME machines and Software Lists assets/artwork. Sets all tags having a ? character to the appropriate value.

If everything goes well you are now able to navigate all MAME arcade/computer machines and Software Lists items, and also launch them. Now, in the section Browsing MAME machines you have more details about how to use AML for MAME and in the section Browsing Software Lists you have more details about the Software Lists.

Setting up AML (Advanced mode)

The Setup plugin, Step by step ... menu allows you to execute the AML database setup process step by step, as opposed to automatically. For example, if you install/copy new MAME assets you can execute Scan MAME assets/artwork ... to bring the MAME machine artwork database up-to-date. Alternatively, you can run Scan everyting to bring all ROMs/assets databases up-to-date but it will take much longer.