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: Spy Hunter controls and LEDBlinky  (Read 3477 times)

0 Members and 1 Guest are viewing this topic.

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Spy Hunter controls and LEDBlinky
« on: August 10, 2008, 03:59:37 pm »
There's been a couple of active Spy Hunter threads recently, so I decided to get it configured for my control panel. Turns out that Spy Hunter (spyhunt) is not included with controls.ini or colors.ini. Plus, the game provides outputs to light the active weapons, but you need to know which button LAMP0, LAMP1, LAMP2, LAMP3, and LAMP4 are assigned to. So here's the data for LEDBlinky to get it all working...

Add this to the controls_override.ini file:
Code: [Select]
[spyhunt]
gamename=Spy Hunter
numPlayers=2
alternating=1
mirrored=1
tilt=0
cocktail=0
usesService=0
miscDetails=
P1NumButtons=6
P1Controls=Gas Pedal+pedal|Steering Wheel+paddle
P1_BUTTON1=Machine Gun
P1_BUTTON2=Smoke Screen
P1_BUTTON3=Weapons Van
P1_BUTTON4=Oil Slick
P1_BUTTON5=Missile
P1_BUTTON6=Gear Shift

Add this to the MameOutputs.ini file:
Code: [Select]
[spyhunt]
LAMP0=P1_BUTTON4
LAMP1=P1_BUTTON5
LAMP2=P1_BUTTON3
LAMP3=P1_BUTTON2
LAMP4=P1_BUTTON1

As for the button colors, only the Weapons Van button lit up - Red. The other four weapons were thumb and trigger buttons on the left and right side of the steering wheel - I don't think they lit up. But they did have colors based on the bezel lights. So add this to the colors.ini file:
Code: [Select]
[spyhunt]
P1_BUTTON1=Red
P1_BUTTON2=Magenta
P1_BUTTON3=Yellow
P1_BUTTON4=Magenta
P1_BUTTON5=Red
P1_BUTTON6=Black
The Weapons Van (button 3) can be Red to match the actual button or yellow to match the bezel light.
Robots will kill you.



Arcade Addiction

Darth Nuno

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 220
  • Last login:May 08, 2024, 04:26:02 pm
  • Namco is God !
    • Arcade Lifestyle / Dragon's Lair Fans
Re: Spy Hunter controls and LEDBlinky
« Reply #1 on: May 03, 2015, 12:33:42 pm »
Up big up of this topic.  8)

Well, I plan to use a dedicated mame setup to play Spy Hunter ... into a real Spy Hunter cabinet (of course, in an non destructive way, don't worry!).
I've seen here many topics about driving the real Spy Hunter cabinet lamps with the help of the device LED Wiz / GP, combined with the LEDBlinky 'middleware' (bridge between mame & LED Wiz), and because I'll try to go with the LEDBlinky way to drive the cabinet lamps, I'm posting on this topic.

Here's my hardware :

LED Wiz / GP ver 3.0
1 led (the one provided with the LED Wiz)

Here's my software :

LED Wiz applications (with include LED-Wiz control panel icon)
LED Blinky 'suite' version 6.2.0.0
Mame 161b

OK, so before everything,  what I've done is to test if the only led I have so far (connected to the output 16) is well connected and if the led wiz board work. So far so good ->



I aslo check via the SimpleLEDTest.exe the led on position 16 :



..and it works as expected, fine.

Now, it's time to configure LED Blinky itself. I won't use any front end, so I directly jump to the 'MAME Config' tab, and set everything like this :



- note that the mame.xml file didn't exist, so I had to create one, like this mame.exe -listxml >mame.xml
- note that the control.ini file didn't exist, so I had to download it. I only found on Internet the 0.141 (here) but my mame version is the 161b version. Could this be a first problem?
Anyway, I add this section to the end of that file :
Code: [Select]
[spyhunt]
gamename=Spy Hunter
numPlayers=2
alternating=1
mirrored=1
tilt=0
cocktail=0
usesService=0
miscDetails=
P1NumButtons=6
P1Controls=Gas Pedal+pedal|Steering Wheel+paddle
P1_BUTTON1=Machine Gun
P1_BUTTON2=Smoke Screen
P1_BUTTON3=Weapons Van
P1_BUTTON4=Oil Slick
P1_BUTTON5=Missile

!I had to add it, because they were NO [spyhunt] reference in that file before!

I also added this to the MameOutputs.ini file :

Code: [Select]
[spyhunt]
LAMP0=P1_BUTTON4
LAMP1=P1_BUTTON5
LAMP2=P1_BUTTON3
LAMP3=P1_BUTTON2
LAMP4=P1_BUTTON1

Because I want to use single LEDs (no RGB LED), I didn't do this in the Colors.ini file :

Code: [Select]
[spyhunt]
P1_BUTTON1=Red
P1_BUTTON2=Magenta
P1_BUTTON3=Yellow
P1_BUTTON4=Magenta
P1_BUTTON5=Red
P1_BUTTON6=Black

I've done this instead :

Code: [Select]
[spyhunt]
LAMP0=P1_BUTTON4
LAMP1=P1_BUTTON5
LAMP2=P1_BUTTON3
LAMP3=P1_BUTTON2
LAMP4=P1_BUTTON1

But there is something missing here, no? Because for the purpose of my test, I only have one single LED, connected to the output no 16 on the LED Wiz device.
So, for example, how to assign ..let's say the 'machine gun' LED to the ouput 16 from the LED Wiz device?
OK, I figure it's over the LEBBlinky Controls Edition panel? Because I see this ...and already an entry for Spy Hunter? ->



So as you can see in the picture, I believe I've assigned the port 16 for 'Machine Gun', 'Smoke Screen' and 'Weapon Van'... correct? (Yeah, I've selected THREE of them, just to be sure to have something to light very quickly when I start the game).

But... when I run Spy Hunter, the only LED I have (on port 16) doesn't light on, or even doesn't flash... it does nothing  :-[

So let's check if LED Blinky can see what's coming from mame with the tool 'MAMEOutputTest.exe', and it seems ok ->



Do I have to change something in the mame setup? What could be the problem? Do you see some mistake in these configurations?

Thanks in advance for your support.