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: cfg files  (Read 1411 times)

0 Members and 1 Guest are viewing this topic.

rooster

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:December 06, 2003, 07:33:14 pm
cfg files
« 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.

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:cfg files
« Reply #1 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.




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.

_Iz-

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 703
  • Last login:August 08, 2025, 11:10:20 pm
  • Time to coin up!
Re:cfg files
« Reply #2 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!
« Last Edit: December 05, 2003, 05:42:26 pm by _Iz- »

grafixmonkey

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 743
  • Last login:October 16, 2010, 08:16:50 pm
  • must... tear self... away from... Tron...
    • My graphics/arcade/circuits site!
Re:cfg files
« Reply #3 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.
-----------
-- See my grafix, circuits and cab on my
-- new arcadey page:  http://www.bkgrafix.net

allroy1975

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 980
  • Last login:November 11, 2023, 08:51:48 pm
  • I'm a dork!
    • Matt's Mame
Re:cfg files
« Reply #4 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
They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

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:cfg files
« Reply #5 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.
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.