• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Spy Hunter

Scheduled Pinned Locked Moved Help and Support
mame2003spy hunter
33 Posts 6 Posters 7.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.
  • A
    Alturis @mediamogul
    last edited by 31 Jan 2018, 15:40

    @mediamogul I tried to solve that by following the tutorial on swapping player joypad assignments. I created a retroarch.cfg_default and retroarch.cfg_xboxdrv and added lines to the shell script to rm retroarch.cfg and cp one or the other in its place selectively based on the same logic.

    But I think I am still missing some piece to this puzzle.
    My 360 controller is normally event0 but after running the xboxdrv it still shows its registering it as event3

    Your Xbox/Xbox360 controller should now be available as:
      /dev/input/js1
      /dev/input/event3
    

    I am thinking the missing piece is getting retroarch to listen to event3 at all.

    retroarch.cfg_default

    # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
    
    input_remapping_directory = "/opt/retropie/configs/arcade/"
    
    #include "/opt/retropie/configs/all/retroarch.cfg"
    

    retroarch.cfg_xboxdrv

    # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
    
    input_remapping_directory = "/opt/retropie/configs/arcade/"
    
    input_player1_joypad_index = "1"
    input_player2_joypad_index = "0"
    #input_player2_analog_dpad_mode = 1
    
    #include "/opt/retropie/configs/all/retroarch.cfg"
    

    RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

    M 1 Reply Last reply 31 Jan 2018, 15:54 Reply Quote 0
    • M
      mediamogul Global Moderator @Alturis
      last edited by 31 Jan 2018, 15:54

      @alturis

      I tried to solve that by following the tutorial on swapping player joypad assignments.

      Which tutorial are you referencing? If you haven't tried it already, this sounds like a good use case for @meleu's joystick selection script.

      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

      A 1 Reply Last reply 31 Jan 2018, 16:41 Reply Quote 0
      • A
        Alturis @mediamogul
        last edited by Alturis 31 Jan 2018, 16:41

        @meleu / @mediamogul I am all ears!

        I was referring to all the info on how to setup xboxdrv here:
        https://github.com/RetroPie/RetroPie-Setup/wiki/Universal-Controller-Calibration-&-Mapping-Using-xboxdrv

        Actually I looked up what you are referring to and I think that would be a bit over the top for what I am looking to do.
        https://github.com/meleu/RetroPie-joystick-selection

        One of the things that is important to me with this setup is that when you select a game it would "just work" without popping up any dialogs or showing the retropie "dos" looking dialogs etc.

        So ultimately any solution I have on it I would want it to just detect that a certain game is running and setup the controls in a way that makes the best sense for that title and not require the player to see any of this going on.

        RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

        1 Reply Last reply Reply Quote 0
        • A
          Alturis @spud11
          last edited by 31 Jan 2018, 17:02

          @spud11 said in Spy Hunter:

          The code above is very similar to what I have and it works well.

          Would you mind posting the exact syntax of your xboxdrv parameters?

          RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

          S 1 Reply Last reply 2 Feb 2018, 06:55 Reply Quote 0
          • S
            spud11 @Alturis
            last edited by spud11 2 Feb 2018, 06:58 2 Feb 2018, 06:55

            @alturis I have 4 DragonRise usb joysticks. I've just copied Player 1's input below for Advance Mame (but I have similar setups for FBA and Mame 2003). Each button I have corresponds to a key on the keyboard. In Mame, I pressed TAB and allocated keys to up/down/left/right etc. Those keys correspond to the keys allocated in xboxdrv:

            ### To exit AdvMame automatically, I've created a macro in /opt/retropie/configs/all and mapped back+rt to back+rt=macro:/opt/configs/all/advmame_exit.macro  .  I've made this file executable.
            ### The contents of this file are:
            ### send KEY_ESC 1
            ### wait 50
            ### send KEY_DOWN 1
            ### wait 50
            ### send KEY_ENTER 1
            Player1_AdvMame_Sim="sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1 \
            --silent \
            --detach-kernel-driver \
            --deadzone=4000 \
            --deadzone-trigger 15% \
            --force-feedback \
            --mimic-xpad \
            --trigger-as-button \
            --ui-buttonmap tl=void,tr=void,guide=void \
            --evdev /dev/input/by-path/platform-3f980000.usb-usb-0:1.3.3:1.0-event-joystick \
            --device-name "Player_1" \
            --evdev-absmap ABS_X=y1,ABS_Y=x1 \
            --evdev-keymap BTN_THUMB2=a,BTN_PINKIE=b,BTN_TRIGGER=x,BTN_THUMB=y,BTN_TOP2=lb,BTN_TOP=rb,BTN_BASE3=back,BTN_BASE6=start,BTN_BASE2=lt,BTN_BASE5=rt \
            --ui-axismap X1=KEY_LEFT:KEY_RIGHT,Y1=KEY_UP:KEY_DOWN \
            --ui-buttonmap a=KEY_LEFTCTRL,b=KEY_LEFTALT,x=KEY_SPACE,y=KEY_LEFTSHIFT,lb=KEY_C,rb=KEY_V,back=KEY_UNKNOWN,start=KEY_UNKNOWN,lt=KEY_5+KEY_1,rt=KEY_6+KEY_2 \
            --ui-buttonmap start+back=KEY_LEFTSHIFT+KEY_F7+KEY_A,back+start=KEY_F7+KEY_A \
            --ui-buttonmap back+rt=macro:/opt/retropie/configs/all/advmame_exit.macro"
            

            I also have a file called 99-xboxdrv.rules which has the following content:

            SUBSYSTEM=="input", ATTRS{name}=="Player_1", GROUP="users", MODE="0666", ENV{ID_INPUT_KEYBOARD}="1"
            SUBSYSTEM=="input", ATTRS{name}=="Player_2", GROUP="users", MODE="0666", ENV{ID_INPUT_KEYBOARD}="1"
            SUBSYSTEM=="input", ATTRS{name}=="Player_3", GROUP="users", MODE="0666", ENV{ID_INPUT_KEYBOARD}="1"
            SUBSYSTEM=="input", ATTRS{name}=="Player_4", GROUP="users", MODE="0666", ENV{ID_INPUT_KEYBOARD}="1"
            

            My runcommand-onstart file is about 100Kb in size because it covers most emulators, so it's too big to insert here in its entirety.

            RetroPie v4.4.1 • RPi3 Model B • 5.1V 2.5A PSU • 32GB SanDisk Extreme microSD • 2TB Toshiba Canvio Basics Portable USB 3.0 hard drive • 4 x DragonRise USB Arcade joysticks • 2 x TurboTwist spinners • 1 x USB trackball • 1 x PS4 wireless • 1 x 8BitDo Zero

            A 1 Reply Last reply 3 Feb 2018, 18:28 Reply Quote 0
            • A
              Alturis @spud11
              last edited by 3 Feb 2018, 18:28

              @spud11 All good info thank you. Ultimately I am going to be putting this pi into a bartop (https://gameroomsolutions.com/shop/bartop-arcade-kit-deluxe) so I think I am going to come back around and revisit this once I have that setup so that I can analyze the input of those joysticks and buttons.

              But I should probably continue getting this 360 controller to work with it so that I buildup the knowledge I will need about where I am going wrong right now.

              RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

              H 1 Reply Last reply 3 Feb 2018, 18:48 Reply Quote 0
              • H
                herb_fargus administrators @Alturis
                last edited by 3 Feb 2018, 18:48

                @alturis

                “GUTS” Mega Pack
                Save your time making sure you got everything! Includes everything except the monitor you will need.
                Raspberry Pi3 computer; RPI certified power supply; 200gb microsd – Pre-flashed with attract mode/retropie; pre-configured for our control kits; le

                These people are greedy wankers it's a pity people support them financially.

                If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                S 1 Reply Last reply 4 Feb 2018, 11:09 Reply Quote 0
                • S
                  spud11 @herb_fargus
                  last edited by 4 Feb 2018, 11:09

                  @herb_fargus Have a look at the "Plug & Play Pack" - $1,219.98!

                  RetroPie v4.4.1 • RPi3 Model B • 5.1V 2.5A PSU • 32GB SanDisk Extreme microSD • 2TB Toshiba Canvio Basics Portable USB 3.0 hard drive • 4 x DragonRise USB Arcade joysticks • 2 x TurboTwist spinners • 1 x USB trackball • 1 x PS4 wireless • 1 x 8BitDo Zero

                  A 1 Reply Last reply 4 Feb 2018, 13:29 Reply Quote 0
                  • A
                    Alturis @spud11
                    last edited by 4 Feb 2018, 13:29

                    @herb_fargus Well I have heard great things about the quality of their cabinets themselves and ease of setup. As I already have my pi I am just getting a "mini-guts" package with just speakers and other hardware like a marquee light. Very reasonable price on all that I thought.

                    RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

                    H 1 Reply Last reply 4 Feb 2018, 17:54 Reply Quote 0
                    • A
                      Alturis
                      last edited by 4 Feb 2018, 13:58

                      Ultimately without a steering wheel and gas pedal control for this game, I think it ends up in the category of a nostalgia entry in my games list.

                      But I discovered some much easier ways to bring it to the playable category but weakly at that. One thing that hung me up for a long while was figuring out where the mame2010 per-game input mappings are kept. I had experimented with changing the button assignments in the in-game emulator menu and left it in bad state. I finally discovered that the per game input maps are stored in /home/pi/cfg - which is completely different than any other emulator location I have found.

                      Once I figured out how to start from scratch on that and that I needed a keyboard hooked up to work the mame2010 emulator options menu I was able to very easily configure a basic input setup that would at least work and be "playable."

                      For the game to be fun it requires that the steering and gas pedal are both analog. So will continue to pursue utilizing xboxdrv to that end.

                      RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

                      1 Reply Last reply Reply Quote 0
                      • H
                        herb_fargus administrators @Alturis
                        last edited by 4 Feb 2018, 17:54

                        @alturis they could be made of pure gold for all I care. Fact is they are profiting on things that are free, taking others work and selling it as their own. There are more reputable arcade parts sellers out there.

                        If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                        Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                        1 Reply Last reply Reply Quote 2
                        33 out of 33
                        • First post
                          33/33
                          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.

                          This community forum collects and processes your personal information.
                          consent.not_received