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: Button mapping help please  (Read 1528 times)

0 Members and 1 Guest are viewing this topic.

Apollo

  • Yes You Can Have A Custom Title
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1877
  • Last login:May 27, 2021, 10:49:02 pm
    • Eight Bells
Button mapping help please
« on: March 27, 2004, 10:03:26 pm »
Either I'm mental or there is no key for Player 2 Low Kick in Mortal Kombat 1? I'm trying to map the keys for player 2 and I'm trying to map low kick on to button 6. I have pressed every single button on my keyboard but low kick is just not there. What'a happening?
Thankyou.

froggerman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 311
  • Last login:March 01, 2015, 03:23:14 am
  • You want how many buttons?!

Apollo

  • Yes You Can Have A Custom Title
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1877
  • Last login:May 27, 2021, 10:49:02 pm
    • Eight Bells
Re:Button mapping help please
« Reply #2 on: March 27, 2004, 11:40:42 pm »
Thanks for your answer but I am aware that buttons 5 & 6 aren't mapped in MAME for player 2. What I need to know is the key stroke for player 2 Low Kick in Mortal Kombat 1 so I can then map it to button 6. Cheers.

froggerman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 311
  • Last login:March 01, 2015, 03:23:14 am
  • You want how many buttons?!
Re:Button mapping help please
« Reply #3 on: March 28, 2004, 12:12:28 am »
Sorry, I didn't read your post carefully enough. The only reference that I have to 'low kick' is for player 1.
label name="P1_BUTTON5" value="Low Kick"
I would have to assume that player 2 'Low Kick" is P2_BUTTON5. I checked my copy of Mortal Kombat and this button is not defined. Pressing Tab after the game has started and scrolling to the second page. This probably doesn't help much but there are a lot of Mortal Kombat players on here so perhaps they can give you more information.

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
Re:Button mapping help please
« Reply #4 on: March 28, 2004, 02:29:49 am »
Here's what I did.  Note: this assumes you're using an I-PAC or J-PAC using the default mame assignment settings.

1) In the mame/ctrlr folder, make a new folder called Cabinet

2) copy std.ini from mame/ctrlr to mame/ctrlr/Cabinet

3) rename the new copy of std.ini to default.ini

4) modify the P2 button 5 & 6 lines in default.ini to look like this...
P2_BUTTON5              "KEYCODE_I | JOYCODE_2_BUTTON5"
P2_BUTTON6              "KEYCODE_K | JOYCODE_2_BUTTON6"

5) if you don't already have a mame.ini file in your mame folder, run...
"mame -createconfig"  without the quotes to make one

6) in mame.ini, modify the "ctrlr" line under the "Input device options" section so it references your custom controller settings folder like this.  Don't change any other lines!...

### Input device options ###
ctrlr                   Cabinet

7) create custom ini files for any games where you want the assignment different from the default.ini file.  for example, this is my custom ini file for mortal kombat 3 (it works for UMK3 as well). Just cut out everything between the begin and end sections and past into a file named mk3.ini and save it in the mame/ctrlr/Cabinet folder...

-----------BEGIN mk3.ini--------------------------
# mk3.ini
#
# default button layout is:
# HP BK HK
# LP LK RN
#
# this file modifies it to:
# HP RN HK
# LP BK LK

P1_BUTTON2              "KEYCODE_Z | JOYCODE_1_BUTTON2 | MOUSECODE_1_BUTTON3"
P1_BUTTON5              "KEYCODE_X | JOYCODE_1_BUTTON5"
P1_BUTTON6              "KEYCODE_LALT | JOYCODE_1_BUTTON6"

P2_BUTTON2              "KEYCODE_I | JOYCODE_2_BUTTON2"
P2_BUTTON5              "KEYCODE_K | JOYCODE_2_BUTTON5"
P2_BUTTON6              "KEYCODE_S | JOYCODE_2_BUTTON6"
-----------END mk3.ini--------------------------


I hope this helps.  I'm still figuring this out myself so I thought I would pass along what I know.


You can use this same file for MK1 and MK2, just save copies of it in the Cabinet folder named mk.ini and mk2.ini.

Note that this takes whatever button 6 does and assigns it to button 2.  On MK1, the default button 6 seems to block but it won't work for a Sub-Zero slide.  On MK2, it seems to block for split second and then release, even if you hold the button.  I don't know what purpose that serves.

I think that eventually, I'll end up making the same assignment for buttons 2 and 5 in MK1 and MK2 so it just triggers the normal block button.

...
Krick

Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

Apollo

  • Yes You Can Have A Custom Title
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1877
  • Last login:May 27, 2021, 10:49:02 pm
    • Eight Bells
Re:Button mapping help please
« Reply #5 on: March 28, 2004, 04:43:18 am »
You are kidding me? All that just to make player 2 low kick work? Wow. Who would have thought?

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
Re:Button mapping help please
« Reply #6 on: March 29, 2004, 10:18:26 am »
I know.  Like Andy from Ultimarc said, the MAME devs need to have some pressure applied so they add default assignments for P2 buttons 5 & 6.

As for the MK specific re-assignments, I'm currently arguing that the current button assignment in the MK/MK2/MK3 driver is incorrect.   The MK2 board actually supports 6 button inputs even though the control factory control panel only has 5 buttons.  This was done because MK2 was often sold as a kit to convert Street Fighter 2 machines that have 6 buttons.  So buttons 2 & 5 in a capcom 6 button layout end up being "block" buttons.
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard