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

    FBA 2012 Controller Mapping Player 1 and 2 controlled by 1st player controller

    Scheduled Pinned Locked Moved Help and Support
    fba2x.cfgfbacontrols
    13 Posts 4 Posters 3.9k 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.
    • TMNTturtlguyT
      TMNTturtlguy
      last edited by TMNTturtlguy

      Running PI 3 updated to current builds
      controller - 4 payer arcade setup using dragonrise usb encoders
      Issue - fba 2012 emulator only

      In my arcade cabinet I am running just about every emulator you can name. I have my 4 controllers set up and they run perfectly for all emulators including mame, fba, neogeo, nes, snes, megadrive, etc. The only emulator I cannot get to work is fba 2012.

      Issue: When i press any button using player one, it does the same action for player 2. If i hit coin, both player 1 and player 2 get coins. I select a player, punch, jump, i am controlling both player. When i use player 2 controls it controls player 3.

      I have tried to set the controls in retroarch and it doesn't do anything. I try to bind the controls in retroarch and it only allows me to bind player 1.

      I have looked at fba2x.cfg and it looks correct. Here is some of the code for each controller:

      [Joystick]
      # Get codes from "jstest /dev/input/js0"
      # from package "joystick"
      # Defaults to XBOX 360 Controller
      A_1=1
      B_1=0
      X_1=2
      
      #player 2 button configuration
      A_2=1
      B_2=0
      X_2=2
      

      Any thoughts would be awesome! thanks

      Edit: I just removed players 2-4 from fba2x.cfg and it didn't change anything. I don't think it has any effect on the controls? Edit #2. This is probably because fba2x.cfg is for pifiba, which I don it use! Lr-fba works perfectly, lr-fba 2012 does not, but they should both use the retroarch.cfg???

      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @TMNTturtlguy
        last edited by

        @tmntturtlguy

        I'm afraid it's related with the joystick-selection tool somehow. Something like what @obsidianspider reported in this thread.

        This is probably because fba2x.cfg is for pifiba, which I don it use! Lr-fba works perfectly, lr-fba 2012 does not, but they should both use the retroarch.cfg?

        You're right, that file has nothing to do with fba 2012. To let us help you we need to take a look at these files:

        • /opt/retropie/configs/all/retroarch.cfg (be sure to mask your retroachievements account info, if you have one)
        • /opt/retropie/configs/fba/retroarch.cfg
        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        TMNTturtlguyT 2 Replies Last reply Reply Quote 1
        • TMNTturtlguyT
          TMNTturtlguy @meleu
          last edited by

          @meleu thanks, I will be back at my pi in an hour or so and get that info.

          1 Reply Last reply Reply Quote 0
          • TMNTturtlguyT
            TMNTturtlguy @meleu
            last edited by

            @meleu

            here a is pastebin link to /opt/retropie/configs/all/retroarch.cfg: pastebin

            here is ~/fba/retroarch.cfg

            # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
            
            input_remapping_directory = "/opt/retropie/configs/fba/"
            
            #include "/opt/retropie/configs/all/retroarch.cfg"
            
            meleuM 1 Reply Last reply Reply Quote 0
            • meleuM
              meleu @TMNTturtlguy
              last edited by

              @tmntturtlguy

              # If desired, it is possible to override which joypads are being used for user 1 through 8.
              # First joypad available is 0.
              input_player1_joypad_index = "1"
              input_player2_joypad_index = "2"
              input_player3_joypad_index = "3"
              input_player4_joypad_index = "0"
              

              Not sure why this is happening only with fba2012. Maybe a bug with this core? I can't say with confidence...

              Can you launch some game with fba2012 with verbose mode enabled and then post the log?

              As a workaround, if you have access to the cables/connections my suggestion is to plug the joysticks in the same order as the player. I mean the joystick 0 as player1; joystick 1 as player2 and so on.

              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              edmaul69E 1 Reply Last reply Reply Quote 0
              • FlyingTomahawkF
                FlyingTomahawk
                last edited by

                Isn't this

                input_player1_joypad_index = "1"
                input_player2_joypad_index = "2"
                input_player3_joypad_index = "3"
                input_player4_joypad_index = "0"
                

                suppose to look like this?

                input_player1_joypad_index = "0"
                input_player2_joypad_index = "1"
                input_player3_joypad_index = "2"
                input_player4_joypad_index = "3"
                
                1 Reply Last reply Reply Quote 0
                • edmaul69E
                  edmaul69 @meleu
                  last edited by

                  @TMNTturtlguy in your /all/retroarch.cfg why is this numbered wrong? @meleu posted this too?

                  input_player1_joypad_index = "1"
                  input_player2_joypad_index = "2"
                  input_player3_joypad_index = "3"
                  input_player4_joypad_index = "0"
                  
                  1 Reply Last reply Reply Quote 0
                  • TMNTturtlguyT
                    TMNTturtlguy
                    last edited by

                    @meleu this is setup because i am using your joystick selection tool. It works great on everything except fba2012. I tried your work around of switching the plugs before i even started my posts yesterday. Originally they were ordered 2, 1, 3, 0 so tried switching them up. The best i could come up with was this, having 0 as the 4th player. The issue is that the encoder for 4th player is always reading as the first to connect, regardless which port i plug into. In order to fix this, i would have to disconnect every button and joystick wire from the USB encoders and hook this encoder up to player 1, and then rotate all encoders over 1 controller. That is a lot of work now that the control panel is all hooked up and i have to be so careful that every button is wired the same to each encoder. Good news is that I had another thread regarding which romsets to use for cps1, 2, and 3 and got a good tip about romset FBA v0.2.97.39 and it appears that this works well with lr-fba, and that runs great with your joystick selector too. I have tested about 10 roms and they are running so I am going to spend some more time testing out the roms and hopefully just not use 2012. Thanks for the help, I will report back.

                    @FlyingTomahawk That is what it is supposed to look like if the controls are all recognized in the correct order. I am using a pihut 7port powered usb hub and 4 dragonrise usb encoders. No matter what port i plug the 4th joystick into, that usb encoder always reads as joypad 0. I was able to get the other sticks ordered correctly, but 4th player is always 0 - as i stated to @meleu above, it is a lot of effort to remove the encoders and rewire for just this one system. I have N64 and Dreamcast all working correctly, and those are typically the hardest to setup!

                    @edmaul69 again, see above - they are not numbered wrong. The joystick tool from @meleu is awesome and lets you set this up so you can order your controls globally or per system.

                    edmaul69E 1 Reply Last reply Reply Quote 1
                    • edmaul69E
                      edmaul69 @TMNTturtlguy
                      last edited by

                      @tmntturtlguy have you tried system specific joystick-selection? Set the fba ones in whatever order makes it work.

                      TMNTturtlguyT 1 Reply Last reply Reply Quote 0
                      • TMNTturtlguyT
                        TMNTturtlguy @edmaul69
                        last edited by

                        @edmaul69 yes, I tried that. The current setting work for lr-fba. No matter what joystick is set to player 1 it always also controls player 2 simultaneously. I even removed players 2,3, and 4 and player 1 still controls player 1 and 2.

                        edmaul69E 1 Reply Last reply Reply Quote 0
                        • edmaul69E
                          edmaul69 @TMNTturtlguy
                          last edited by

                          @tmntturtlguy so just curious what games/ game companies have you tried?

                          TMNTturtlguyT 1 Reply Last reply Reply Quote 0
                          • TMNTturtlguyT
                            TMNTturtlguy @edmaul69
                            last edited by

                            @edmaul69 Not sure what your exact question is, but the only reason i was using fba-2012 was for capcom cps games. The cps2 and cps3 rom sets I had would only play on fba-2012. They worked fine on mysetup with 2 ps4 controllers, however when I put them onto my arcade cabinet with 4 players and needed to use the joystick selection tool to set my controls I had issues. I have now changed my roms to a different rom set and they all work in lr-fbalpha. Does that answer your question?

                            edmaul69E 1 Reply Last reply Reply Quote 1
                            • edmaul69E
                              edmaul69 @TMNTturtlguy
                              last edited by

                              @tmntturtlguy yeah that answers it. I was just going to test if i had any issues with some of the same games just in case but you more than answered the question.

                              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.