Moonlight not creating mapping files to PS3 bluetooth controller
-
Sup folks.
I did all the setup involved to pair my Recalbox(4.1) with my PC using Moonlight. Pairing went smooth, and all games got detected.
However, when i try to launch any game or Steam app, it launches and terminates a few seconds after launching. No response on my pc screen. Taking a look at the log file
/recalbox/share/system/logs/es_launch_stderr.log
i can find the following information:============================================== Traceback (most recent call last): File "/work/output/target/usr/lib/python2.7/site-packages/configgen/emulatorlauncher.py", line 210, in <module> exitcode = main(args) File "/work/output/target/usr/lib/python2.7/site-packages/configgen/emulatorlauncher.py", line 139, in main command = generators[system.config['emulator']].generate(system, args.rom, playersControllers) File "/usr/lib/python2.7/site-packages/configgen/generators/moonlight/moonlightGenerator.py", line 14, in generate config = moonlightControllers.writeControllersConfig(system, rom, playersControllers) File "/usr/lib/python2.7/site-packages/configgen/generators/moonlight/moonlightControllers.py", line 45, in writeControllersConfig os.remove(confFile) OSError: [Errno 2] No such file or directory: '/recalbox/share/system/configs/moonlight/mappingP1.conf' ==============================================
It seems that
mappingP1.conf
is not generated "on-the-fly", neithermapping.conf
that is declared atMoonlight.sh
script does exists inside/recalbox/share/system/configs/moonlight
Any tips on how to debug further this issue, or how to manually generate those files. I'm using a PS3 bluetooth clone(
shanwan
) controller. -
@nwildner Hi !
I've did quite some testing with moonlight during the unstable and never had this problem. The mappingPx.conf files are generated before starting moonlight. So, I'm a little clueless here ...
In the
es_launch_stdout.log
you should see a line invokingemulatorlauncher.pyc
, can you paste it here please ? -
Hi @substring !
When i get back home from work i'll do it.
At the time of Recalbox 4.1 unstable i was an avid user of other RetroGaming solution so, i could not help with testing.
-
@Substring . The log is empty. I've even cleaned it before launching Steam App at Moonlight:
> /recalbox/share/system/logs/es_launch_stdout.log tail -f /recalbox/share/system/logs/es_launch_stdout.log ^C
Launched after tailing the log. Empty. If i try to
cat
it due to possible newfile creation, it's empty too:cat /recalbox/share/system/logs/es_launch_stdout.log
Error message remains the same. Contents after trying to execute any Moonlight app:
ls -l /recalbox/share/system/logs/es_launch_stderr.log -rw-r--r-- 1 root root 852 Oct 18 19:23 /recalbox/share/system/logs/es_launch_stderr.log cat /recalbox/share/system/logs/es_launch_stderr.log Traceback (most recent call last): File "/work/output/target/usr/lib/python2.7/site-packages/configgen/emulatorlauncher.py", line 210, in <module> exitcode = main(args) File "/work/output/target/usr/lib/python2.7/site-packages/configgen/emulatorlauncher.py", line 139, in main command = generators[system.config['emulator']].generate(system, args.rom, playersControllers) File "/usr/lib/python2.7/site-packages/configgen/generators/moonlight/moonlightGenerator.py", line 14, in generate config = moonlightControllers.writeControllersConfig(system, rom, playersControllers) File "/usr/lib/python2.7/site-packages/configgen/generators/moonlight/moonlightControllers.py", line 45, in writeControllersConfig os.remove(confFile) OSError: [Errno 2] No such file or directory: '/recalbox/share/system/configs/moonlight/mappingP1.conf'
Anything else I could try?
Thanks for the assist.
edit: Tried a wired controller, still the same.
-
@nwildner bug found, corrected on my side, will be in the next release
-
Ok. I'll wait.
If you have any workaround, or anything i could additionaly test, just ping me
-
@nwildner
Workaround:- Connect over SSH
- mount -o remount, rw /
- touch /recalbox/share/system/configs/moonlight/mappingP1.conf
- touch /recalbox/share/system/configs/moonlight/mappingP2.conf
- touch /recalbox/share/system/configs/moonlight/mappingP3.conf
- touch /recalbox/share/system/configs/moonlight/mappingP4.conf
- touch /recalbox/share/system/configs/moonlight/mappingP5.conf
- et voilà
-
hi @sevenx
Did that, but instead just symlinked all (p2 to p5) to p1.conf
Worked like a charm. Thanks for all the help.
-
@nwildner do you tested the Steam Big Picture mode?
-
@sevenx Yup.
It is how the default Steam app behaves: It open using big picture mode.
It is working, with 2 controllers paired both can navigate at the menus, however, I've faced some lag while browsing through the games, but that is another problem. Maybe i will need to buy a 5GHz Wireless NIC to my pc(Rpi3 is cabled to the router). But if i reduce quality to 720p and 30fps at the configuration, gameplay goes smooth.
I can even play PSX2 games that are not theoretically optimized to use the Nvidia streaming protocol.
And this is a big point to Recalbox: It recognized and added this psx2 bat i have on Windows as a game inside Moonlight menu
-
@nwildner Wow that's some nice "setup" here Give a try to CEmu and RPCS3 through Moonlight haha
-
@nwildner What controllers are you using?
-
@sevenx PS3 Bluetooth clone,
shanwan
chipset.@Substring Don't know how ps3 games will behave. I have the minimum recommended GPU(GTX 650). I'll give it a try
-
Hi!
No one is having issues while pressing the joystick to run in a fps and it's not working ?
Could you show the mappingP1.conf that you are using ?Thank you very much!
-
@gaetan Probleme solved, I remapped my controler and everything is fine
-
Hi @gaetan
I've just created an empty file using
touch
command as explained by sevenx. This was enough to make moonlight work, and the mapping used is still the default already set at Emulationstation -
@sevenx said in Moonlight not creating mapping files to PS3 bluetooth controller:
Workaround
Thanks for the Workaround!
One question :
I'm using a wireless keyboard and mouse on my Recalbox (nice for IBM and Scummvm's games) does it can work too for the Moonlight and be able to play games like Total Wars ?
If I delete all : mappingP1.conf to mappingP5.conf, the keyboard + mouse work fine.
If I have mappingP1.conf to mappingP5.conf, no mouse and keyboard but working controlers.
I think that I can't have all Le beurre et l'argent du beurre et le ...
-
Have you tried yesterday's update?(Recalbox 17.11.02)
This manual creation of mappingP1-5.conf was a workaround, and it is possible that the patch created by @Substring solved the issue: Moonlight now finally runs without crashing at start
-
@nwildner yep, the today's patch fixe the issue !
-
@nwildner i solved the Moonlight issue (as i made the issue myself). You reported it, we promised we'd make much more updates after 4.1, here is the proof