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: Mame - Pacman (Midway) Score output? script?  (Read 950 times)

0 Members and 1 Guest are viewing this topic.

garethmur

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:June 13, 2025, 05:48:07 am
  • I want to build my own arcade controls!
Mame - Pacman (Midway) Score output? script?
« on: April 23, 2025, 05:47:57 pm »
Hi all,

I have built my own cabinet and want to take it to the next level by displaying the score after each set of pacman on an LED matrix in the marquee above the player.
I have got some interesting help from chatGPT so far but seem to have a problem locating the correct memory address where the scores are for Pacman (Midway).
I'm using Mame and got a script that is supposed to extract the score, but its given garbage values so far.

Has anyone done this before or something similar that could point me in th right direction. Ill be using an Arduino board to do the physical interactions...

Thanks🤙


PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9663
  • Last login:Today at 03:07:15 am
  • Designated spam hunter
Re: Mame - Pacman (Midway) Score output? script?
« Reply #1 on: April 23, 2025, 10:05:49 pm »
I have got some interesting help from chatGPT so far but seem to have a problem locating the correct memory address where the scores are for Pacman (Midway).
I'm using Mame and got a script that is supposed to extract the score, but its given garbage values so far.
Hope this helps.   :cheers:

I'm just spitballing here, but check out the screen overlay on page 12 for the high score memory addresses and the "Tile (Character) ROM" (pacman.5e ROM) section on pages 6-7.

https://www.lomont.org/software/games/pacman/PacmanEmulation.pdf

Given that the highest possible score is 3,333,360, it looks like you should find the score-related tile data in the 7 memory addresses 3F3 - 3ED.

When you pull the tile data from each memory address, you'll need to translate it to get the related number/blank for that digit of the score.

The LUA script and Arduino sketch that you need to do that is beyond my skillset.   :dunno

Have you looked at the MAME Hiscore plugin?
- The plugin LUA script would have to extract and translate the score to save it to highscore.dat.
https://github.com/mamedev/mame/tree/master/plugins/hiscore


Scott
« Last Edit: April 24, 2025, 01:20:37 am by PL1 »

garethmur

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:June 13, 2025, 05:48:07 am
  • I want to build my own arcade controls!
Re: Mame - Pacman (Midway) Score output? script?
« Reply #2 on: April 24, 2025, 07:37:07 am »
Hi, thanks for that, ill check it out... ;D