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: Hooking up High Score flashing light etc...  (Read 1388 times)

0 Members and 1 Guest are viewing this topic.

melarky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:July 12, 2020, 12:49:22 pm
  • If I could be any animal, I would be a llama
Hooking up High Score flashing light etc...
« on: February 14, 2005, 12:53:16 pm »
Hello,

I would like to figure out a way to hook up a flashing light or something like that to go off when a certain score is reached in a game or a certain level is cleared (that basic idea).

Witchboard

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2002
  • Last login:January 05, 2022, 09:09:24 pm
    • Oklahoma Coin-Operated Collectors
Re: Hooking up High Score flashing light etc...
« Reply #1 on: February 14, 2005, 01:36:20 pm »
You could always stand behind who ever is playing with a pot and a wooden spoon.  ;D

If it can be done, I would think you're on the right triack with the highscore.dat.  What's the payout on this thing anyway?

GGKoul

  • Cheesecake Apprentice
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4707
  • Last login:May 26, 2024, 02:06:23 am
  • I was once a big man!! -4700 posts later...
Re: Hooking up High Score flashing light etc...
« Reply #2 on: February 14, 2005, 02:37:51 pm »
You could always stand behind who ever is playing with a pot and a wooden spoon.

cholin

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:July 16, 2009, 09:22:25 pm
    • Nilok Productions
Re: Hooking up High Score flashing light etc...
« Reply #3 on: February 14, 2005, 03:02:39 pm »
In order to do this, you would either need to hook your whole system on your computer to tell when the score it beaten, or *write a script and recompile it right into mame so it executes some other file, such as ring.exe*

Thats the only way I can think of it, modify the source, make ring.exe set off your lights, and when MAME detects a high score, you can send it out.

melarky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:July 12, 2020, 12:49:22 pm
  • If I could be any animal, I would be a llama
Re: Hooking up High Score flashing light etc...
« Reply #4 on: February 14, 2005, 05:03:36 pm »
So hiscore.dat is probably out then (wouldn't be quite as effective if the light flashed after the name was entered, would be funner right then the score is broken).

I'll have to look into the source code and see how difficult it would be to figure this out.

Any other ideas on this?

DreamWeb

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 375
  • Last login:July 25, 2020, 08:36:59 pm
  • I want to build my own arcade controls!
Re: Hooking up High Score flashing light etc...
« Reply #5 on: February 14, 2005, 05:16:59 pm »
this is a really good idea.

TheGatesofBill

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 581
  • Last login:August 22, 2018, 09:07:04 am
Re: Hooking up High Score flashing light etc...
« Reply #6 on: February 14, 2005, 06:12:39 pm »
It wouldn't be too hard to do if you modified the drivers to do something after a high score is achieved (turn on a keyboard light or something that you could connect your flashing light to), however, it would be irritating enough where I don't plan on volunteering for the task. If someone can think of a better way to do it, power to them. Also, as far as I know, the highscore.dat is written after you exit the game, but I haven't ever really looked at that part of the code, so I could be wrong.

Witchboard

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2002
  • Last login:January 05, 2022, 09:09:24 pm
    • Oklahoma Coin-Operated Collectors
Re: Hooking up High Score flashing light etc...
« Reply #7 on: February 14, 2005, 07:55:35 pm »
Well, if the code can be changed to incorporate a Q*Bert knocker, then I'm sure this can be done as well.  Just have to find the person with the right coding skills.

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re: Hooking up High Score flashing light etc...
« Reply #8 on: February 14, 2005, 08:46:53 pm »
The highscore.dat is never written to.  It is just a database of how each game registers the high scores, and writes it to /hi/game.hi

Modify MAME to do a certain action when hiscore.dat sees a high score.