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

Mame remote API

Fri Aug 19, 2016 1:32 pm

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

Mon Aug 22, 2016 7:21 pm

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: 8
Joined: Wed Aug 03, 2016 2:09 pm

Re: Mame remote API

Wed Aug 24, 2016 1:20 pm

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

Sat Feb 25, 2017 6:51 pm

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: 23
Joined: Fri Nov 14, 2014 4:27 pm
Contact: Website

Re: Mame remote API

Tue Apr 25, 2017 4:01 pm

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”

Who is online

Users browsing this forum: Arbee and 1 guest