Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Recalbox 4.1 - AdvanceMame key mapping

    Emulator Arcade/PC/Console
    recalbox 4.1 advancemame key mapping
    2
    14
    6596
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Garden Dwarf
      Garden Dwarf last edited by

      Hi there,
      I have an iPac2 configured as keyboard connected to a Pi3.
      The Pi3 is running Recalbox 4.1 (I build it myself to add a package).
      Key mapping through AdvanceMame configuration menu is not saving correctly (if I quit AdvanceMame and get back into it, keys are reset to their defaults), so I have setup the keys myself in the advancemame.rc.origin file. This works pretty well.
      Now my issue is that in a specific game, a needed key is mapped to "w" (indicated in the key configuration menu "this game") and I don't know which input_map name it is.
      Example:
      I have some keys mapped such as "input_map[p1button1] keyboard[0,enter]".
      Other keys are mapped such as "input_map[XXX] auto".
      One of these "auto" should be the "w".
      As if I try to re-configure the key the changes are not saved, I don't know what is the "XXX".
      I don't know if it's clear enough, but roughly I need to know what are the keys mapped behind that "auto" configuration.
      Thanks in advance.

      Substring 1 Reply Last reply Reply Quote 0
      • Substring
        Substring @Garden Dwarf last edited by

        @garden-dwarf why don't you want to follow the wiki to make your ipac work as a gamepad ?

        Regarding the mapping problem in itself, i'd manually launch advmame with the default configuration file, map my keys, save, and have a look at the resulting configuration file.

        Advance mame is a rather well documented software, there is quite some info available on its web site.

        I can't give you the exact answer for your question, no pi at hand, not much time to tinker either

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        1 Reply Last reply Reply Quote 0
        • Garden Dwarf
          Garden Dwarf last edited by Garden Dwarf

          @Substring,

          Thank you for your time and your answer.

          The fact is that the wiki supposes that the iPac2 is a recent version (post-2015, if you go to the main website ultimarc.com into the download section they indicate the difference). The recent versions of iPac2 can be set as a gamepad, but this isn't working with an older one (and guess what, mine is older!). I have tried the wiki, then because I wasn't able to obtain good results I set it up as a keyboard, and it is working... until I encounter the above issue.

          Believe me I spent time on google and the different forums I found, but wasn't able to solve my issue.
          Your suggestion to launch AdvMame manually is worth to be tried, I'll do it. In the meantime, any other suggestion is welcome.

          Bye for now!

          Substring 1 Reply Last reply Reply Quote 0
          • Substring
            Substring @Garden Dwarf last edited by

            @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)

            Former dev - Please reply with @substring so that i am notified when you answer me
            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

            1 Reply Last reply Reply Quote 0
            • Garden Dwarf
              Garden Dwarf last edited by

              @Substring

              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.

              Substring 1 Reply Last reply Reply Quote 0
              • Substring
                Substring @Garden Dwarf last edited by

                @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 ?

                Former dev - Please reply with @substring so that i am notified when you answer me
                Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                1 Reply Last reply Reply Quote 0
                • Garden Dwarf
                  Garden Dwarf last edited by

                  @Substring

                  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)

                  Garden Dwarf 1 Reply Last reply Reply Quote 0
                  • Garden Dwarf
                    Garden Dwarf @Garden Dwarf last edited by Garden Dwarf

                    @Substring

                    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.

                    Substring 1 Reply Last reply Reply Quote 0
                    • Substring
                      Substring @Garden Dwarf last edited by

                      @garden-dwarf I guess it means it can't save to a custom file, which is an advancemame problem

                      Former dev - Please reply with @substring so that i am notified when you answer me
                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                      1 Reply Last reply Reply Quote 0
                      • Garden Dwarf
                        Garden Dwarf last edited by

                        @Substring I assume you are right, maybe some file/folder missing or so. I'll check further. Thanks.

                        Substring 1 Reply Last reply Reply Quote 0
                        • Substring
                          Substring @Garden Dwarf last edited by

                          @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

                          Former dev - Please reply with @substring so that i am notified when you answer me
                          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                          Garden Dwarf 1 Reply Last reply Reply Quote 0
                          • Garden Dwarf
                            Garden Dwarf @Substring last edited by

                            @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.

                            Substring 1 Reply Last reply Reply Quote 0
                            • Substring
                              Substring @Garden Dwarf last edited by

                              @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)

                              Former dev - Please reply with @substring so that i am notified when you answer me
                              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                              1 Reply Last reply Reply Quote 0
                              • Garden Dwarf
                                Garden Dwarf last edited by

                                @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.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                Want to support us ?

                                77
                                Online

                                98.7k
                                Users

                                28.1k
                                Topics

                                187.0k
                                Posts

                                Copyright © 2021 recalbox.com