Main > Software Forum

Change keyboard config outside of Mame?

Pages: (1/2) > >>

Jakobud:

Okay, you know how you can edit the key configuration for the default Mame setup and for each individual game? Well is the only way to do this from within Mame?  Are there any programs that will edit the cfg files for each game for me?  Because they are not ascii editable text files as far as I can see.  Anyways, I'm wondering about this because there a lot of games that I would like to change the keyboard setup for.  I have a cabinet with 4 joysticks and buttons (from left to right, Player A, B,C and D).  For all two player games I want the players B and C (in the middle) to be players 1 and 2 respecitvely.  But for 4 players games (like dungeons and dragons, TMNT, XMen) I want players A  B C D to be players 1 2 3 and 4 respectivly.  But I don't want to have to go into every game that I want to change the key config for.  See my dilema?  There has to be some program out there were I can choose a particular key setup and apply it too many games all at once.  Anyone have any ideas or can anyone point me in the right direction?  Or are any programmers out there interested in writing a small little simple util to do this?  I'm sure I'm not the only one who would find this util useful.

Jakobud

Lilwolf:

I spent a ton of time (and still updating JFront) because I couldn't find any other FE that does this.

What I do.  I copy around the default.cfg file based on info for the game.

so setup 4way game once and all 4way games will run with those settings.  If you want all 2 player 8way 6 buttons (ie, SF games) you can swap the punch and kick buttons.  For all 4 player games you can have one setting and all 1,2,3 player games will ignore the stick on the left.

I'm hoping to have a release soon, but I haven't been able to code any for a week.  Hopefully in the next few weeks.

Jakobud:

Okay, so you are saying that the cfg files that are found in the cfg directory only have information in them regarding the keyboard setup for that one game and nothing else?  There is no information in the cfg files regarding the # of credits for the game, high score info or anything like that?

So for example, if I copy the XMen cfg file and rename the copy to be used with the TMNT cfg file, that will work with no problems?  In other words, TMNT will now have the same exact keyboard setup as XMen?  And this will not cause any sort of conflicts?

Jakobud

Howard_Casto:

yeah jk....  it works... iv'e tried it


u_rebelscum:


--- Quote ---...if I copy the XMen cfg file and rename the copy to be used with the TMNT cfg file, that will work with no problems?  In other words, TMNT will now have the same exact keyboard setup as XMen?  And this will not cause any sort of conflicts?

Jakobud
--- End quote ---


It will work only if the two games have the same input types because the [gamename].cfg files only save the used input settings.  i.e.:  A game with a trackball and no joystick .cfg file only contains info about the trackball settings, and no info about joysticks.

So, while your example might work because both have 4 joysticks with buttons, it won't work if you switch, say, SuperSprint and Xmen .cfg files, because Ssprint has a spinner and Xmen doesn't.  Copying and renaming default.cfg to any gamename might work because default.cfg saves all the input settings.


Pages: (1/2) > >>

Go to full version