Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Pacdrive LED to behave like a real cabinet?  (Read 1297 times)

0 Members and 1 Guest are viewing this topic.

erwan

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:March 20, 2015, 09:37:11 am
  • I want to build my own arcade controls!
Pacdrive LED to behave like a real cabinet?
« 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?

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9273
  • Last login:August 15, 2025, 06:53:06 am
  • ...
Re: Pacdrive LED to behave like a real cabinet?
« Reply #1 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.

erwan

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:March 20, 2015, 09:37:11 am
  • I want to build my own arcade controls!
Re: Pacdrive LED to behave like a real cabinet?
« Reply #2 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.

erwan

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:March 20, 2015, 09:37:11 am
  • I want to build my own arcade controls!
Re: Pacdrive LED to behave like a real cabinet?
« Reply #3 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

matsadona

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 760
  • Last login:October 28, 2023, 06:00:12 am
Re: Pacdrive LED to behave like a real cabinet?
« Reply #4 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.
Building, collecting and playing arcade machines :)