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: What's controls.dat?  (Read 1156 times)

0 Members and 1 Guest are viewing this topic.

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
What's controls.dat?
« on: August 05, 2004, 11:33:03 am »
And how does it work?
-G
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:What's controls.dat?
« Reply #1 on: August 05, 2004, 11:56:59 am »
And how does it work?
-G
Well, it's actually controls.ini or controls.xml
Short answer is it's a file that lists MAME gamenames and what each button does, for example:

[armorcar]
gamename=Armored Car (set 1)
numPlayers=2
alternating=1
mirrored=1
tilt=0
usesService=0
miscDetails=I think a bit of how to play info might be necessary.  The sawhorse button releases a police barrier to crash cars.  The 2nd gear button makes you go faster, but only while it is held.  
P1NumButtons=2
P1Controls=4-way Joystick+joy4way
P1_BUTTON1=Sawhorse
P1_BUTTON2=2nd Gear
P1_JOYSTICK_DOWN=Down
P1_JOYSTICK_UP=Up
P1_JOYSTICK_LEFT=Left
P1_JOYSTICK_RIGHT=Right

By itself, it's only useful for reference purposes, but there is a viewer (johnny5) available that will load an image of your CP, check with MAME for your cntrl.ini assignment, check controls.ini for button functions and then label which button does what for you.

More details here: http://fe.donkeyfly.com/yabbse/index.php?board=10

Also see the thread "proof of concept of Howard's idea" for WIP on incorporating this into MAME.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:What's controls.dat?
« Reply #2 on: August 05, 2004, 12:27:28 pm »
That sounds really interesting.  I was wanting to  replace the images I have of real control panels in MAMEWAH with some 3-D renders of my own CP and some brief instructions so they would actually be useful.  This would be the way to do it.  I thought that was what it was.  

So how do I get started?  I looked around in the fe dev link you posted but there was a whole lot of code speak in there that was way above my head.  I can do a little coding and have a friend that can help but how would a newb get started?
-G
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8187
  • Last login:Today at 12:00:29 am
  • The Bears Still Suck!
Re:What's controls.dat?
« Reply #3 on: August 05, 2004, 12:34:04 pm »
You can click on the Controls.dat project link at the top of the page at http://fe.donkeyfly.com.  However, right now it is down do to maintainence.  Here's the FAQ.
http://fe.donkeyfly.com/controls/faq.php
« Last Edit: August 05, 2004, 01:48:32 pm by SirPoonga »

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:What's controls.dat?
« Reply #4 on: August 05, 2004, 12:35:53 pm »
That sounds really interesting.  I was wanting to  replace the images I have of real control panels in MAMEWAH with some 3-D renders of my own CP and some brief instructions so they would actually be useful.  This would be the way to do it.  I thought that was what it was.  

So how do I get started?  I looked around in the fe dev link you posted but there was a whole lot of code speak in there that was way above my head.  I can do a little coding and have a friend that can help but how would a newb get started?
-G
Ok, first download and unzip the file. http://fe.donkeyfly.com/yabbse/index.php?board=10;action=display;threadid=112  There's a default layout that comes with it.
You will need the VB6 runtime files and I never got it working under 98SE (works fine under 2K, though).

Eventually, you will want to set-up and image of your CP, and I had to manually position the labels to make them work.  See my comments in the support requests on the other forum for more hints.
 
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.