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: Mamehooker Ammo Counter Display  (Read 1241 times)

0 Members and 1 Guest are viewing this topic.

oddeye45

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:May 04, 2025, 05:32:48 am
  • I want to build my own arcade controls!
Mamehooker Ammo Counter Display
« on: October 31, 2024, 04:20:55 pm »
Hi all,

This is a question probably aimed at Howard Casto but I'll take advice from anybody that knows how really. I have some Aliens Extermination guns with the display counter on them. I know that there was a Terminator Salvation cabinet that had these guns (positional) installed on them rather than actual light guns and Mamehooker shows an output for ammo counters.

However, when I try to use the ammo counter output, one of two things happens. Either:
1.) The counter works but only scrolling from 9 to 1 and then looping back to 9
OR
2.) Both digits do the same as above but both digits show the same value

The code I am using is:
1.) ghd 1 &H04B4 &H6870 3 &h03:&h00:&h0%s%
2.) ghd 1 &H04B4 &H6870 3 &h03:&h0%s%:&h0%s%

Can anybody see what I would have to alter to get it to do what I want? I can see why it is doing what it does (in scenario 1 I am telling it to display zero as the first digit and in scenario 2 I am telling it to change both of the digits when the output changes to a zero or a one) but I have no idea as to how I would tell it to read the two-digit value of the ammo and output that.

Thanks in advance if anyone knows how to achieve this.