Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: slider2732 on July 11, 2007, 10:22:28 am

Title: Gear shift in MAME ?
Post by: slider2732 on July 11, 2007, 10:22:28 am
Does anyone know how to make a driving games gear shift run in MAME ?
I can't seem to find relevant info anywhere.
Basic problem is the microswitch basis...at the moment it needs an up then a down movement to change a gear, rather than up for Low, down for High.
Title: Re: Gear shift in MAME ?
Post by: Angry_Radish on July 11, 2007, 10:46:22 am
It really depends on the game... I wish they would have some sort of global option to alter it, but for now you have to tweak each driver.
I ended up recompiling the poleposition driver as per this thread http://forum.arcadecontrols.com/index.php?topic=66254.msg671758#msg671758
Works great now, just a shame that the shifter functions arent done properly.
It's set up for people to play on keyboards, not the actual arcade controls. I could go on some sort of rant about the mame devs and their stated goals vs what actually comes out, but it's been done before  ;D
Title: Re: Gear shift in MAME ?
Post by: SavannahLion on July 11, 2007, 10:51:16 am
It's set up for people to play on keyboards, not the actual arcade controls. I could go on some sort of rant about the mame devs and their stated goals vs what actually comes out, but it's been done before  ;D

Makes me wonder why there hasn't been a fork yet.
Title: Re: Gear shift in MAME ?
Post by: slider2732 on July 11, 2007, 10:55:13 am
Thanks :)
I'll have a look at that.
From one article I read it does seem that games don't have a 'general' method of incorporating shifting. There are of course different methods of shifting that manufacturers built anyway.

What needs to happen is: no input = gear is low, an input = gear is high. Is that so difficult ? Wish I knew some C, but BASIC and COBOL are my only languages (even English can be a struggle on a Friday night).

Experiments today will probably include wiring the 3rd terminal on the microswitch and running it to 2 keyboard hack inputs. That way, it's low gear in one state and high gear when the switched is pressed. Can't see it working, but will give it a go.
As things are, it's like double clutching on an old car lol

 
Title: Re: Gear shift in MAME ?
Post by: Angry_Radish on July 11, 2007, 11:14:53 am
Hehe, exactly like double clutching :-)
I wouldn't bother with the 3rd terminal thing, I even suggested it in that thread I referenced, but then I tried it  :banghead:
It needs a toggle to shift the way it is... you could try using a cap to maybe debounce it, but even then I don't know if it would work.

You are right, there are tons of variables when it comes to shifters and driving controls, though  it would be nice to have the option per rom to set the type of controls.
Ah well, just makes some of my dedicated cabinets that much more fun  ;D
Title: Re: Gear shift in MAME ?
Post by: SirPeale on July 11, 2007, 11:18:02 am
A lot of games figure out what gear the shifter is in by what switch is *not* pressed.  IE  three out of the four switches are on at all times, the one that's not is the gear it's in.
Title: Re: Gear shift in MAME ?
Post by: ArtMAME on July 11, 2007, 11:39:47 am
I am trying to get my Pole Position shifter to work.  I think I will try the recompile.  I was just double shifting and happy with it... but my wife wants the arcade accurate controls, including the analog pedal...

So I will start experimenting with this soon. 
Title: Re: Gear shift in MAME ?
Post by: Angry_Radish on July 11, 2007, 12:21:10 pm
but my wife wants the arcade accurate controls, including the analog pedal...
 

Quickest way would be to use an apac, at least that's what I did..
http://forum.arcadecontrols.com/index.php?topic=65925.0

Title: Re: Gear shift in MAME ?
Post by: slider2732 on July 11, 2007, 12:45:13 pm
I'd like one, but don't have the capital right now...if the APAC is a solution and trusted one, i'll save up or sell something.
My main thing is about a backup for the Top Speed mainboard...yes, I know, how often do you hear that lol but true in this case. But also I wish to aquire more genuine boards, driving games now feature. Throwing the lot in the cab is the intention.
No ability to shift properly is a headache.

Also....here's odd. Pole Position II shifts in the double clutch way, but Top Speed does it's own thing, needing an up down which gives Low gear and then a quick up down gives full speed in high gear almost instantly. Wacky.
The double clutch doesn't work in Outrun or Wec Le Mans.