Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: melarky on February 14, 2005, 12:53:16 pm

Title: Hooking up High Score flashing light etc...
Post by: melarky 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).
Title: Re: Hooking up High Score flashing light etc...
Post by: Witchboard 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?
Title: Re: Hooking up High Score flashing light etc...
Post by: GGKoul on February 14, 2005, 02:37:51 pm
You could always stand behind who ever is playing with a pot and a wooden spoon.
Title: Re: Hooking up High Score flashing light etc...
Post by: cholin 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.
Title: Re: Hooking up High Score flashing light etc...
Post by: melarky 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?
Title: Re: Hooking up High Score flashing light etc...
Post by: DreamWeb on February 14, 2005, 05:16:59 pm
this is a really good idea.
Title: Re: Hooking up High Score flashing light etc...
Post by: TheGatesofBill 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.
Title: Re: Hooking up High Score flashing light etc...
Post by: Witchboard 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.
Title: Re: Hooking up High Score flashing light etc...
Post by: Trimoor 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.