Jump to content

MAME 6 and 8 button setup


meltingcones

Recommended Posts

So on my control panel, I have 8 buttons and when I play a 6 button game, MAME uses the botton 4 buttons and the top 2... Is there a way to set it to use 3 from the top and 3 from the botton by default when in a 6 button game instead, since that is way more natural? Rather than editing the controller cfg manually for a zillion games?

Thanks!

Link to comment
Share on other sites

Press tab and go to "input all games" or something similar. There you can change the default buttons.

But if I changed all the bottons and used 3 on top and 3 on bottom for everything, that would screw up the 4 button games like the NeoGeo ones for example. :(

Link to comment
Share on other sites

This is a little complicated, but you should edit your controller file instead of making any changes to the default.cfg file. Your controller file can have default settings for all games and then you can have seperate key configs for the system Neo-Geo for example. I can't check my cab right now, but I can give you more info on this tomorrow if you don't figure it out.

Link to comment
Share on other sites

This is a little complicated, but you should edit your controller file instead of making any changes to the default.cfg file. Your controller file can have default settings for all games and then you can have seperate key configs for the system Neo-Geo for example. I can't check my cab right now, but I can give you more info on this tomorrow if you don't figure it out.

That would be awesome! Thanks :D Do you know if it's possible to customize it for ALL 4-button games and then ALL 6-button games rather than by individual systems like neogeo?

Link to comment
Share on other sites

It sounds like CFG Magician would do what you want.

http://forum.arcadecontrols.com/index.php?topic=88948.0

The problem is that the data files haven't been updated for the newer Mame versions.

You can create a set of data files yourself though using the instructions in the post below (post 3)

http://emumovies.com/forums/index.php/topic/2141-software-cfg-magician-163/#entry11583

I did it for Mame 0.154 and it all worked ok.

Link to comment
Share on other sites

Check your mame.ini and find "CORE INPUT OPTIONS". There is a line called "ctrlr". Mine is set to use Dime. In the Ctrlr folder, I have a file called Dime.cfg. Here is how it looks for me:

<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
   <system name="playch10">
       <video>
           <target index="0" view="Screen 0 Standard (4:3)" />
       </video>
       <input>
           <port tag=":BIOS" type="SERVICE" mask="2" defvalue="0">
               <newseq type="standard">
                   KEYCODE_K
               </newseq>
           </port>
       </input>
   </system>
   <system name="default">
       <input>
           <port type="P1_BUTTON1">
               <newseq type="standard">
                   KEYCODE_T OR GUNCODE_3_BUTTON1
               </newseq>
           </port>
           <port type="P1_BUTTON2">
               <newseq type="standard">
                   KEYCODE_y
               </newseq>
           </port>
           <port type="P1_BUTTON3">
               <newseq type="standard">
                   KEYCODE_u
               </newseq>
           </port>
           <port type="P1_BUTTON4">
               <newseq type="standard">
                   KEYCODE_b
               </newseq>
           </port>
           <port type="P1_BUTTON5">
               <newseq type="standard">
                   KEYCODE_o
               </newseq>
           </port>
           <port type="P1_BUTTON6">
               <newseq type="standard">
                   KEYCODE_h
               </newseq>
           </port>
           <port type="P1_BUTTON7">
               <newseq type="standard">
                   KEYCODE_j
               </newseq>
           </port>
           <port type="P1_BUTTON8">
               <newseq type="standard">
                   KEYCODE_k
               </newseq>
           </port>
            <port type="P1_BUTTON9">
               <newseq type="standard">
                   NONE
               </newseq>
           </port>
           <port type="P1_BUTTON10">
               <newseq type="standard">
                   NONE
               </newseq>
           </port>
           <port type="P1_BUTTON11">
               <newseq type="standard">
                   NONE
               </newseq>
           </port>
           <port type="P1_BUTTON12">
               <newseq type="standard">
                   NONE
               </newseq>
           </port>
           <port type="P1_BUTTON13">
               <newseq type="standard">
                   NONE
               </newseq>
           </port>
           <port type="P1_BUTTON14">
               <newseq type="standard">
                   NONE
               </newseq>
           </port>
           <port type="P1_BUTTON15">
               <newseq type="standard">
                   NONE
               </newseq>
           </port>
           <port type="P2_BUTTON1">
               <newseq type="standard">
                   GUNCODE_2_BUTTON1 OR KEYCODE_A
               </newseq>
           </port>
           <port type="P2_BUTTON2">
               <newseq type="standard">
                   KEYCODE_S
               </newseq>
           </port>
           <port type="P2_BUTTON3">
               <newseq type="standard">
                   KEYCODE_Q
               </newseq>
           </port>
           <port type="P2_BUTTON4">
               <newseq type="standard">
                   KEYCODE_W
               </newseq>
           </port>
           <port type="P2_BUTTON5">
               <newseq type="standard">
                   KEYCODE_E
               </newseq>
           </port>
           <port type="P2_BUTTON6">
               <newseq type="standard">
                   KEYCODE_Z
               </newseq>
           </port>
           <port type="P2_BUTTON7">
               <newseq type="standard">
                   KEYCODE_X
               </newseq>
           </port>
           <port type="P2_BUTTON8">
               <newseq type="standard">
                   KEYCODE_C
               </newseq>
           </port>
           <port type="START1">
               <newseq type="standard">
                   KEYCODE_ENTER
               </newseq>
           </port>
           <port type="START2">
               <newseq type="standard">
                   KEYCODE_M
               </newseq>
           </port>
           <port type="COIN1">
               <newseq type="standard">
                   KEYCODE_L
               </newseq>
           </port>
           <port type="COIN2">
               <newseq type="standard">
                   KEYCODE_V
               </newseq>
           </port>
           <port type="P1_PEDAL">
               <newseq type="increment">
                   KEYCODE_T
               </newseq>
               <newseq type="decrement">
                   NONE
               </newseq>
           </port>
           <port type="P1_PEDAL2">
               <newseq type="increment">
                   KEYCODE_Y
               </newseq>
               <newseq type="decrement">
                   NONE
               </newseq>
           </port>
           <port type="P1_PADDLE">
               <newseq type="increment">
                   KEYCODE_RIGHT
               </newseq>
               <newseq type="decrement">
                   KEYCODE_LEFT
               </newseq>
           </port>
           <port type="P1_POSITIONAL">
               <newseq type="increment">
                   KEYCODE_RIGHT
               </newseq>
               <newseq type="decrement">
                   KEYCODE_LEFT
               </newseq>
           </port>
           <port type="P1_DIAL">
               <newseq type="increment">
                   KEYCODE_RIGHT
               </newseq>
               <newseq type="decrement">
                   KEYCODE_LEFT
               </newseq>
           </port>
           <port type="P1_TRACKBALL_X">
               <newseq type="increment">
                   KEYCODE_RIGHT
               </newseq>
               <newseq type="decrement">
                   KEYCODE_LEFT
               </newseq>
           </port>
           <port type="P1_AD_STICK_X">
               <newseq type="increment">
                   KEYCODE_RIGHT
               </newseq>
               <newseq type="decrement">
                   KEYCODE_LEFT
               </newseq>
           </port>
           <port type="P1_LIGHTGUN_X">
               <newseq type="standard">
                   GUNCODE_3_XAXIS
               </newseq>
           </port>
           <port type="P2_LIGHTGUN_X">
               <newseq type="standard">
                   GUNCODE_2_XAXIS
               </newseq>
           </port>
           <port type="P1_LIGHTGUN_Y">
               <newseq type="standard">
                   GUNCODE_3_YAXIS
               </newseq>
           </port>
           <port type="P2_LIGHTGUN_Y">
               <newseq type="standard">
                   GUNCODE_2_YAXIS
               </newseq>
           </port>
           <port type="TILT">
               <newseq type="standard">
                   NONE
               </newseq>
           </port>
          <port type="UI_CONFIGURE">
               <newseq type="standard">
                   KEYCODE_J KEYCODE_ENTER
               </newseq>
           </port>
           <port type="UI_PAUSE">
               <newseq type="standard">
                   KEYCODE_K KEYCODE_ENTER
               </newseq>
           </port>
           <port type="UI_SELECT">
               <newseq type="standard">
                   KEYCODE_T
               </newseq>
           </port>
           <port type="UI_CANCEL">
               <newseq type="standard">
                   KEYCODE_ESC OR KEYCODE_V KEYCODE_C
               </newseq>
           </port>
       </input>
   </system>

   <system name="neogeo">
       <input>
           <port tag=":IN0" type="P1_BUTTON1" mask="4096" defvalue="4096">
               <newseq type="standard">
                   KEYCODE_J
               </newseq>
           </port>
           <port tag=":IN0" type="P1_BUTTON2" mask="8192" defvalue="8192">
               <newseq type="standard">
                   KEYCODE_B
               </newseq>
           </port>
           <port tag=":IN0" type="P1_BUTTON3" mask="16384" defvalue="16384">
               <newseq type="standard">
                   KEYCODE_O
               </newseq>
           </port>
           <port tag=":IN0" type="P1_BUTTON4" mask="32768" defvalue="32768">
               <newseq type="standard">
                   KEYCODE_H
               </newseq>
           </port>
           <port tag=":IN1" type="P2_BUTTON1" mask="4096" defvalue="4096">
               <newseq type="standard">
                   KEYCODE_X
               </newseq>
           </port>
           <port tag=":IN1" type="P2_BUTTON2" mask="8192" defvalue="8192">
               <newseq type="standard">
                   KEYCODE_W
               </newseq>
           </port>
           <port tag=":IN0" type="P2_BUTTON3" mask="16384" defvalue="16384">
               <newseq type="standard">
                   KEYCODE_E
               </newseq>
           </port>
           <port tag=":IN0" type="P2_BUTTON4" mask="32768" defvalue="32768">
               <newseq type="standard">
                   KEYCODE_Z
               </newseq>
           </port>
       </input>
   </system>
</mameconfig>

Here I have all my default configs and also a system specific config for Neo Geo. When you have set up everything you need in here. You can delete your default.cfg in your cfg folder.

Link to comment
Share on other sites

Thanks a lot to you two! I appreciate both tips and will definitely put the info to use. Dime333, is the NeoGeo the only 4-button system you felt you needed to manually configure? Or should I look for some others?

I haven't noticed any problems with other systems.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...