The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: jrmitch on November 16, 2007, 12:56:06 am

Title: Mame Control Configuration
Post by: jrmitch on November 16, 2007, 12:56:06 am
Does anybody know if it's possible to have Mame use a default controller configuration normally and then a separate one for a specific class of games?

Specifically I'd like to use a standard layout for all games except Neo Geo games.

Does anybody know if this is possible and if so, how?

I'm using an IPac, Mala as a frontend, and Mame .120 if that matters

Thanks,
Jeff
Title: Re: Mame Control Configuration
Post by: NOP on November 16, 2007, 09:37:05 am
I believe that's the way it's supposed to work.
There's a .cfg file for every ROM that you play. That .cfg file contains your settings for your controllers and other stuff. 

So boot up a neogeo game, change your controller settings using the menu from the TAB key while in-game, and make your changes.  From there, it would be a matter of copying the .cfg file from the neogeo title you tweaked to all of your other titles.  Then all neogeo games will have the same settings, and all your other ROMs will have the default ones.

If that's not what your after, forgive me, it's early.

-jeff!

Title: Re: Mame Control Configuration
Post by: Hubble on November 16, 2007, 10:52:14 am
Alternatively . . .

You could have a sparate emulator for your NeoGeo games, which would have its own controller configuration that would apply to all the games.

I use Nebula, which plays very nicely with MALA and emulates NeoGeo extremely well.  You just have to use a command wrapper to launch, which is available on John Crouse's website:

http://www.emuchrist.org/cpviewer

Good luck!
Title: Re: Mame Control Configuration
Post by: u_rebelscum on November 16, 2007, 01:19:22 pm
It can be done with a ctrlr file.  Official mame comes with a few ctrlr files you can use as examples.  Look at the hotrodse.cfg or xarcade.cfg files for almost exactly what you're talking about; they have a "default" and a "neogeo" input settings.

Look at list thread (http://forum.arcadecontrols.com/index.php?topic=73373.0) for about ctrlr files and neogeo. 

In your case, you'd need the default input mappings for your standard inputs, and neogeo mappings with all the inputs different than your "default".
Title: Re: Mame Control Configuration
Post by: jrmitch on November 16, 2007, 02:21:51 pm
It can be done with a ctrlr file.  Official mame comes with a few ctrlr files you can use as examples.  Look at the hotrodse.cfg or xarcade.cfg files for almost exactly what you're talking about; they have a "default" and a "neogeo" input settings.

Look at list thread (http://forum.arcadecontrols.com/index.php?topic=73373.0) for about ctrlr files and neogeo. 

In your case, you'd need the default input mappings for your standard inputs, and neogeo mappings with all the inputs different than your "default".

Now that's what I'm talk'n about.  Thanks u_rs!
Title: Re: Mame Control Configuration
Post by: jrmitch on November 16, 2007, 05:25:43 pm
It can be done with a ctrlr file.  Official mame comes with a few ctrlr files you can use as examples.  Look at the hotrodse.cfg or xarcade.cfg files for almost exactly what you're talking about; they have a "default" and a "neogeo" input settings.

Look at list thread (http://forum.arcadecontrols.com/index.php?topic=73373.0) for about ctrlr files and neogeo. 

In your case, you'd need the default input mappings for your standard inputs, and neogeo mappings with all the inputs different than your "default".

Hmm, I can't seem to get it to work.  Here's my config file:

Code: [Select]
<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="default" />
    <system name="neogeo">
<input>
<port type="P1_BUTTON1">
<newseq type="standard">NONE</newseq>
</port>

<port type="P1_BUTTON2">
<newseq type="standard">NONE</newseq>
</port>

<port type="P1_BUTTON3">
<newseq type="standard">NONE</newseq>
</port>
<port type="P1_BUTTON4">
<newseq type="standard">KEYCODE_LCONTROL</newseq>
</port>
<port type="P1_BUTTON5">
<newseq type="standard">KEYCODE_Z</newseq>
</port>
<port type="P1_BUTTON6">
<newseq type="standard">KEYCODE_X</newseq>
</port>
<port type="P1_BUTTON7">
<newseq type="standard">KEYCODE_LSHIFT</newseq>
</port>
<port type="P1_BUTTON8">
<newseq type="standard">NONE</newseq>
</port>
</input>
     </system>
</mameconfig>


It works ok with normal games, but whenever I boot up a neo geo game now.  None of the buttons work anymore except for ones that I didn't remap.  Any ideas what I'm missing?

Thanks,
Jeff
Title: Re: Mame Control Configuration
Post by: jrmitch on November 16, 2007, 06:31:52 pm
Nevermind, I got it.  Thanks again!
Title: Re: Mame Control Configuration
Post by: u_rebelscum on November 17, 2007, 04:48:58 pm
Nevermind, I got it.  Thanks again!

Great! :cheers:
Title: Re: Mame Control Configuration
Post by: ldl on December 31, 2007, 05:11:13 pm
It can be done with a ctrlr file.  Official mame comes with a few ctrlr files you can use as examples.  Look at the hotrodse.cfg or xarcade.cfg files for almost exactly what you're talking about; they have a "default" and a "neogeo" input settings.

Look at list thread (http://forum.arcadecontrols.com/index.php?topic=73373.0) for about ctrlr files and neogeo. 

In your case, you'd need the default input mappings for your standard inputs, and neogeo mappings with all the inputs different than your "default".

Hmm, I can't seem to get it to work.  Here's my config file:

Code: [Select]
<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="default" />
    <system name="neogeo">
<input>
<port type="P1_BUTTON1">
<newseq type="standard">NONE</newseq>
</port>

<port type="P1_BUTTON2">
<newseq type="standard">NONE</newseq>
</port>

<port type="P1_BUTTON3">
<newseq type="standard">NONE</newseq>
</port>
<port type="P1_BUTTON4">
<newseq type="standard">KEYCODE_LCONTROL</newseq>
</port>
<port type="P1_BUTTON5">
<newseq type="standard">KEYCODE_Z</newseq>
</port>
<port type="P1_BUTTON6">
<newseq type="standard">KEYCODE_X</newseq>
</port>
<port type="P1_BUTTON7">
<newseq type="standard">KEYCODE_LSHIFT</newseq>
</port>
<port type="P1_BUTTON8">
<newseq type="standard">NONE</newseq>
</port>
</input>
     </system>
</mameconfig>


It works ok with normal games, but whenever I boot up a neo geo game now.  None of the buttons work anymore except for ones that I didn't remap.  Any ideas what I'm missing?

Thanks,
Jeff
Nevermind, I got it.  Thanks again!

Great! :cheers:
Happy New Year to all.
jrmitch,
How did you get this to work? I have been trying for weeks without any luck. Please help. Thanks
Title: Re: Mame Control Configuration
Post by: headkaze on January 01, 2008, 01:48:40 am
Here is my IPAC2.cfg ctrlr file I use with a 7 button layout. Bottom row set for Neo Geo games.

In your mame.ini you will have to have

Code: [Select]
ctrlr                     IPAC2
Copy IPAC2.cfg into Mame's ctrlr folder
Title: Re: Mame Control Configuration
Post by: ldl on January 01, 2008, 07:14:13 am
Here is my IPAC2.cfg ctrlr file I use with a 7 button layout. Bottom row set for Neo Geo games.

In your mame.ini you will have to have

Code: [Select]
ctrlr                     IPAC2
Copy IPAC2.cfg into Mame's ctrlr folder
Headkaze
Thanks a million.
May the New Year bring wealth and joy to all.