gabriel.klein
Posts: 10
Joined: Wed Aug 03, 2016 2:09 pm

Mame remote API

Dear Mame's users and Developers,

Do you know what interfaces should be used to remotely control mame?
(Rest API, open port, other)

Example of messages:
* start game "pong"
* pause
* change dip switch
* speed 0.4
* volume 123
* quit

etc...

Best regards - Gab
galibert
Posts: 3
Joined: Thu Nov 06, 2014 1:34 pm

Re: Mame remote API

The programmatic control "API" for mame is very much lua at that point. It's nowhere near complete, but we welcome complements.

So, for remote control, I guess the best would be to grab a lua module that provides whatever method you like best, require it from a lua script, and have fun.

OG.
gabriel.klein
Posts: 10
Joined: Wed Aug 03, 2016 2:09 pm

Re: Mame remote API

Thank you for the answer!

It looks like a good start to write an API on top of it or change the source code of mame.

I have 3 goals:
- Remotely control mame (using Android)
- Control mame using RFID cards - in particular have a few cards with my favorite roms.
- Potentially write a web server where you can connect remotely control mame.

Nothing fancy... but may be useful.
tma
Posts: 2
Joined: Sat Feb 25, 2017 5:11 pm

Re: Mame remote API

I would like to do something similar. I would like to write a C++ program that has access to the Williams Robotron 2084 RAM, which contains lists of object (robots, etc.) on the screen, and an API to drive the dual-joystick inputs.

The goal is to automate gameplay. The challenge is to write algorithms that can achieve higher scores than a human player.
Arbee
Posts: 28
Joined: Fri Nov 14, 2014 4:27 pm
Contact: Website

Re: Mame remote API

There is already a port of MarI/O that autoplays some Super Mario Games and attempts to optimize the score as a MAME Lua script. So that kind of thing is very possible.

Return to “MAME Discussion”