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: Getting coin credit count out of MAME  (Read 9571 times)

0 Members and 1 Guest are viewing this topic.

mikefr

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 23, 2008, 08:22:57 pm
Getting coin credit count out of MAME
« on: October 08, 2008, 08:05:52 pm »
Does anyone know how to get the credit count out of MAME?   maybe a plug-in or a external driver?  I need some way to get the credit count  out of mame and to output it to the SERIAL port on the PC.   

The ultimate goal is to drive the original LED credit counter display on a NEO-GEO MVS cabinet.   It sounds simple, but it truly could be a daunting task to get this info out of MAME.  I can easily make a driver circuit using a PIC chip to control the LED display.  The PIC chip also can read a PC Serial port.   If MAME can output the credit count to the serial port I am in business. 

I suck at programming stuff for the PC but I can program a PIC chip easily.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1911
  • Last login:October 16, 2023, 03:35:12 pm
    • My Arcade (updated 1/30/13)
Re: Getting coin credit count out of MAME
« Reply #1 on: October 08, 2008, 08:33:19 pm »
This comes up occasionally, but basically MAME will never support this because it encourages commercial use of MAME. Plus some games don't use start buttons to initiate game play (instead they use buttons used during game play or some other control), so it wouldn't be a trivial job to modify the mame source to keep an accurate count of credits (bear in mind I haven't determined this by looking at source code - just from playing the games).

People who have talked about implementing count counting for front ends or whatever have taken a LOT of heat. If you go back and find some of these threads you'll see that.
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

mikefr

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 23, 2008, 08:22:57 pm
Re: Getting coin credit count out of MAME
« Reply #2 on: October 08, 2008, 08:38:56 pm »
ah okay.  I don't want to start any trouble.  I just thought it would make the cabinet look more authentic.   I have no real need for the LED counters other than that reason alone. 

Thanks for the heads up. 


mikefr

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 23, 2008, 08:22:57 pm
Re: Getting coin credit count out of MAME
« Reply #3 on: October 08, 2008, 08:56:36 pm »
I have a solution.   I always give myself credits by hitting the real coin switch/lever on the cab.   I will just program the PIC chip to monitor how many times the coin switch is pressed and subtract how many times the two start buttons are pressed.  This would be an entirely separate system from mame.   When I exit the game, the pic chip will reset to zero and will be ready to count the next time I start a game.   



TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1911
  • Last login:October 16, 2023, 03:35:12 pm
    • My Arcade (updated 1/30/13)
Re: Getting coin credit count out of MAME
« Reply #4 on: October 08, 2008, 09:56:08 pm »
I know you're not trying to start trouble. ;) Doesn't hurt to ask!

While that's a good solution for many games, just remember that it won't work for games that don't use the start buttons.

Out of curiosity, what cabinet do you have? I assume since you said you want it to look more authentic that you have a cab with 7 segment LED coin counters? If I had a cab like that, I'd probably want to implement something like that as well.
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

mikefr

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 23, 2008, 08:22:57 pm
Re: Getting coin credit count out of MAME
« Reply #5 on: October 09, 2008, 06:45:20 pm »
I have a MVS Neo Geo cabinet.  I left it original for the most part except I added two extra buttons per player.  I left the LED counters installed but now of course they do not work. 

I'll keep the forum posted about my outcome.  I'll start messing around with it now that its getting cold out and I will be spending more time inside.

You can check out my cabinet here if you like:  http://www.freemansgarage.com/mamecab.html





jtslade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 746
  • Last login:January 11, 2023, 11:34:45 am
  • Keep it looking originallish!
Re: Getting coin credit count out of MAME
« Reply #6 on: October 15, 2008, 10:38:17 am »
I was wondering if you had been working on getting a MV-LED credit display to interface with a computer via USB or serial connection.

I am working with some hardware and software programmers on doing just that.

http://www.neo-geo.com/forums/showthread.php?t=187755

I am also talking to the developer to Mame Hooker about mame's abilities to drive led displays.

http://dragonking.arcadecontrols.com...boutmamehooker


Let me know if your in to try and solve this for all of the MVS Neo Geo people out there.

Any help/advice you can give would be very much appreciated.
Ms. Pacman Original Cocktail with Non destructive mod to Groovy Arcade Linux with All 4way Vertical Cocktail capable 2 button or less games.


Neo Geo MVS Mame Cab Running Hyperspin, 25" Nanao Arcade Monitor, Mini-pac, ATI Radeon HD 4850 (ATOM-15), IL 8 Way Euro-Sticks from Paradise Arcade, Win XP 64bit, and tons of other junk.


Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: Getting coin credit count out of MAME
« Reply #7 on: October 15, 2008, 12:29:34 pm »


I am also talking to the developer to Mame Hooker about mame's abilities to drive led displays.

http://dragonking.arcadecontrols.com...boutmamehooker



How did you get ahold of Howard?  I have been trying to contact him for awhile.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Getting coin credit count out of MAME
« Reply #8 on: October 16, 2008, 01:20:23 am »
Take a look at the MameInterop SDK as that's a good starting point, although the one located on Howard's website hasn't been updated since a bug was found in ledutil.

My PluginLCD plugin for GameEx can output what are called "digit" outputs from Mame to an LCD or scrolling LED sign. I support a few of them in my plugin.

MameHooker essentially uses my Com port library (CommIO.dll) along with my Mame.dll which is just the ledutil program from the Mame source code modified into a dll. I believe MameHooker has some sort of API to send the data from Mame to the Com port so I guess it can do what you want.
« Last Edit: October 16, 2008, 01:22:01 am by headkaze »

jtslade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 746
  • Last login:January 11, 2023, 11:34:45 am
  • Keep it looking originallish!
Re: Getting coin credit count out of MAME
« Reply #9 on: October 16, 2008, 05:07:14 am »
Does anyone have experience with the Ultimarc U-HID

http://www.u-hid.com/index.php?option=com_content&view=frontpage&Itemid=1

It uses the generic HID interface to drive multiple devices. It can output 5v.

With some programing it may be possible to take the

Mame hooker which interfaces with the new Mame output signals added by Aaron G.

And drive a MV-LED credit 7 segment LED or compatible 7seg led to emulate a real MVS credit display.

http://dragonking.arcadecontrols.com/static.php?page=aboutmamehooker

Ms. Pacman Original Cocktail with Non destructive mod to Groovy Arcade Linux with All 4way Vertical Cocktail capable 2 button or less games.


Neo Geo MVS Mame Cab Running Hyperspin, 25" Nanao Arcade Monitor, Mini-pac, ATI Radeon HD 4850 (ATOM-15), IL 8 Way Euro-Sticks from Paradise Arcade, Win XP 64bit, and tons of other junk.


headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Getting coin credit count out of MAME
« Reply #10 on: October 16, 2008, 05:41:31 am »
Does anyone have experience with the Ultimarc U-HID

I expanded the PacDrive.dll to support U-HID so it will work with both devices. It's on the Ultimarc website. You might consider using a PacDrive too but both are easy to interface with using the PacDrive.dll in my SDK.

I have example source in a few languages, so you could get Mame.dll and PacDrive.dll and write your own program to output to it. It would be easy to do IMHO. I know nothing about Mame Hooker TBH.