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: flashing buttons when credit has been inserted?  (Read 4261 times)

0 Members and 1 Guest are viewing this topic.

djuret

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 31, 2014, 08:42:13 am
flashing buttons when credit has been inserted?
« on: November 04, 2008, 01:53:12 pm »
Hi!

I'm in the planning stages of building my first MAME machine. I bought "the book" and have gotten halfway through. Not sure if the book covers my question, however I'm very eager to get an answer. Basically what I want to do is:

have P1 and/or P2 (start) buttons to blink when a credit has been inserted (and game is ready to be played). And then when a game launched i want the flashing to stop and stay off. Is this possible by using a PAC-Drive?

clarification:
i.e. inserting a credit in P1 coinslot adds 1 credit (game is ready to be played) and therefore the P1 start button should blink. If. P2 also adds 1 credit in the P2 coinslot, his P2 start button should blink.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: flashing buttons when credit has been inserted?
« Reply #1 on: November 04, 2008, 02:05:46 pm »
Yes, but only for games which actually do that - it's a minority of the games that mame supports. Most notably early atari games.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

djuret

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 31, 2014, 08:42:13 am
Re: flashing buttons when credit has been inserted?
« Reply #2 on: November 04, 2008, 03:56:24 pm »
Theoretically, it should be possible to do this without a PAC-drive...
I am by no means an electrician (I barely understood electrics in high-school).

However, It feels like I should be able to create some kind of circuit with a timer functionality that just makes a LED blink. And then have an additional wire from the coin-mech-trigger that closes the circuit, thus forcing the LED to blink. And then have an additional wire from the "start" button to open the circuit, thus forcing the LED to stop blinking.

and of course, the coin mech and start are also connected to the I-PAC.



DaveMMR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3244
  • Last login:April 28, 2025, 11:33:13 am
Re: flashing buttons when credit has been inserted?
« Reply #3 on: November 04, 2008, 04:05:40 pm »
I believe Arzoo's LEDBlinky application (works with Mala, Hyperspin) has this as a feature, with limitations (i.e. it only works with certain games that had that feature and newer MAME versions).  I know a few games on my cabinet blink the start buttons when a coin is inserted and it's pretty cool. 

Here's a link to the thread: http://forum.arcadecontrols.com/index.php?topic=73905.0

« Last Edit: November 04, 2008, 04:07:49 pm by DaveMMR »

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: flashing buttons when credit has been inserted?
« Reply #4 on: November 04, 2008, 04:27:10 pm »
As mentioned above, some games have this feature built into the ROM code. What they do is flash the keyboard caps/num/scroll lock LEDs.

For this to work, ie without using any external software etc, the game has to have it in the ROM code, and the Mame implementation has to have it working. Galaxian is an example of this.
The keyboard LEDs are actually a neglected part of Mame and arcade controls. Some games make extensive use of all 3 LEDs.
Andy

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: flashing buttons when credit has been inserted?
« Reply #5 on: November 04, 2008, 04:37:36 pm »
To further expound on what Andy said, the LED blinking stuff was moved out of the MAME core and into a helper application called ledutil.exe (which comes with MAME).  To get this working with an IPAC, you will need to have that running in the background to listen for the 'blinking' events from MAME.  LEDUTIL then blinks the appropriate keyboard LEDs.  If you are planning on using an IPAC and super bright LEDs under the P1 and P2 buttons, you will also need a driver board that connects to the IPAC to provide the proper power to the LEDs:
http://www.gamecab.com/products.asp?cat=26

This is the setup I have running and it works great. 
« Last Edit: November 04, 2008, 04:41:20 pm by ahofle »

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: flashing buttons when credit has been inserted?
« Reply #6 on: November 13, 2008, 08:38:32 am »
LEDBlinky uses headkaze's mame output library which I believe uses the same code (with some additional bug fixes) as ledutil.
Robots will kill you.



Arcade Addiction