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: Spyhunter  (Read 2573 times)

0 Members and 1 Guest are viewing this topic.

Rocky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:December 30, 2009, 12:38:41 pm
  • I want to finish my cab before I retire!!
Spyhunter
« on: September 19, 2003, 01:39:07 pm »
I built a special Control Panel for Spy Hunter (the reason I got into MAME and Arcade collecting in the first place)

I used information from this link to build the wheel part and hack it and the pedal to the joystick port
http://www.gunpowder.freeserve.co.uk/wheels/main.htm

My panel has a wheel similar in looks to the original Spy hunter with 2 thumb and 2 trigger switches, a 2 speed shifter, plus a Van button, plus a player1 start button.

Here's my problem and request for help:

1. The spy hunter driver uses a toggle switch for the gear shifter. I am having problems getting my shifter to work right when I shift quickly (virtually every time  :P ). I was wondering if some of you programmer types could tell me where to look to change the source code to be more like Outrun (which has a separate input for low and high). This is actually how the original game played anyway.

u_rebel....
SirP....

2. I would like to change the default settings in the service mode (F2) so that it only needs one coin to start.  Any idea where I can change this.

Thanks for helping me.  I'm a has-been amateur programmer (started in the 70's and now I'm obsolete  :P )

Thanks for any help you can give me!


Rocky

jerryjanis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:February 02, 2023, 01:56:44 am
  • Skate or Die!!!
    • Jake's Joystick
Re:Spyhunter
« Reply #1 on: September 19, 2003, 03:37:45 pm »
Take a look at in mame\src\drivers\mcr3.c in the section, "INPUT_PORTS_START( spyhunt )".

This is the line:

PORT_BITX(0x10, IP_ACTIVE_LOW, IPT_BUTTON6 | IPF_TOGGLE, "Gear Shift", KEYCODE_ENTER, IP_JOY_DEFAULT )

Tailgunner

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1156
  • Last login:October 06, 2009, 01:21:16 pm
  • ...
Re:Spyhunter
« Reply #2 on: September 19, 2003, 06:25:50 pm »
Actually both the upright and sitdown Spy Hunter cabs use a single cherry switch for the shifter.

Changing the service mode default for number of coins to start isn't something you'll find in the MAME driver. You'd have to hack into the game program itself to change that.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:Spyhunter
« Reply #3 on: September 20, 2003, 04:34:08 am »
1. The spy hunter driver uses a toggle switch for the gear shifter. I am having problems getting my shifter to work right when I shift quickly (virtually every time  :P ). I was wondering if some of you programmer types could tell me where to look to change the source code to be more like Outrun (which has a separate input for low and high). This is actually how the original game played anyway.

As said prior, the original only had on switch.  IIRC, open (not pressed) is low, closed (pressed) is high.  The driver uses a toggle so the person wouldn't need to hold down a key on the keyboard.

Look at the line jerryjanis posted, remove the "IPF_TOGGLE" flag (including the "|" just in front of it) and recompile mame.  Then map you high gear to the shift "button".

Quote
2. I would like to change the default settings in the service mode (F2) so that it only needs one coin to start.  Any idea where I can change this.

Hmm, it doesn't look like this is saved in nvram.  If the original game didn't save this setting when the plug was pulled, mame wouldn't save it either.  However, if the original was supposed to save it, then this is a bug in the mame driver.

Quote
Thanks for helping me.  I'm a has-been amateur programmer (started in the 70's and now I'm obsolete  :P )

Thanks for any help you can give me!


Rocky

Old school is cool! :)  
Mame is in C, and the driver and core code doesn't have any of the new or windows-only stuff; you only have to worry about that in the windows specific code in the src/windows folder.  Mame drivers use a lot of MACROS, so if you don't mind not knowing how the macros do it, "all" you need to know is what the macros are supposed to be "saying" if you only want to edit the drivers.

Take the "INPUT_PORTS_START( spyhunt )" macro.  It means "the list of inputs for spyhunter start here".  See? ;)  Not too hard (except that there's a lot of macros).
Robin
Knowledge is Power

Tailgunner

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1156
  • Last login:October 06, 2009, 01:21:16 pm
  • ...
Re:Spyhunter
« Reply #4 on: September 20, 2003, 11:13:08 am »
Hmm, it doesn't look like this is saved in nvram.  If the original game didn't save this setting when the plug was pulled, mame wouldn't save it either.  However, if the original was supposed to save it, then this is a bug in the mame driver.

The original uses a backup battery to keep the settings/high scores stored in RAM while the machine is powered off. The Mame version acts like a cab where the battery is dead, minus all the associated problems from it leaking acid all over the PCBs. ;)

Rocky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:December 30, 2009, 12:38:41 pm
  • I want to finish my cab before I retire!!
Re:Spyhunter
« Reply #5 on: September 21, 2003, 10:15:25 pm »
Thanks for the information. I didn't know that the original used only one micro-switch  :o

