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: Mame Control Configuration  (Read 7621 times)

0 Members and 1 Guest are viewing this topic.

jrmitch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:June 16, 2010, 12:46:31 pm
Mame Control Configuration
« 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
« Last Edit: November 16, 2007, 01:04:58 am by jrmitch »

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Mame Control Configuration
« Reply #1 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!


Hubble

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:December 04, 2022, 02:53:31 pm
Re: Mame Control Configuration
« Reply #2 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!

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Mame Control Configuration
« Reply #3 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 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".
Robin
Knowledge is Power

jrmitch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:June 16, 2010, 12:46:31 pm
Re: Mame Control Configuration
« Reply #4 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 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!

jrmitch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:June 16, 2010, 12:46:31 pm
Re: Mame Control Configuration
« Reply #5 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 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
« Last Edit: November 16, 2007, 06:21:56 pm by jrmitch »

jrmitch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:June 16, 2010, 12:46:31 pm
Re: Mame Control Configuration
« Reply #6 on: November 16, 2007, 06:31:52 pm »
Nevermind, I got it.  Thanks again!

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Mame Control Configuration
« Reply #7 on: November 17, 2007, 04:48:58 pm »
Nevermind, I got it.  Thanks again!

Great! :cheers:
Robin
Knowledge is Power

ldl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 30
  • Last login:April 20, 2020, 07:51:27 pm
Re: Mame Control Configuration
« Reply #8 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 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

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Control Configuration
« Reply #9 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

ldl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 30
  • Last login:April 20, 2020, 07:51:27 pm
Re: Mame Control Configuration
« Reply #10 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.