Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: tony.silveira on June 17, 2012, 05:28:04 pm

Title: mame catver/control dat - specify 270 / 360 wheel type?
Post by: tony.silveira on June 17, 2012, 05:28:04 pm
hey guys,

i am moving forward with an automated wheel extension with an actuator (thank you darth paul for all your help so far!).

i got a LOT to do before the parts come in.  Set up MALA, play around with controlchoose, etc.

i was wondering if any of the mame support files like catver or controls.dat specify which driving games use specific wheel types, 270 degree vs. 360 degree (are those the only two wheel types?)

once i get this going, i'd like to have controlchoose push my 360 wheel out for those specific games.  for the 270 degrees, i think i'll be using my star wars yoke.

anyone know?  many thanks
Title: Re: mame catver/control dat - specify 270 / 360 wheel type?
Post by: BadMouth on June 17, 2012, 06:55:50 pm
MALA gets the info from MAME.xml which it creates in the MAME folder the first time MALA is ran.

360 degree wheel games have "dial" as control type.
270 degree wheel games have "paddle" as control type.

If some aren't listed, or aren't listed correctly, you can modify MAME.xml by hand to change it.
Your ALL GAMES list will have to be refreshed before MALA sees the changes.

Additionally, you may have to delete and add back a game to your smaller game lists for the changes to take effect.
Title: Re: mame catver/control dat - specify 270 / 360 wheel type?
Post by: nick3092 on June 17, 2012, 06:57:39 pm
Controls.dat appears to have the info in the P1 controls field.  Not sure if it's always consistent. But you could probably parse it out somehow.  Here are 2 examples I found with a real quick search of 360 and 270.

Code: [Select]
[polepos]
gamename=Pole Position
numPlayers=1
alternating=0
mirrored=0
tilt=0
cocktail=0
usesService=0
miscDetails=Button 1 is actually the spacebar by default to avoid conflicts with the pedals.  The high/low shifter is emulated by a single toggle input in mame.
P1NumButtons=1
P1Controls=High-Low Shifter+button+P1_BUTTON1|360 Steering Wheel+dial|Pedal (Analog)+pedal|Pedal2 (Analog)+pedal2
P1_BUTTON1=High / Low
P1_DIAL_EXT=Right
P1_DIAL=Left
P1_PEDAL=Accelerate
P1_PEDAL2=Brake

[gtmr]
gamename=1000 Miglia: Great 1000 Miles Rally (94/07/18)
numPlayers=2
alternating=1
mirrored=1
tilt=1
cocktail=1
usesService=0
miscDetails=IMPORTANT NOTE:  This game has several options regarding the control type.  It has an optional brake pedal/button as well as the option to play the game with either a 270 wheel or an 8way joystick.  The controls shown here are the ones used on the dedicated model.  Notice the lack of the brake pedal.  It seems that the brake pedal was used in conversion kits as the dedicated cabinet didn't have one.
P1NumButtons=1
P1Controls=270 Steering Wheel+paddle|Pedal (Microswitch)+button+P1_BUTTON1
P1_BUTTON1=Accelerate
P1_PADDLE=Left
P1_PADDLE_EXT=Right

Title: Re: mame catver/control dat - specify 270 / 360 wheel type?
Post by: tony.silveira on June 18, 2012, 09:20:04 am
thank you gentlemen!