-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run listed games #61
Comments
Heya @TTherouanne!
To get this working in your environment (and this is probably just the easiest way) you need to make sure that:
All of the files can be found in Kodi's add-on directory, which varies slightly. Check Kodi's documentation to find the path for your system. If you had to change the launch scripts then this will break as soon as the next update is released as they're overwritten - we should worry about that later though, once everything works on your end. Should you need any further assistance please let me know. If you get it to work I'd really appreciate it if you could document the steps needed to get it fully running and shoot me an email (can be found on my GitHub profile page) so I can include these steps on the Wiki 😃 Good luck! |
Hi, I plan also to work on a 'wake on lan' feature with shutdown support (with pywinrm), and to create a PKGBUILD for Archlinux... |
WOL is something I wanted to look into once I got multi-host and mDNS support straight. There shouldn't be much dark magic involved in sending a magic packet via python (yeah, I'll show myself out for that stupid joke ...). So it will find its way to Luna sooner or later. |
@TTherouanne Did you get this to work on Arch? |
Hi, Sorry this last days i'm a little busy :/ For the moment, i have found an easy way to start moonlight from kodi with systemd user services. I start a script from Kodi with the Advanced Launcher addon who call 'systemctl --user start kodi-moonlight' -> kodi is started by a user session systemd service Stop and start of kodi are managed by the unit kodi-moonlight.service with the options 'ExecStartPre' and 'ExecStopPost'. See below [root@RPI2 user]# cat /etc/systemd/user/kodi.service [root@RPI2 user]# cat /etc/systemd/user/kodi-moonlight.service |
Hi wackerl91, As promised, here are the logs, sorry for the wait! :) I also looking for a way to install the dependencies of the addon from a script (to make an AUR package). Thanks ;) When i start a pairing when i start Luna (with certificates in ~/.cache/moonlight): |
Heya @TTherouanne, no worries, I was obviously busy as well. Kodi Addons probably shouldn't be installable via an open API to prevent abuse (not that this would matter much on systems like OSMC ...) - so while Kodi parses the addon.xml file and installs every dependency stated in there via a private API, you would indeed need to do pretty much the same on your own. |
I too am getting this same error and though I would chime in here, the output from inserting the code you mentioned displays xml of my games [http://pastebin.com/34MLkGZW]. The error shows the same as TTherouanne.
|
I believe the problem is with the ™ symbol |
Heya @CQoute, |
Hi, In my case, the XML is generated with UTF-16 encoding as expected : http://pastebin.com/tFwxWbH1 |
Heya! Now that Luna's starting again for you and you got a systemd definition, you should be able to just tell It might also please you to hear that basic WoL support is (finally) coming with Luna's next version (i.e. 0.7.0). Will only work properly if you have your computer set to auto-login after sleep. No remote sleep/shutdown though. Just saying, because you mentioned both earlier :) |
My version is 2.11.3.5, I also didn't realise you could rename from the GFE interface so I will do that as a temporary fix for now. |
@TTherouanne / @CQoute: Either way, here's what I'm doing to (hopefully!) capture all cases:
I did what I could to test this locally (and it took way longer than expected; after I fixed the XML encoding, the TM symbol caused the entire scraper chain to crash as well), so I'm pretty confident you shouldn't run into this kind of issue anymore. Still, let me know how it goes and I really appreciate your help in this matter! If you guys should run into any additional problems, please open separate issues to keep this one clear for @TTherouanne's discussion about getting Luna to run properly on Arch. Thanks! |
All working good now, thanks for rectifying the problem quickly. On a side note, I only came across this on a google search to only scroll down and see @TTherouanne has the same error that mine was showing so I thought it was suitable to give my input on the situation. I will be sure to open a new issue in future if I come across any. All in all I really appreciate your work on this, so thanks! |
@CQoute As I've said, your input was very much appreciated and valuable - before you showed up, I thought that ALARM had Python set up differently, so you saved some people a lot of headaches. Anyway, glad it's working for you again and you're welcome. Game on! |
Hi Wacker, I can now start a game by modifying the launch_game method in 'resources/lib/util/moonlighthelper.py' to call a systemd service.
So to resume:
Currently, i can't set the '-audio hdmi' option from Luna and Inputs listing seems to not work with the xpad module (empty window). I'm happy to learn that the WOL feature is available soon! :) |
@TTherouanne, just as a quick follow-up regarding the PKGBUILD for ALARM: would it help with the dependencies if we provided an additional requirements file that can be used with pip to install everything that's needed? |
I don't know if this is going to be helpful, but I followed the suggestions in @wackerl91 's first comment:
And when I try to launch a game from Luna i get a black screen with a error message:
Maybe later I will try the solution of @TTherouanne last comment. |
@Roboron3042 When following his steps please keep in mind that the implementation has changed a lot since then (this is especially true for the 0.7.0 release candidates). You might want to have a look at the current state of the moonlight helper and the current launch scripts. The error you're getting might(!) be caused by all three scripts having a different shebang (which I just now realised, never opened them all at the same time), but that's difficult to say without more information. When changing them it might be worth it to try each one individually to see which of them is failing (this also holds true if you decide to use @TTherouanne's way). Let me know if you need any more help. And while you're at it, I'd appreciate any thoughts regarding a possible more general implementation I mentioned at the beginning of my last comment. |
@TTherouanne Thanks a lot for sharing your way of starting moonlight via systemd - services! @wackerl91 : Great work, awesome addon, thanks a lot for your time and work! ./resources/lib/util/pymoonlighthelper.py:
with the shell scripts /home/pi/start_moonlight.sh:
and
Along with the systemd services
and
|
Hello all, I seek some guidance, I have and ODROID C2 with Ubuntu 16.04 and I'm trying to setup kodi 17 with moonlight and luna. Unfortunately I'm not able to make luna launch moonlight, I've followed this in order to make kodi start at boot: With that service definition running 'systemctl --user start/stop kodi' does nothing. /etc/systemd/user/kodi.service
/etc/systemd/user/kodi.service
/var/log/syslog Thank you |
trying to reproduce it with kodi 18 and latest versions, I got this error trying go start a game Well, I made start_moonlight.sh executable but no success |
@hubertokf |
Look at issue: #171 But I don't understand your provided logs |
Hello,
I know that Luna is designed for OSMC but i'm trying to use it with Kodi (i guess he is compatible)
When i try to start games or steam from Luna, nothing is happening, (features like scrapper, pairing, remote game list works)
Moonlight is working fine when i run it from the terminal.
My setup:
I have put kodi in debug mode, this is an extract during the game start :
11:51:12 T:1549792160 NOTICE: [script.luna] [CoreService] - initialized
11:51:12 T:1549792160 DEBUG: [xbmcswift2] Reading pickle storage from disk at "/var/lib/kodi/.kodi/userdata/addon_data/script.luna/.storage/game_storage"
11:51:12 T:1549792160 DEBUG: [xbmcswift2] Loaded storage "game_storage" from disk
11:51:12 T:1549792160 DEBUG: LocalizeStrings: no translation available in currently set gui language, at path /var/lib/kodi/.kodi/addons/script.luna/resources/language/French
11:51:12 T:1549792160 DEBUG: LocalizeStrings: no strings.po file exist at /var/lib/kodi/.kodi/addons/script.luna/resources/language/English, fallback to strings.xml
11:51:12 T:1828680608 DEBUG: WaitOnScriptResult- plugin returned successfully
11:51:12 T:1549792160 DEBUG: [xbmcswift2] Saving a pickle storage to disk at "/var/lib/kodi/.kodi/userdata/addon_data/script.luna/.storage/game_version"
11:51:12 T:1949356032 DEBUG: Saving fileitems [plugin://script.luna/games]
11:51:12 T:1949356032 DEBUG: -- items: 19, sort method: 0, ascending: false
11:51:12 T:1549792160 DEBUG: [xbmcswift2] Saving a pickle storage to disk at "/var/lib/kodi/.kodi/userdata/addon_data/script.luna/.storage/game_storage"
11:51:12 T:1549792160 DEBUG: [xbmcswift2] Saving a pickle storage to disk at "/var/lib/kodi/.kodi/userdata/addon_data/script.luna/.storage/update"
11:51:12 T:1605559200 DEBUG: Thread BackgroundLoader start, auto delete: false
11:51:12 T:1549792160 INFO: CPythonInvoker(26, /var/lib/kodi/.kodi/addons/script.luna/addon.py): script successfully run
11:51:12 T:1605559200 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/DIA+GeForce+GTX+950%2C+GFE+2.11.2.55+%28protocol+version+7%29/folder.jpg
11:51:13 T:1605559200 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/Launcher/folder.jpg
11:51:13 T:1605559200 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/Serious+Sam+3%3A+BFE/folder.jpg
11:51:13 T:1949356032 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
11:51:13 T:1605559200 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/Shank2/folder.jpg
11:51:13 T:1605559200 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/Steam/folder.jpg
11:51:13 T:1549792160 WARNING: CPythonInvoker(26, /var/lib/kodi/.kodi/addons/script.luna/addon.py): the python script "/var/lib/kodi/.kodi/addons/script.luna/addon.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE,N9XBMCAddon7xbmcgui8ListItemE
11:51:13 T:1549792160 INFO: Python script stopped
11:51:13 T:1549792160 DEBUG: Thread LanguageInvoker 1549792160 terminating
11:51:13 T:1605559200 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/trine2_32bit/folder.jpg
11:51:13 T:1605559200 DEBUG: Thread BackgroundLoader 1605559200 terminating
11:51:17 T:1566569376 DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
11:51:23 T:1949356032 INFO: Python, unloading python shared library because no scripts are running anymore
11:51:23 T:1949356032 DEBUG: UnloadExtensionLibs, clearing python extension libraries
11:51:27 T:1949356032 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
11:51:27 T:1949356032 DEBUG: OnKey: down (0xf081) pressed, action is Down
11:51:27 T:1828680608 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x60c6b598
11:51:27 T:1828680608 DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(81920), nBufferAlignmen(16)
11:51:27 T:1828680608 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x7243f830
11:51:27 T:1828680608 DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
11:51:27 T:1828680608 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x60c6b598
11:51:27 T:1828680608 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x7243f830
11:51:27 T:1828680608 DEBUG: DoWork - took 194 ms to load special://masterprofile/Thumbnails/0/061e29cf.jpg
11:51:32 T:1949356032 DEBUG: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0
11:51:32 T:1949356032 DEBUG: OnKey: up (0xf080) pressed, action is Up
11:51:35 T:1949356032 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
11:51:35 T:1949356032 DEBUG: OnKey: return (0xf00d) pressed, action is Select
11:51:35 T:1949356032 DEBUG: CGUIMediaWindow::GetDirectory (plugin://script.luna/games/launch/DiRT+Rally)
11:51:35 T:1949356032 DEBUG: ParentPath = [plugin://script.luna/games]
11:51:35 T:1828680608 DEBUG: StartScript - calling plugin Luna('plugin://script.luna/games/launch/DiRT+Rally','19','')
11:51:35 T:1828680608 DEBUG: WaitOnScriptResult - waiting on the Luna (id=27) plugin...
11:51:35 T:1605559200 DEBUG: Thread LanguageInvoker start, auto delete: false
11:51:35 T:1605559200 INFO: initializing python engine.
11:51:35 T:1605559200 DEBUG: CPythonInvoker(27, /var/lib/kodi/.kodi/addons/script.luna/addon.py): start processing
11:51:35 T:1605559200 DEBUG: -->Python Interpreter Initialized<--
11:51:35 T:1605559200 DEBUG: CPythonInvoker(27, /var/lib/kodi/.kodi/addons/script.luna/addon.py): the source file to load is "/var/lib/kodi/.kodi/addons/script.luna/addon.py"
11:51:35 T:1605559200 DEBUG: CPythonInvoker(27, /var/lib/kodi/.kodi/addons/script.luna/addon.py): setting the Python path to /var/lib/kodi/.kodi/addons/script.luna:/var/lib/kodi/.kodi/addons/script.module.dateutil/lib:/var/lib/kodi/.kodi/addons/script.module.pyxbmct/lib:/var/lib/kodi/.kodi/addons/script.module.six/lib:/var/lib/kodi/.kodi/addons/script.module.xbmcswift2/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages
11:51:35 T:1605559200 DEBUG: CPythonInvoker(27, /var/lib/kodi/.kodi/addons/script.luna/addon.py): entering source directory /var/lib/kodi/.kodi/addons/script.luna
11:51:35 T:1605559200 DEBUG: CPythonInvoker(27, /var/lib/kodi/.kodi/addons/script.luna/addon.py): instantiating addon using automatically obtained id of "script.luna" dependent on version 2.1.0 of the xbmc.python api
11:51:35 T:1949356032 DEBUG: ------ Window Init (DialogBusy.xml) ------
11:51:36 T:1566569376 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
11:51:36 T:1605559200 NOTICE: [script.luna] [CoreService] - initialized
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/" named "index" pointing to function "index"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/settings" named "open_settings" pointing to function "open_settings"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/update" named "check_update" pointing to function "check_update"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/actions/create-mapping" named "create_mapping" pointing to function "create_mapping"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/actions/pair-host" named "pair_host" pointing to function "pair_host"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/actions/reset-cache" named "reset_cache" pointing to function "reset_cache"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/actions/patch-osmc" named "patch_osmc_skin" pointing to function "patch_osmc_skin"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/actions/rollback-osmc" named "rollback_osmc_skin" pointing to function "rollback_osmc_skin"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/games" named "show_games" pointing to function "show_games"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/games/refresh" named "do_full_refresh" pointing to function "do_full_refresh"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/games/info/<game_id>" named "show_game_info" pointing to function "show_game_info"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/games/launch/<game_id>" named "launch_game" pointing to function "launch_game"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Adding url rule "/games/launch-from-widget/<xml_id>" named "launch_game_from_widget" pointing to function "launch_game_from_widget"
11:51:36 T:1605559200 NOTICE: [script.luna] [CoreService] - initialized
11:51:36 T:1605559200 NOTICE: [script.luna] [UpdateService] - initialized
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Reading pickle storage from disk at "/var/lib/kodi/.kodi/userdata/addon_data/script.luna/.storage/update"
11:51:36 T:1605559200 DEBUG: [xbmcswift2] Loaded storage "update" from disk
11:51:37 T:1605559200 NOTICE: [script.luna] [ConfigHelper] - Dumped config to disk.
11:51:37 T:1605559200 DEBUG: [xbmcswift2] Reading pickle storage from disk at "/var/lib/kodi/.kodi/userdata/addon_data/script.luna/.storage/game_version"
11:51:37 T:1605559200 DEBUG: [xbmcswift2] Loaded storage "game_version" from disk
11:51:37 T:1605559200 DEBUG: [xbmcswift2] Handling incoming request for /games/launch/DiRT+Rally
11:51:37 T:1605559200 NOTICE: [xbmcswift2] Request for "/games/launch/DiRT+Rally" matches rule for function "launch_game"
11:51:37 T:1605559200 NOTICE: [script.luna] [CoreService] - initialized
11:51:37 T:1605559200 NOTICE: [script.luna] Launching game DiRT Rally
11:51:37 T:1605559200 NOTICE: [script.luna] [ConfigHelper] - Dumped config to disk.
11:51:39 T:1828680608 DEBUG: WaitOnScriptResult- plugin returned failure
11:51:39 T:1605559200 DEBUG: [xbmcswift2] Saving a pickle storage to disk at "/var/lib/kodi/.kodi/userdata/addon_data/script.luna/.storage/game_version"
11:51:39 T:1949356032 ERROR: GetDirectory - Error getting plugin://script.luna/games/launch/DiRT+Rally
11:51:39 T:1949356032 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.luna/games/launch/DiRT+Rally) failed
11:51:39 T:1949356032 DEBUG: CGUIMediaWindow::GetDirectory (plugin://script.luna/games)
11:51:39 T:1949356032 DEBUG: ParentPath = [plugin://script.luna/]
11:51:39 T:1949356032 DEBUG: Loading items: 19, directory: plugin://script.luna/games sort method: 0, ascending: false
11:51:39 T:1549792160 DEBUG: Thread BackgroundLoader start, auto delete: false
11:51:39 T:1605559200 DEBUG: [xbmcswift2] Saving a pickle storage to disk at "/var/lib/kodi/.kodi/userdata/addon_data/script.luna/.storage/update"
11:51:39 T:1549792160 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/DIA+GeForce+GTX+950%2C+GFE+2.11.2.55+%28protocol+version+7%29/folder.jpg
11:51:39 T:1549792160 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/Launcher/folder.jpg
11:51:39 T:1605559200 INFO: CPythonInvoker(27, /var/lib/kodi/.kodi/addons/script.luna/addon.py): script successfully run
11:51:39 T:1949356032 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
11:51:39 T:1549792160 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/Serious+Sam+3%3A+BFE/folder.jpg
11:51:39 T:1549792160 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/Shank2/folder.jpg
11:51:39 T:1549792160 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/Steam/folder.jpg
11:51:39 T:1549792160 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://script.luna/games/launch/trine2_32bit/folder.jpg
11:51:39 T:1549792160 DEBUG: Thread BackgroundLoader 1549792160 terminating
11:51:39 T:1605559200 WARNING: CPythonInvoker(27, /var/lib/kodi/.kodi/addons/script.luna/addon.py): the python script "/var/lib/kodi/.kodi/addons/script.luna/addon.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
11:51:39 T:1605559200 INFO: Python script stopped
11:51:39 T:1605559200 DEBUG: Thread LanguageInvoker 1605559200 terminating
11:51:41 T:1566569376 DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
11:51:50 T:1949356032 INFO: Python, unloading python shared library because no scripts are running anymore
11:51:50 T:1949356032 DEBUG: UnloadExtensionLibs, clearing python extension libraries
11:51:57 T:1566569376 DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
11:52:09 T:1828680608 DEBUG: Previous line repeats 1 times.
11:52:09 T:1828680608 DEBUG: Thread JobWorker 1828680608 terminating (autodelete)
11:52:51 T:1566569376 DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
Have you got an idea that what is causing this problem?
Thanks for your help!
The text was updated successfully, but these errors were encountered: