Kodi Community Forum

Full Version: Openelec RetroPlayer Issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
TLDR: xbox360 wireless controller isn't working. Works in menus but not for games. Genesis games are prompting to choose system directory. Logs and XML below

Great work, and loving what we've got here so far.

Over the last week, I've been bashing my head against the wall trying to get things working. I've tried many different builds (ION, Generic, 64, 32) and always get to the same point. I am able to load up roms, get them to play (with the exception of Genesis, I'll get to that later) and use the keyboard to play them with ease.

However I'd rather not use the keyboard to play, I'd much rather play on my wireless xbox 360 controller, and that's where the trouble begins. I've got it working in xbmc and the menus I can select the game I want to play, but then the controller seems to fail me. In game, I get volume control from the joystick, I can exit by clicking on the L3 button.

I've tried putting a joystick.Microsoft.Xbox.360.Controller.xml in the .xbmc/userdata/keymaps folder. I've tried a couple different versions of this, including one that has <fullscreengame> tags in it. The attached file does have the fullscreengame tags.

Anyone have any insight to help get this working?

Also while on the subject of controllers, if there's anything that needs to be done/changed in order to have 2 xbox controllers working for multiplayer in this discussion that would be AMAZING!!!

Here is a copy of my LOG

My setup:
Zotac ZBox ID41
4GB of ram
60GB SSD
3.2.0 install of Retroplayer found on the other forum post
Rom Collection Browser 2.0.11

For the genesis games I get prompted to Choose System Directory when trying to launch a game. I assume this is because I don't have the BIOS files installed yet? Referencing to http://forum.xbmc.org/showthread.php?tid=173656?
Hi!

Is it correct that you have 4 xbox 360 gamepads attached to your machine (/dev/input/js0-3)?
Code:
07:19:32 T:139941090092864  NOTICE: CLinuxJoystick::Initialize: opening joystick /dev/input/js3
07:19:32 T:139941090092864  NOTICE: Initialize: Enabled Joystick: "Xbox 360 Wireless Receiver" (Linux Joystick API)
07:19:32 T:139941090092864  NOTICE: Initialize: driver version is 2.1.0
07:19:32 T:139941090092864  NOTICE: Buttons: BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR, ?, ?, ?,
07:19:32 T:139941090092864  NOTICE: Axes: X, Y, Z, Rx, Ry, Rz
07:19:32 T:139941090092864  NOTICE: CLinuxJoystick::Initialize: opening joystick /dev/input/js2
07:19:32 T:139941090092864  NOTICE: Initialize: Enabled Joystick: "Xbox 360 Wireless Receiver" (Linux Joystick API)
07:19:32 T:139941090092864  NOTICE: Initialize: driver version is 2.1.0
07:19:32 T:139941090092864  NOTICE: Buttons: BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR, ?, ?, ?,
07:19:32 T:139941090092864  NOTICE: Axes: X, Y, Z, Rx, Ry, Rz
07:19:32 T:139941090092864  NOTICE: CLinuxJoystick::Initialize: opening joystick /dev/input/js1
07:19:32 T:139941090092864  NOTICE: Initialize: Enabled Joystick: "Xbox 360 Wireless Receiver" (Linux Joystick API)
07:19:32 T:139941090092864  NOTICE: Initialize: driver version is 2.1.0
07:19:32 T:139941090092864  NOTICE: Buttons: BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR, ?, ?, ?,
07:19:32 T:139941090092864  NOTICE: Axes: X, Y, Z, Rx, Ry, Rz
07:19:32 T:139941090092864  NOTICE: CLinuxJoystick::Initialize: opening joystick /dev/input/js0
07:19:32 T:139941090092864  NOTICE: Initialize: Enabled Joystick: "Xbox 360 Wireless Receiver" (Linux Joystick API)
07:19:32 T:139941090092864  NOTICE: Initialize: driver version is 2.1.0
07:19:32 T:139941090092864  NOTICE: Buttons: BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR, ?, ?, ?,
07:19:32 T:139941090092864  NOTICE: Axes: X, Y, Z, Rx, Ry, Rz


These lines:
Code:
...
7:23:13 T:139941090092864   DEBUG: Joystick 3 button 12 unpressed
07:23:13 T:139941090092864   DEBUG: Joystick 3 button 13 pressed
07:23:13 T:139941090092864   DEBUG: Joystick 3 button 13 unpressed
07:23:13 T:139941090092864   DEBUG: Joystick 3 button 13 pressed
...
Look like you pressed buttons on joystick 3 so maybe you just try one of the other gamepads till you find number 1.
I don't know how retroplayer does the enumeration of the gamepads.
That's weird, I've only got 1 connected. Figured I'd get one working before I try to add more. Haven't even synced up the other gamepads to the xbox 360 receiver yet.

Tonight I'll try to sync up my gamepad to the xbox, then back to the wireless adapter again.

Makes no sense why it would be showing 3 Joysticks though.
The wireless receiver reports 4 controllers under linux (the max possible that can be connected through it). RetroPlayer is hardcoded to the first joystick. XBMC's joystick api doesn't use u-dev (yet) so there's no way to re-map this until we fix the problem.

Multiple joystick support is clearly something that should happen in the near future. I'm not sure how to accomplish the player-device mapping process in the GUI, however. Any ideas of how this would look like? How do other programs map devices to players?
I have the same receiver, and i see four controllers also. Is this a new type of receiver? I can't get any input through to retroplayer either. I've been fiddling with the keymaps without any luck.
The controller and receiver is a brand new, genuine, MS product. Maybe a new version? (this happens to me every time, oh god the trouble i went through with my tv-tuners)

I even get the exact same debug entries.

19:23:26 T:140641759639296 INFO: LibretroEnvironment query ID=17: GET_VARIABLE_UPDATE
19:23:40 T:140640552462080 INFO: Previous line repeats 863 times.
19:23:40 T:140640552462080 DEBUG: Thread JobWorker 140640552462080 terminating (autodelete)
19:23:40 T:140641759639296 INFO: LibretroEnvironment query ID=17: GET_VARIABLE_UPDATE
19:23:55 T:140642639636288 INFO: Previous line repeats 886 times.
19:23:55 T:140642639636288 DEBUG: Joystick 3 button 2 pressed
19:23:55 T:140642639636288 DEBUG: -> RetroPlayerInput: Controller=3, button down=2, Action JoypadB, id=0
19:23:55 T:140641759639296 INFO: LibretroEnvironment query ID=17: GET_VARIABLE_UPDATE
I never did get mine working. Kind of gave up on it, waiting for garbear's next openelec release. In the meantime, I've got emulation station running on my raspberry pi. I'd much rather have it running on my Zotac Zbox as an all in one package.

As mentioned before, I did try syncing the controller back to my xbox and then to the dongle again, no go. I tried using multiple xbox controllers, thinking that maybe 1 would come as controller 1 and would work, but nope, still no go. At that point, I gave up. I probably reinstalled my setup 30 times in January trying different configurations and setups. I was really excited about this project, and still am, just a little discouraged that I wasn't able to get it working. I check back here multiple times a day to see if there's a new version released that hopefully will fix my issue.

Great work garbear!
In the test-builds thread there is a quite new Windows build. Have you found any guide to building a new openelec/retroplayer?
I have a virtual build environment used to build some spotify builds earlier - but without a step by step guide I am completely lost in linux Smile
Hey sorry to dig up an old post, but I'm having a similar problem. I don't see 4 controllers though, just one, but no d-pad. My debug log looks similar with the Huh's in the description.

I had the same problem about a year ago, but thought I'd try again.
I'm moving input-related stuff into binary add-ons. Till then, the messy Joystick API is all we got. No time frame, but I'm motivated to finish the new input API by devcon Smile
well, wasn't able to make devcon this year (sad face) SCALE 13x in february is my new target for finishing the input API. and fear not, this new API will have been worth waiting for. screw autoconfiguring known joysticks. soon we'll have predictive configuration for unknown ones Wink