Newb with Player 2 not being 'seen' on Picade/Retropie
-
@dw89 said in Newb with Player 2 not being 'seen' on Picade/Retropie:
So, all I need to know (and its where we left off) is how to assign the GPIO to P2.
Re-read the topic and see if you can implement the modifications I posted (the lines added to
retroarch.cfg
). -
-
Hi Mitu, adding changes to P2 as we speak. Can you confirm; do I change P1 inputs now to 'nul'?
Thanks👍🏻
-
Wow! Progress at least. I tried them all to see what would happen (both p1 and p2 as set and then removing from P1 and setting P2 only).
All based on Mario Kart Snes in 2p mode:
So 1) (With Both P1/P2 set): no change at all to default. P1 works but no P2
2) (make P1 'nul' and set P2 as per P1 previous) Joy! But not quite there. Both P1 and P2 works. I can set each driver etc with respective player. 'However', very oddly, when driving starts P1 controls BOTH P1 and P2 characters, but P2 controls only works, correctly, for P2.So, getting there but perhaps no cigar quite yet? So, big thanks thus far!!
KR, dw👍🏻
-
Mitu,
I've tried other games with same effect.
Contra, for example, Joystick 1 controls both players, 2 just P2. So weird. By the way, every time a game loads It shows, at bottom of screen, that Picade-X USB connected to Port 0 (zero). Just fyi in case it helps.
KR
Dw👍🏻☺️
-
Still able to help Mitu? Unsure what to do at this point.
KR
Dw😉👍🏻
-
Can you post the current configuration from
retroarch.cfg
that you have now ?
Do you also have thejoystick-selection
script installed ? If so, then uninstall it and try re-testing again. -
Hello Sir😉
I will post up the .cfg after Ive eaten for you to have a look at👍🏻
Ive never had that joystick script installed as far as I know so Im hopefully good on that. If I ever did, from the past, this is a new rebuild since the back end of last yr. It's all completely as per default Retropie install apart from the retroarch.cfg changes you asked me to make. Will msg back once pastebin's up.
KR, dw☺️
-
Here we go: https://pastebin.com/KbzEVAYd
All I've done, from default, is change P1 to 'nul' and moved all those relevant codes from P1 to P2.
Again, setup is Pi4, Picade HAT (so GPIO seen as Keyboard), Picade-X USB Daughter (seen as Gamepad) and then ran Emulation Station. When I did that, without USB board, it registered codes for GPIO as keyboard (P1) and then I did the same by attaching USB board (P2) seen as Gamepad. I could see, when doing in EmulationStation, that Keyboard appropriated codes like 'CTRL' etc, whereas Gamepad was numbers.
However, when you start 'playing' it only shows Picade-X USB Hat as player Port #0 at bottom of screen and no mention of Keyboard at all. Then, conversely, looking at retroarch.cfg, you see only details for P1 (now moved to P2) showing codes and nothing for USB. Very, very odd.
Anyway, that's where I am at. As said before, both sets of players are using hard controls i.e. buttons and joysticks connected to USB Hat and GPIO Hat. Perhaps I need to add the USB codes now to P1 in retroarch.cfg? Not that I know what they are of course, lol.
KR, dw:)
-
I also just tried the jstest (worked that out, lol) and it's kinda weird.
JS0 detects Picade-X USB Hat only and it I use buttons etc they respond when used on screen. Oddly when I use P2 with JS0 running I see odd control characters at the 'end' of the line 'not' corresponding to the normal 'places' in the script.
JS1+ brings back nothing.
So GPIO main hat seems undetected in this yet is the only codes (now on P2) in Retroarch.cfg
'I' personally don't understand.
KR, dw;)
-
Finally, if I go to /dev/input and list files with both main Hat and USB Hat installed I get the following files shown:
- mice
-event2 - event3
- js0
- event1
- event0
- by-path
- by-id
And if I remove the USB Hat (pull plug out) all that remains is:
- mice
- event2
- event3
- by-path
- by-id
And 2/3 and mice may be related to the usb keyboard I plugged in to test jstest. Hmm.??
- mice
-
@dw89 said in Newb with Player 2 not being 'seen' on Picade/Retropie:
So GPIO main hat seems undetected in this yet is the only codes (now on P2) in Retroarch.cfg
I think that's normal, since the GPIO doesn't get detected as a joystick, but as keyboard - there won't be a
/dev/input/js1
device created for it.Looking at the configuration file, I see that P1 and P2 are set on the same gamepad (first):
input_player1_joypad_index=0 input_player2_joypad_index=0
so that's probably why P1 and P2 are controller by the joystick.
I'd advise you to use the default
retroarch.cfg
that comes with RetroPie and don't use 'Save Configuration' from the RGUI. Copy theretroarch.cfg.rp-dist
overretroarch.cfg
, do the modifications for P2 in the file, then try again. -
Good morning☺️. Well, Id never have spotted that.
I'll do what you said and report back. Only thing I would say is that 'all' P1 controls were also controlling P2, not just the joystick. I don't know if that parameter is an overriding one (like parent/child) or not of course but just thought best to confirm ie
In Mario Kart:
P1 Joystick controls P2 joy simultaneously
P1 Btn A controls speed on P2 simultaneouslyYet
P2 just controls P2.
KR, dw
Will update when done
-
Hi again, Ive just used every find command I can think of and I cannot find the file you mentioned anywhere in the system.
There's a retroarch-core-options.cfg but not the one you mentioned. So Im not sure where to go here now?
KR, dw😉
-
Well, this has just got worse🤯
'Trying' to figure this out (and having saved all my iterations of config files - all over cli of course) its now broken it more😔 Im back to P2 not working at all.
-
First I tried to find file (dist one), couldn't so went through Retroarch menus in gui and defaulted the retroarch.cfg file. Went back in and could see it had made many changes (inc the joystick one you mentioned). So, I then made changes to it to 'nul' all the P1 controls and move them to P2 (as previously). I then rebooted and P1/P2 work in the menus but, in any game, only P1 works; nothing at all for any P2 controls.
-
So, as it didnt work, I moved back to my previous .cfg where P2 worked but P1 controlled both and....it's having no effect at all any more...its just the same as 1) above.
This is driving me nuts. Any suggestions appreciated. I can, of course, pastebin the contents if you like but Ive done exactly as before so Im just lost.
KR, dw😉
-
-
@mitu By the way, I'll do anything you suggest to fix this. If you want me to rebuild and start again and do a certain process; I don't mind. I just don't know why it's doing what it's doing (ie why P2 now doesn't work when I copied file back!).
Cheers
Dw😉
-
How are you editing the files ? Do you have file share access from a computer/PC in the same network (i.e. can you open
\\retropie\roms
) ? -
Hi mate.
Im doing it directly via cli. Ie Pi plugged into TV (hdmi) and going to cli via F4 from keyboard. All normal as far as I know? So I then use nano to open/edit. Sometimes vi but mostly nano.
HTH
Dw😉
PS Im an It guy, just not a Retropie expert;)
-
My suggestion is to re-install from scratch, configure the gamepad first, then edit the
/opt/retropie/configs/all/retroarch.cfg
file and add the P2 configuration. Don't use 'Save Config' or 'Reset Configuration' from the RetroArch menu, this will cause more trouble than it's worth. -
Ok mate, I will do that. From memory, because the Picade HAT is connected to GPIO (seen as 'Keyboard'), I will have to make sure to use the correct Joy/Btns (that are connected to Picade-X Daughter USB HAT) to do that. Im sure, last time, that I did it the other way around ie unplugged USB HAT, installed Keyboard and, then, did USB HAT second.
So, i'll do it tomorrow, will do USB first thru EmulationStation autoconfig. Leave keyboard ES autoconfig alone. Then use cli, go to retroarch.cfg, move the details of that USB Gamepad install from P1 to P2 in Retroarch.cfg and 'nul' the values in P1. Save, reboot and x-fingers.
Sound good? If so, I'll do just that and film it for proof🤣. Can't get any worse I guess! Thanks again mate.
KR, dw😉
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.