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: setting up buttons on mame config please help??  (Read 2814 times)

0 Members and 1 Guest are viewing this topic.

tyweed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 205
  • Last login:March 09, 2008, 01:29:03 pm
  • I want my own arcade controls!
setting up buttons on mame config please help??
« on: March 22, 2003, 02:44:13 pm »
Hi i'm having trouble i just got my cabinet up and i noticed in the second player button 5 and button 6 are not setup. So everytime i have to go in and set them up which can become a big pain in the but. So im trying to setup specific contrrols for certain games. I'm reading a tutorial easyemu and it says to go into controler ini files but i dont understand for example if i'm going to setup one for all the street fighters what do i name it? it says you need to know the driver for the game or something how can i find that out? any help on this would be great......

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:setting up buttons on mame config please help??
« Reply #1 on: March 22, 2003, 10:25:41 pm »
Hi i'm having trouble i just got my cabinet up and i noticed in the second player button 5 and button 6 are not setup. So everytime i have to go in and set them up which can become a big pain in the but. So im trying to setup specific contrrols for certain games. I'm reading a tutorial easyemu and it says to go into controler ini files but i dont understand for example if i'm going to setup one for all the street fighters what do i name it? it says you need to know the driver for the game or something how can i find that out? any help on this would be great......

Depends on if you use mame or mame32.

To find the driver name:
a) mame gamename -listsourcefile
b) mame gamename -verbose and look where is says "parsing xxx" just above "parsing gamename"
c) mame32 gamename -listsourcefile > output.txt and look in the output.txt file
d) start mame32 and select the source folders.

example:
D:\mame66>mame ssf2 -listsourcefile
ssf2     src/drivers/cps2.c

So name the file cps2.ini, and put it in the ctrlr/yourctrlrname/ folder.

You can also make a default.ini file that will effect all games, unless you override those settings with a drivename.ini or gamename.ini file.
Robin
Knowledge is Power

tyweed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 205
  • Last login:March 09, 2008, 01:29:03 pm
  • I want my own arcade controls!
Re:setting up buttons on mame config please help??
« Reply #2 on: March 24, 2003, 10:38:08 pm »
so i found the driver it is midyunit.c so i go to the crtlr folder make a folder called midyunit then add a midyunit.ini into that folder then i add -ctrlr  midyunit to the command line and njope nothing any ideas what i still may be doing wrong?

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:setting up buttons on mame config please help??
« Reply #3 on: March 25, 2003, 01:56:49 am »
so i found the driver it is midyunit.c so i go to the crtlr folder make a folder called midyunit then add a midyunit.ini into that folder then i add -ctrlr  midyunit to the command line and njope nothing any ideas what i still may be doing wrong?

First try deleting the cfg/gamename.cfg file (if it exists).

If that doesn't work, make sure you have in your mame.ini file:
ctrlr_directory   ctrlr
ctrlr   anyname
(second line is same as the commandline "-ctrlr anyname"  And I'm using "anyname" as the folder name to avoid confusion with the filename, but you can use any name you want)

Then make the folder ctrlr/anyname inside your mame folder.
Add the midtunit.ini file into the above folder.    Run mame with the -verbose option, exit the game, and look for lines that say
trying to parse ctrlr file windows.ini
trying to parse ctrlr file hotrodse/default.ini
trying to parse ctrlr file hotrodse/midtunit.ini


If none of those lines show, then either the ctrlr_directory or ctrlr options are not set up correctly.  If the first two lines show, but not the third, then the ini file is not named correctly.

Also, if you're talking about mortal kombat, the file should be called "midtunit.ini".  That's the name "mame mk -listsourcefile" outputs, even though the file is named midyunit.c.  You need to use the name that -listsourcefile outputs.
*edit* Opps, there are a few versions (4) of mk that use the midyunit.c driver, but most (9) use the midtunit.c driver.
« Last Edit: March 25, 2003, 03:27:35 am by u_rebelscum »
Robin
Knowledge is Power

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re:setting up buttons on mame config please help??
« Reply #4 on: March 25, 2003, 02:32:11 am »
urebel, he asked this question twice, I answered on the other thread, doh!

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:setting up buttons on mame config please help??
« Reply #5 on: March 25, 2003, 03:20:48 am »
urebel, he asked this question twice, I answered on the other thread, doh!

I noticed just after I answered this one (the second time).  To quote someone we know,  "*shrug*".
Robin
Knowledge is Power