RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Help with mapping 4 start buttons for Galaga/Ms. PacMan

    Scheduled Pinned Locked Moved Help and Support
    control issueinput issuekey mappingfbalphafba
    12 Posts 4 Posters 1.8k Views
    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.
    • J
      jmbooth2000
      last edited by

      I haven't done anything like this but I think what you are trying to do is have the four buttons do the following,

      • Btn 1 - Auto Start 1 Player PacMan
      • Btn 2 - Auto Start 2 Player PacMan
      • Btn 3 - Auto Start 1 Player Galaga
      • Btn 4 - Auto Start 2 Player Galaga

      Assuming I have the right idea I'd suggest looking up how to bind a keys for volume control. What you are trying to do is similar and rather than calling the script to change volume you would call a script that starts the appropriate game. Starting with a specific number of players is going to be hard. My only thought their is if there is a cheat to specify the number of players you might be able to specify that on the command line.

      I'm also guessing you will want any existing game to terminate if you press one of the start buttons. You could do this by having a line something like,

      kill `pgrep retroarch` &> /dev/null
      

      Hope this helps
      Jonathan

      J 1 Reply Last reply Reply Quote 0
      • J
        jmbooth2000 @jmbooth2000
        last edited by jmbooth2000

        @jmbooth2000 You need two things.

        1. Create four saved games states just after you have started the game and selected the number of players (i.e. pacman 1 player, pacman 2 player, galaga 1 player, and galaga 2 player). You will start retroarch with the saved state vice the rom thus bypassing the need to select the number of players.
        2. A variation on https://retropie.org.uk/forum/topic/17589/how-to-make-volume-up-and-volume-down-with-buttons/10
          where instead of changing the volume your script should kill any existing retroarch instance, then restart retroarch with appropriate game state.

        I'm pretty certain this should work. Please reply so I/others can know if this works.

        1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator
          last edited by

          @bengalsfan88 So I tried to take my advice and opened the input mapping interface, but it seems that the Start (right) (for both players) are not map-able in the RGUI input configuration. Looking at the ROM driver source, I see they it may have some overlapping in the mapping (or I'm just reading the source wrong).
          @barbudreadmon - do you know if the Start (right) input is purposely assigned to the Coin and it's hidden from the control mapping ? I've tried with the latest RA nighly (v0.2.97.44 9c55533) and I can only map Start (left) in the RGUI - no matter which device type I choose. Rom is 20pacgal, not one of the clones.

          B 1 Reply Last reply Reply Quote 0
          • B
            barbudreadmon @mitu
            last edited by

            @mitu The layout is unusual, so my algorythm fails mapping all buttons, i'm not too sure how i should deal with this special case, i guess i'll just map extra starts to the Retropad A buttons and let the final user remap as he want.

            FBNeo developer - github - forum

            mituM 1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @barbudreadmon
              last edited by mitu

              @barbudreadmon It is quite unusual - I've looked at the cabinet pictures and there's 5 buttons (2 on the left, 3 on the right) and a single joystick.
              @bengalsfan88 do you have a picture with the panel and how you arranged the buttons ?

              B 1 Reply Last reply Reply Quote 0
              • B
                barbudreadmon @mitu
                last edited by

                @mitu Now "Start (left)" is mapped to Retropad start, and "Start (right)" is mapped to Retropad A : https://github.com/libretro/fbalpha/commit/4adb2518645c782ff8d34afe8b9cc0828bc54e69

                FBNeo developer - github - forum

                mituM 2 Replies Last reply Reply Quote 2
                • mituM
                  mitu Global Moderator @barbudreadmon
                  last edited by

                  @barbudreadmon Thanks - I'll give it a shot to see how it works.

                  1 Reply Last reply Reply Quote 1
                  • mituM
                    mitu Global Moderator @barbudreadmon
                    last edited by mitu

                    @barbudreadmon OK, so it seems to work. As long as I have enough credits (P1 and P2):

                    • P1:Start starts a 1P Ms Pac-Man
                    • P1:A starts a 1P Galaga
                    • P2:Start starts a 2P Galaga
                    • P2:A starts a 2P Ms Pac-Man

                    @bengalsfan88 can you give it a try ?-Just update lr-fbalpha from source to get the latest modifications added by @barbudreadmon and try using the mapping for Start/A on each player to get the various starting options in the ROM.

                    EDIT: Ms Pac-Man.

                    B 1 Reply Last reply Reply Quote 1
                    • B
                      bengalsfan88 @mitu
                      last edited by

                      @mitu
                      I'm so sorry I haven't replied, I never checked back in until now because I was expecting to get an email when someone replied but it looks like my notification settings were just wrong. Thank you all so much for the help, I am trying your solution right now. I'll be sure to make a post when the project is complete and the cabinet is restored to her former glory!

                      Thanks again.

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @bengalsfan88
                        last edited by

                        @bengalsfan88 said in Help with mapping 4 start buttons for Galaga/Ms. PacMan:

                        I'll be sure to make a post when the project is complete and the cabinet is restored to her former glory!

                        I'd like to see that, thank you !

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

                        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.