EduInmigrante Posted June 9, 2019 Share Posted June 9, 2019 (edited) Hi guys i have a little problem. My mame version is: [mame0210] In my MAME, im trying to configure the imputs for player 1 and 2. I setup all i wanted but when i launch any game, the P1 and P2 Coin and Start just change to another key. Here is a screenshot of my GENERAL config. You can see i set my P1 Start to "9" and my Select to "N". But when i look at the game config, all are ok, except the Select and Coin. They are different! There is my default.cfg file. Inside my CFG folder there is only that file. <?xml version="1.0"?> <!-- This file is autogenerated; comments and unknown tags will be stripped --> <mameconfig version="10"> <system name="default"> <input> <port type="P1_JOYSTICK_UP"> <newseq type="standard"> KEYCODE_1 </newseq> </port> <port type="P1_JOYSTICK_DOWN"> <newseq type="standard"> KEYCODE_2 </newseq> </port> <port type="P1_JOYSTICK_LEFT"> <newseq type="standard"> KEYCODE_3 </newseq> </port> <port type="P1_JOYSTICK_RIGHT"> <newseq type="standard"> KEYCODE_4 </newseq> </port> <port type="P1_JOYSTICKRIGHT_UP"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_JOYSTICKRIGHT_DOWN"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_JOYSTICKRIGHT_LEFT"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_JOYSTICKRIGHT_RIGHT"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_JOYSTICKLEFT_UP"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_JOYSTICKLEFT_DOWN"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_JOYSTICKLEFT_LEFT"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_JOYSTICKLEFT_RIGHT"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_BUTTON1"> <newseq type="standard"> KEYCODE_Q </newseq> </port> <port type="P1_BUTTON2"> <newseq type="standard"> KEYCODE_W </newseq> </port> <port type="P1_BUTTON3"> <newseq type="standard"> KEYCODE_E </newseq> </port> <port type="P1_BUTTON4"> <newseq type="standard"> KEYCODE_A </newseq> </port> <port type="P1_BUTTON5"> <newseq type="standard"> KEYCODE_S </newseq> </port> <port type="P1_BUTTON6"> <newseq type="standard"> KEYCODE_D </newseq> </port> <port type="P1_BUTTON7"> <newseq type="standard"> KEYCODE_Z </newseq> </port> <port type="P1_BUTTON8"> <newseq type="standard"> KEYCODE_X </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="P1_BUTTON16"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_START"> <newseq type="standard"> KEYCODE_9 </newseq> </port> <port type="P1_SELECT"> <newseq type="standard"> KEYCODE_N </newseq> </port> <port type="P1_MAHJONG_A"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_B"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_C"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_D"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_E"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_F"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_G"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_H"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_I"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_J"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_K"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_L"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_M"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_N"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_O"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_P"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_Q"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_KAN"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_PON"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_CHI"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_REACH"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_RON"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_BET"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_LAST_CHANCE"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_SCORE"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_DOUBLE_UP"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_FLIP_FLOP"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_BIG"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_MAHJONG_SMALL"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_A"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_B"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_C"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_D"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_E"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_F"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_G"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_H"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_YES"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_HANAFUDA_NO"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_HIGH"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_LOW"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_HALF"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_DEAL"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_D_UP"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_TAKE"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_STAND"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_BET"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_KEYIN"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_KEYOUT"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_PAYOUT"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_DOOR"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_SERVICE"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_GAMBLE_BOOK"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_POKER_HOLD1"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_POKER_HOLD2"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_POKER_HOLD3"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_POKER_HOLD4"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_POKER_HOLD5"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_POKER_CANCEL"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_POKER_BET"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_SLOT_STOP1"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_SLOT_STOP2"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_SLOT_STOP3"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_SLOT_STOP4"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_SLOT_STOP_ALL"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_JOYSTICK_UP"> <newseq type="standard"> KEYCODE_5 </newseq> </port> <port type="P2_JOYSTICK_DOWN"> <newseq type="standard"> KEYCODE_6 </newseq> </port> <port type="P2_JOYSTICK_LEFT"> <newseq type="standard"> KEYCODE_7 </newseq> </port> <port type="P2_JOYSTICK_RIGHT"> <newseq type="standard"> KEYCODE_8 </newseq> </port> <port type="P2_BUTTON1"> <newseq type="standard"> KEYCODE_R </newseq> </port> <port type="P2_BUTTON2"> <newseq type="standard"> KEYCODE_T </newseq> </port> <port type="P2_BUTTON3"> <newseq type="standard"> KEYCODE_Y </newseq> </port> <port type="P2_BUTTON4"> <newseq type="standard"> KEYCODE_F </newseq> </port> <port type="P2_BUTTON5"> <newseq type="standard"> KEYCODE_G </newseq> </port> <port type="P2_BUTTON6"> <newseq type="standard"> KEYCODE_H </newseq> </port> <port type="P2_BUTTON7"> <newseq type="standard"> KEYCODE_V </newseq> </port> <port type="P2_BUTTON8"> <newseq type="standard"> KEYCODE_B </newseq> </port> <port type="P2_BUTTON9"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_BUTTON10"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_BUTTON11"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_BUTTON12"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_BUTTON13"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_BUTTON14"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_BUTTON15"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_BUTTON16"> <newseq type="standard"> NONE </newseq> </port> <port type="P2_START"> <newseq type="standard"> KEYCODE_0 </newseq> </port> <port type="P2_SELECT"> <newseq type="standard"> KEYCODE_M </newseq> </port> <port type="P1_PEDAL"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> </port> <port type="P2_PEDAL"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> </port> <port type="P1_PEDAL2"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> </port> <port type="P2_PEDAL2"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> </port> <port type="P1_PEDAL3"> <newseq type="increment"> NONE </newseq> </port> <port type="P2_PEDAL3"> <newseq type="increment"> NONE </newseq> </port> <port type="P1_PADDLE"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_PADDLE"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_PADDLE_V"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_PADDLE_V"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_POSITIONAL"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_POSITIONAL"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_POSITIONAL_V"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_POSITIONAL_V"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_DIAL"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_DIAL"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_DIAL_V"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_DIAL_V"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_TRACKBALL_X"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_TRACKBALL_X"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_TRACKBALL_Y"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_TRACKBALL_Y"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_AD_STICK_X"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_AD_STICK_X"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_AD_STICK_Y"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_AD_STICK_Y"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_AD_STICK_Z"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_AD_STICK_Z"> <newseq type="standard"> NONE </newseq> </port> <port type="P1_LIGHTGUN_X"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_LIGHTGUN_X"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_LIGHTGUN_Y"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_LIGHTGUN_Y"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_MOUSE_X"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_MOUSE_X"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P1_MOUSE_Y"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> <port type="P2_MOUSE_Y"> <newseq type="standard"> NONE </newseq> <newseq type="increment"> NONE </newseq> <newseq type="decrement"> NONE </newseq> </port> </input> </system> </mameconfig> So... Someone know whats happen and how can i fix it? Edited June 9, 2019 by EduInmigrante Quote Link to comment Share on other sites More sharing options...
sundogak Posted June 9, 2019 Share Posted June 9, 2019 (edited) A couple things to check. Does your MAME.ini file point to the proper CFG file and is that CFG file located in your CTLR directory? In my case the file is called "xbox2player.cfg" and in the CTLR directory (assuming you have stuck with defaults paths). Maybe an issue with the USB device IDs. I don't see a mapdevice entry in your CFG file. See MAME docs here. Example from my CFG for a 2 player xbox one setup: <input> <mapdevice device="XInput Player 1" controller="JOYCODE_1" /> <mapdevice device="XInput Player 2" controller="JOYCODE_2" /> Lastly, some still have issues even when everything seems to be setup as supposed to where basically the USB device IDs don't stick and the settings revert back. So the last option is to get all setup way you want within MAME. Then exit MAME. Go to the MAME\CFG folder and look for DEFAULT.CFG and set as read only. What is supposed to happen is your custom CFG in the CTRL directory is meant to overwrite the DEFAULT each time but for some (and did happen on my original setup as well) it doesn't seem to work the way expected consistently. Setting as read only doesn't hurt anything other than hassle of having to remove read only if need to make changes. I would try this last however, since somewhat hacky (but never had any issues when I had this way). Edited June 9, 2019 by sundogak Quote Link to comment Share on other sites More sharing options...
EduInmigrante Posted June 20, 2019 Author Share Posted June 20, 2019 Thanks for trying to help. After a lot of fail trying to fix it, using this MAME docs that you gave me and checking MAME.ini options, i gave up. All my problem is with player 1 and 2 coin and start. So y changed my Buttons to be those who MAME force me to use. All others buttons i can change and work fine, so.. i just, got to adapt myself to mame MAME WIN, i LOSE Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted June 20, 2019 Share Posted June 20, 2019 Since you're using a keyboard only and not an attached controller, you don't need to mess with mame.ini. In mame.ini, the section that sundogak pointed out (CORE INPUT OPTIONS), leave the "ctrlr" line empty.Start Mame. "Configure Options" "General Inputs" Under "Player 1 Controls" is where you changed "P1 Start" and "P1 Select" to "9" and "N". This is all good. Now under "General Inputs" go to "Other Controls" and change "1 Player Start" and "Coin 1" to "9" and "N".Note that a little lower down you'll see "Service 1" and Service 2" are set to "9" and "0" which may conflict with your new "1 Player Start" and "2 Players Start". Just highlight those and press Delete and they change to None. Return to Previous Menu(s) and be sure to "Save Configuration". You should be good to go. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.