Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: rooster on December 04, 2003, 12:46:00 pm

Title: cfg files
Post by: rooster on December 04, 2003, 12:46:00 pm
When I open cfg files to change button layouts, the cfg files are gibberish.  All I can see are x's, 0's etc, nothing makes sense.  I opened with Notepad, do I need to use a different program?  

For example I wanted to remap the buttons for Mortal Kombat.  I went to Mame/cfg/ then the mk.cfg file.  Is this the correct way to change the buttons?

I am sure this is a stupid question, but any help is appreciated.
Title: Re:cfg files
Post by: Tiger-Heli on December 04, 2003, 01:05:04 pm
When I open cfg files to change button layouts, the cfg files are gibberish.  All I can see are x's, 0's etc, nothing makes sense.  I opened with Notepad, do I need to use a different program?  

For example I wanted to remap the buttons for Mortal Kombat.  I went to Mame/cfg/ then the mk.cfg file.  Is this the correct way to change the buttons?

I am sure this is a stupid question, but any help is appreciated.
Stupider answer - Mame uses two types of .cfg files with the .cfg extension.  MAME/cfg saves dipswitch settings and such and can't be edited (as you found out).  (And actually the one's you want are .ini)

The ones you want are in mame/ctrlr/folder name (mine is "Myinputs")/gamename.ini (neogeo.ini), etc.

You also want to edit 2 lines in mame/mame.ini - (they might be commented out with a # ).  Under ### Windows path and directory options ###, add

ctrlr_directory         ctrlr

and under ### Input device options ###, add

ctrlr                   myinputs  (or whatever you named the folder)

Also see http://www.mameworld.net/easyemu/mamecontrolini.htm
or really any part of EasyEmu for more help.




Title: Re:cfg files
Post by: _Iz- on December 05, 2003, 05:40:39 pm
When I open cfg files to change button layouts, the cfg files are gibberish.  All I can see are x's, 0's etc, nothing makes sense.  I opened with Notepad, do I need to use a different program?  

For example I wanted to remap the buttons for Mortal Kombat.  I went to Mame/cfg/ then the mk.cfg file.  Is this the correct way to change the buttons?

I am sure this is a stupid question, but any help is appreciated.

Start a game, press tab, choose "input (this game)". Remap to your heart's content. This will change the cfg file...   note: don't pause the game when re-mapping controls!
Title: Re:cfg files
Post by: grafixmonkey on December 05, 2003, 10:34:58 pm
yeah it'll change it...  for that game.  If you write the .ini files manually you can remap for a variety of games, based on circumstances, like "is NeoGeo" or "is a Mortal Kombat 3 clone" or "uses a spinner".

Course then you still have to deal with the occasional individual case, when you find out that Mame thinks Puzzle Bobble has a spinner in it and such, but you don't have to remap nearly as many.
Title: Re:cfg files
Post by: allroy1975 on December 06, 2003, 03:00:42 am
when you make changes in MAME to the contol files (not dip switches) it appears to save those changes in the .cfg files..not INI

I'm having a hell of a time manually creating a MK.ini that works....

Allroy
Title: Re:cfg files
Post by: Tiger-Heli on December 06, 2003, 06:17:40 am
when you make changes in MAME to the contol files (not dip switches) it appears to save those changes in the .cfg files..not INI

I'm having a hell of a time manually creating a MK.ini that works....

Allroy
Ok, here's the problem - Changes to the DipSwitch settings and key assignments made through the User Interface (Tab Key - Inputs this game), are saved in the .cfg files and these override settings made in the .ini files.

Try this (although it's a pain), delete your .cfg files, get your .ini files working, then adjust your dip swithches through the UI but don't re-assign keys this way.

Eventually, I think MAME will add an .ini file structure for dip switches, and delete the .cfg files altogther, but no idea when this will occur.