I'll try the changes to the gear shift input that was suggested.  I looked for the information about the coin input, and I couldn't find anything, so you are probably right about it being in the ROM.  I remember that the one I used to play at the five and dime would default to 1 coin on startup, so I figured I could change it, it was probably using a battery to save the settings.

You guys are really groovy  (is that old-school enough?  ;D )


Rocky



Rocky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:December 30, 2009, 12:38:41 pm
  • I want to finish my cab before I retire!!
Re:Spyhunter
« Reply #6 on: September 23, 2003, 09:05:48 am »
Just wanted to let you know that I made the change in the mcr3.c file and my shifter works great now.

Spy Hunter is so much fun to play with the right controls!!!


Thanks,


Rocky

jerryjanis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:February 02, 2023, 01:56:44 am
  • Skate or Die!!!
    • Jake's Joystick
Re:Spyhunter
« Reply #7 on: September 23, 2003, 12:43:35 pm »
Just wanted to let you know that I made the change in the mcr3.c file and my shifter works great now.

Spy Hunter is so much fun to play with the right controls!!!


Thanks,


Rocky


Congratulations on getting it all set up!

I have a question about Spy Hunter.  I used to love playing that game as a kid.  I think I remember that sometimes it was great fun, and then other times when I shifted into high gear, I would go too fast to control and die die die.  As an adult, I've only seen the high gear send me flying way too fast.  Probably the times that it was great fun was before I ever understood that I should be shifting into high gear at all.  Can you explain to me what the deal with high gear is?  Why does it kill me so?  How do you play Spy Hunter?

_Iz-

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 703
  • Last login:Yesterday at 07:00:43 pm
  • Time to coin up!
Re:Spyhunter
« Reply #8 on: September 23, 2003, 01:56:07 pm »
Just wanted to let you know that I made the change in the mcr3.c file and my shifter works great now.

Spy Hunter is so much fun to play with the right controls!!!


Thanks,


Rocky


Congratulations on getting it all set up!

I have a question about Spy Hunter.  I used to love playing that game as a kid.  I think I remember that sometimes it was great fun, and then other times when I shifted into high gear, I would go too fast to control and die die die.  As an adult, I've only seen the high gear send me flying way too fast.  Probably the times that it was great fun was before I ever understood that I should be shifting into high gear at all.  Can you explain to me what the deal with high gear is?  Why does it kill me so?  How do you play Spy Hunter?

I think you need to ease off on the lead foot when you're in high gear...   ::) :P

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:Spyhunter
« Reply #9 on: September 23, 2003, 04:09:18 pm »
Spy Hunter is so much fun to play with the right controls!!!

I have a question about Spy Hunter.  I used to love playing that game as a kid.  I think I remember that sometimes it was great fun, and then other times when I shifted into high gear, I would go too fast to control and die die die.  As an adult, I've only seen the high gear send me flying way too fast.  Probably the times that it was great fun was before I ever understood that I should be shifting into high gear at all.  Can you explain to me what the deal with high gear is?  Why does it kill me so?  How do you play Spy Hunter?

I think you need to ease off on the lead foot when you're in high gear...   ::) :P

... plus map (& use) an analog input for the pedal instead of a button, so you can ease off on the lead foot.
Robin
Knowledge is Power

Rocky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:December 30, 2009, 12:38:41 pm
  • I want to finish my cab before I retire!!
Re:Spyhunter
« Reply #10 on: September 24, 2003, 12:46:59 pm »
jerryjanis,

what those guys said...

Spy Hunter is only playable with an analog wheel and an analog pedal (plus 4 buttons really handy for the weapons).  You can't just floor it or you die. In low gear, you go too slow to make it very far in the game.

Man, there's nothing like playing the game with the proper controls and having that Peter Gunn theme playing in the background as you waste the bad guys  8)


Rocky


Aceldamor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 878
  • Last login:October 25, 2019, 05:10:51 pm
  • You know you hear the music in your head...
Re:Spyhunter
« Reply #11 on: September 26, 2003, 11:40:25 am »
High gear served 2 purposes....

First, if you managed to get to the 2nd fork in the road where you enter the weapons van for the 2nd time before time ran out, it gave you a bonus life.

Second, as you get farther, you need to hit high gear to avoid getting tagged from the back by the cars with the sything(sp) wheels.
Fuzzy Wuzzy was a woman!

Rocky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:December 30, 2009, 12:38:41 pm
  • I want to finish my cab before I retire!!
Re:Spyhunter
« Reply #12 on: September 27, 2003, 12:02:59 pm »
Actually,

When the timer runs out, you get one bonus car, unless you've scored 18,000, in which case you get two bonus cars.

Also, playing Spy Hunter in low gear only is like surviving only the cherry board of pacman and saying you know how to play it.  :-\  


Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:Spyhunter
« Reply #13 on: September 27, 2003, 10:51:56 pm »
The real issue is the fact that it's not in the arcade.  The original machine had a physical limiter which kept top speed at about 80%.  In mame no such thing and thus you can go much faster than you are supposed to.