Menu

Mame

Mame

This input plugin listens for output from the Mame on port 8000. Mapping elements and groups to specific Mame output events will allow you to light LEDs, knockers, lamps, trigger solenoids, relays, switches, etc. Some games like Galaga, Dig Dug, OutRun and Terminator 2 make use of Mame's output system.

Setup

Step 1. Important: Activate this feature by editing mame.ini in any Mame version after 0.107u4 ; set output to network. Raspberry Pi Note: This feature does not currently work with any Retroarch installed version of Mame. You will have to compile your own vanilla version of Mame on a Raspberry Pi to use this feature. The first version of MAME to install cleanly on a Raspberry Pi is version 0.169.

output network

or pass -output network on the command line.

To find events being reported by Mame on port 8000, use the following command:

nc -v localhost 8000

Once you have a list of events being used for a specific game, you can add them to an inputs profile. Common events reported by Mame may look like led0=1 led1=1.

Step 2. Create an input file and save it in the /usr/shared/ledspicer/profile/inputs folder (ex. /usr/shared/ledspicer/inputs/digdug.xml). See Parameters and Examples below for details.

Step 3. Add an input event to one of your profiles. (ex. /usr/shared/ledspicer/profiles/profile_arcade.xml, or /usr/shared/ledspicer/profiles/arcade/digdug.xml). Add the name of your input XML file to the profile:

<inputs>
    <input name="digdug"/>
</inputs>

Parameters

There are 3 required parameters, the parameters must have the following values:
version="1.0"
type="Input"
name="Mame"

Example

<?xml version="1.0" encoding="UTF-8"?>
<LEDSpicer
    version="1.0"
    type="Input"
    name="Mame"
>
        <!-- Example with element -->
        <map
            type="Element"                  <!-- <<< Set it to Element  -->
            target="P1_BUTTON1"    <!-- <<< The element to change -->
            trigger="led0"                       <!-- <<< The mame event -->
            color="White"                      <!-- <<< The color to change -->
            filter="Normal"                    <!-- <<< Filter to use -->
        />
        <!-- Example with group -->
        <map
            type="Group"                  <!--  <<< Set it to Group. -->
            target="Group name"   <!--  <<< The group name. -->
            trigger="led1"                   <!-- <<< The mame event. -->
            color="White"                   <!-- <<< The color for the group. -->
            filter="Normal"                 <!-- <<< The filter for the color. -->
        />
</LEDSpicer>

Related

Wiki: Input Plugins