Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: tyweed on March 22, 2003, 02:44:13 pm

Title: setting up buttons on mame config please help??
Post by: tyweed 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......
Title: Re:setting up buttons on mame config please help??
Post by: u_rebelscum 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.
Title: Re:setting up buttons on mame config please help??
Post by: tyweed 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?
Title: Re:setting up buttons on mame config please help??
Post by: u_rebelscum 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.
Title: Re:setting up buttons on mame config please help??
Post by: SirPoonga on March 25, 2003, 02:32:11 am
urebel, he asked this question twice, I answered on the other thread, doh!
Title: Re:setting up buttons on mame config please help??
Post by: u_rebelscum 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*".