Help! Lr-Mame2003 Coin Buttons Not Mapping
-
@BrockBoyts any libretro core will only see buttons that have been mapped to a 'retropad' button. in retropie, this is done during the initial input configuration when you start it up for the first time. you need to do that and get your insert coin buttons as some otherwise unused buttons (I suggest R3 and L3). then you can map them in mame2003 via the tab button interface.
-
here's the link for how to repeat the configuration process: https://github.com/retropie/retropie-setup/wiki/RetroArch-Configuration#autoconfigurations
-
Hi. Thank you for your reply. I read through that article before and I am still trying to wrap my mind around about how to do it exactly.
So I will need to located the autoconfig file under configs/all or under configs/mame-libretro and edit it by assigning each coin button to R3 and L3? What would that script look like exactly?
Would editing the configs/all effect every system globally? I don't remember seeing a mame-libretro folder in configs. Do I make one if it is not there?
-
@BrockBoyts you shouldn't need to edit anything manually - just use the autoconfig in emulationstation described in the linked section :)
-
Hi. Again, thank you for your help. I navigated to where the autoconfigs should be and there are none.
This is what I have:
pi@retropie: /opt/retropie/emulators/retroarch
assets bin overlays retroarch.cfg shader shareIn the example video in the link you sent by Floob, he navigated to: /opt/retropie/emulators/RetroArch/configs
and listed all of his game controllers autoconfigs. There he opened the configs and assigned custom hotkeys etc.Where do I find those configs on my pi (v 3.8.1) and is that the correct place to customize buttons like my coin button?
I currently have my 2 player Xin-Mo configs in the config/all directory (starting on line 490) so it is more of a hardcode way of doing it. Would it be best to delete that and put it in the autoconfig for the Xin-Mo controller? If so, I can't seem to find it.
Thanks!
-
Retroarch controls have been integrated into EmulationStation and will be the first thing you see when you boot from the RetroPie SD image the first time. You can also access it from the start menu within emulationstation under the configure input option
just do this :) bind your coin buttons as R3 and L3, then open mame2003 and bind insert coin for p1 and 2 via the tab menu.
-
When I hit the start button in ES and access the Main Menu, I go to "Configure Input" and there is no R3 or L3. It only lets me assign to these controls:
D-Pad Up
D-Pad Down
D-Pad Left
D-Pad Right
Start
Select
Bottom
A
B
X
Y
Left Bottom
Right Bottom
Left Top
Right Top
Left Thumb
Right Thumb
Left Analog Up
Left Analog Down
Left Analog Left
Left Analog Right
Right Analog Up
Right Analog Down
Right Analog Left
Right Analog RightI tried to assign the coin buttons to Left Top and Right top but the buttons were still not being detected in the tap input menu in Mame.
Thoughts?
-
@BrockBoyts sorry, yeah it's "left thumb" and "right thumb". it doesn't really matter what buttons you pick just as long as it isn't something you already use for your other buttons.
top left (L1) and top right (L2) should be detected, though. not sure what's going on there.
-
Hey. I assigned the coin buttons to "left thumb" and "right thumb" and when I went into Mame to configure under Tab the buttons were still not detected.
I am at a loss too.
-
@BrockBoyts very strange! can you not reassign insert coin to any of your other buttons via TAB? like the various arcade buttons? (I know this isn't what you ultimately want to do, but it might help troubleshoot)
-
The coin buttons do nothing when I try to assign them in the tab menu for Lr-mame2003. Doesn't matter what button.
I bought a button kit from GameRoomSolutions.com. There is a guide on how to setup the config files to work with their button kit. When I followed these steps everything worked great except the coin buttons. The xin-mo buttons end up being hardcoded in the config/all file which I think might cause issues if I want to use usb snes controllers in the future too.
Do you see anything in this setup that could cause the issue with the coin buttons not able to be assigned in RetroArch/Lr-mame2003?
Link: https://gameroomsolutions.com/raspberry-pi-3-retropie-setup-easy-guide/
-
@BrockBoyts oh for sure. in fact, manually adjusting the config like that is the wrong thing to do for retropie - the automatic config i linked is the way to do it. now you're left with something of a mess.
-
@BrockBoyts said in Help! Lr-Mame2003 Coin Buttons Not Mapping:
The coin buttons do nothing when I try to assign them in the tab menu for Lr-mame2003. Doesn't matter what button.
also, that's not quite what I asked. you need to try other buttons (not the coin buttons). can you assign those as insert coin in mame? if so, that shows that it's your config adjustments being wrong for your insert coin buttons only and not some mame issue.
-
ok here's the problem - that guide says nothing about your extra 2 insert coin buttons. in the pictures and config it only lists 10 buttons for each player. if you want to add an extra one for each player, and make it behave with this horrible approach they have, you need to add to the config. eg:
input_player1_r3_btn = 10 input_player2_r3_btn = 11
now, I don't know what your setup is - whether these insert coin buttons are isolated to each player (like the face buttons) in which case the number would be the same for each, or whether they are just extra buttons for player1 (like the admin buttons) in which case they will be different numbers for each. I also don't know what number they would be.
-
To better answer your question, I CAN assign other buttons to insert coin in the tab menu in mame. So it isn't mame but my config that is the problem.
I have no desire to stick to gameroomsolutions button setup if it creates problems. In fact, last night I deleted those configs and restored the original default configs when installing retropie 3.8.1. I am starting from scratch and want to do it right.
I am attaching a picture. The numbers in the picture corresond to the pins on the xin-mo board. When I run a jstest on the xin-mo the #1 button is actually listed as #0 button on the raspberry pie. So button 3 is listed as button 2 on the raspberry pie. I hope that makes sense.
If this is the case, would I need to put the config from GameRoomSolutions into the automated config file for each xin-mo (js0 and js1)? I ask because when I do the automated setup on the start menu in ES I don't have any options to setup my 4 navigation buttons.
-
UPDATE
Good news! I guess I did not delete the es_input.cfg that I made via GameRoomSolutions guide. I deleted the retroarch config and I thought I deleted both but I guess not. Once I deleted it I was good to go.Now that I have the coin buttons working, where do I map my navigation and hotkeys for my four white LED buttons. I liked how I could bring up menus, exit games and use the mode button for hotkeys like load, save and volume control.
Would I do that in the auto config files?
-
@BrockBoyts
autoconfigs won't matter if you've got overrides in /opt/retropie/configs/all/retroarch.cfg - autoconfigs are used in the absence of any manual configuration. don't change anything - let's work with what you have.if the two coin buttons are (according to your diagram) player 2 buttons 9 and 10, which come back as player 2 8 and 9 in jstest, then you need to add this to retroarch.cfg, along with all the stuff that you've already added according the guide:
input_player2_r3_btn = 8
input_player2_l3_btn = 9then they should be bindable in mame, if I'm reading it right!
-
@dankcushions oh just read that you've got the coin buttons working but broken hotkeys? ok I think that should be simply adding this to /all/retroarch.cfg :
input_enable_hotkey_btn = 9
input_exit_emulator_btn = 8
input_menu_toggle_btn = 1
input_load_state_btn = 2
input_save_state_btn = 5
input_reset_btn = 3
input_state_slot_increase_axis = +0
input_state_slot_decrease_axis = -0
input_volume_up_axis = -1
input_volume_down_axis = +1(this is directly from the guide linked - if you did anything differently than that you need to repeat it)
-
Cool! Thank you! I will give this a shot. It's starting to make more sense to me.
I am staying away from the hard coding in configs/all now (at least for the buttons used for gameplay).
I will let you know how it goes.
-
@dankcushions said in Help! Lr-Mame2003 Coin Buttons Not Mapping:
input_enable_hotkey_btn = 9
input_exit_emulator_btn = 8
input_menu_toggle_btn = 1
input_load_state_btn = 2
input_save_state_btn = 5
input_reset_btn = 3
input_state_slot_increase_axis = +0
input_state_slot_decrease_axis = -0
input_volume_up_axis = -1
input_volume_down_axis = +1Hey. So I mapped the configs above and I don't think it is working correctly because the inputs don't distinguish between which player the "9" and "8" belong too. Do I need to add player 1 or something in the input commands?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.