Recalbox 4.1 - AdvanceMame key mapping
-
@garden-dwarf Dude, the wiki exlpains that it is for a FULL keyboard encoder, and a utility called xarcade2jstick will convert it to 2 seperate gamepads.
If you need helkp with the wiki page, please tell me, I know it may be confusing : https://github.com/recalbox/recalbox-os/wiki/keyboard-encoder-configuration-(EN)
-
Previously I have set the xarcade2jstick stuff, but if I'm right they are made to handle gamepads from various platforms, and not my arcade cabinet configuration.
I explain. Controls you setup in emulationstation are propagated to Mame. But if in your arcade cabinet you have more buttons than the amount you can setup in emulationstation, they are not available in Mame. That's the point. I cannot setup all my buttons in emulationstation, so I have chosen to setup a keyboard to emulate all buttons I need.
Sorry but I'm on this since weeks and I may be wrong, but from what I've experienced it is not a good idea for me to go for the xarcade2jstick.
Here is my configuration:
- 1 shift-button (iPac2 shift I mean, which extends twice the buttons).
- 1 game-button.
- 2 volume buttons (that's why I have re-built Recalbox, in order to map these buttons to control the system volume - with happykeys by the way).
- 1 player1 button.
- 1 player2 button.
- 2 joysticks.
- 16 "play button" (8 for player 1, 8 for player 2).
- 2 coin doors
PS: I have tried to launch advmame through ssh, and I still cannot get the advmame.rc file written with more information (input map "auto" stays to "auto" and does not provide more information, nothing written back to the file even if I change something through the interface). So I have modified a complete advmame.rc to change all "auto" to different keys. And the result is that it seems that I've found the key I was looking for. But when I change it, the change is applied to other keys too. Weird. If you want, I can provide you more information such as the "game" name. You can try it by yourself. Not easy.
-
@garden-dwarf what was your command line to launch advmame ? Do you know how to find how recalbox launches advmame ? either in the code, either in the logs ?
-
I login from my computer to recalbox using ssh root@recalbox (name on my network).
Then cd /recalbox/share
Then advmame -log -cfg /recalbox/share/temp.rc my_game (my_game replaced by the rom name without extension of course) -
I downloaded & compiled the latest version of AdvanceMame (something like the 3.1 is provided along with Recalbox 4.1, and the latest AdvMame is 3.5).
Running fine but problem still not solved. -
@garden-dwarf I guess it means it can't save to a custom file, which is an advancemame problem
-
@Substring I assume you are right, maybe some file/folder missing or so. I'll check further. Thanks.
-
@garden-dwarf You could eventually copy the .rc file from recalbox to the default one of advmame, make your mappings, compare changes and push them back to recalbox' .rc
-
@substring
If you have some time, could you please install sltblgpo.zip (belgian slot game, maybe not very interesting for you but representative of my issue).
In the game "input (this game)" you can configure the "select" and "stake" keys. If you leave mame and get back to it, you will see that the configuration is lost.
I tried with advancemame on RecalBox as well as on Windows, same results.
Maybe I have to address this to the advancemame team. -
@garden-dwarf Several people reported that custom inputs are not saved when not using the default advmame.rc file. What I do in such cass is launch advancemame from commandline, make all the edits I need, and read the syntax from the default config file (somwhere in
~/.advancemame
I think) -
@Substring
Thanks for the tips, I tried and it does not solve my issue.
If someone wants to spend time on it, trying the game I mentioned, he will understand what the problem is.