Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: erwan on March 16, 2015, 01:54:33 pm

Title: Pacdrive LED to behave like a real cabinet?
Post by: erwan on March 16, 2015, 01:54:33 pm
I just finished my arcade cabinet, and I have a pacdrive for the coin button + start 1 and start 2. I know it works, I've tried it with a command line utility on Linux.

What I want to to have it behave like a real cabinet, e.g. light up start 1 when you put a coin, but only start 2 if you have enough credits to play 2 players. Is it even possible with MAME, do the ROMS have this kind of information?

I'm on Linux but I've seen on the pacdrive doc that you can control the LED with the Mala front-end. Is it only to do some animation pattern, lit up only used buttons, or is the behavior I described even possible?
Title: Re: Pacdrive LED to behave like a real cabinet?
Post by: BadMouth on March 16, 2015, 03:47:51 pm
You can do it on Windows using Howard Casto's MAMEhooker program, but it is limited to what each individual game originally did.
Also, the outputs that trigger this aren't "hooked up" in all the games.

I'm not aware of anything like that for Linux.

Sounds like the consistent behavior you want would need a custom program anyway.
Title: Re: Pacdrive LED to behave like a real cabinet?
Post by: erwan on March 16, 2015, 03:54:01 pm
Thanks, I'll take a look at mamehooker. I don't mind doing some programming myself, of I can confirm that (1) the info is in the Roms and (2) mame provides a way to hook to the events.

Since a windows program exists, it appears to be possible.
Title: Re: Pacdrive LED to behave like a real cabinet?
Post by: erwan on March 16, 2015, 04:26:46 pm
OK, searching for MAME Hooker info I found a post about communication with Mame, and I found this neat script in the source code that works great on Linux  :applaud:

https://github.com/mamedev/mame/blob/master/src/osd/sdl/ledutil.sh
Title: Re: Pacdrive LED to behave like a real cabinet?
Post by: matsadona on March 17, 2015, 03:52:06 am
It would be nice with a list of all games that has this functionality. I know most all old (70's) Atari games does, and so do some SEGA games (Outrun, After Burner etc).

For games that doesn't have this functionality it is probably doable with scripts, if you monitor the coin input. Assuming you have the same coin/credit settings for all games.