-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add-on does not display under Add-ons / how to start it? #46
Comments
It should appear under Program Addons. |
It doesn't. I also installed an Add-on from the official repositories afterwards and it shows there just fine. I had the Library Node Editor Add-on installed before installing the Lutris Add-on and it showed under Add-ons as well. I'll try finding some logs (this didn't work so far: the only log entry within Kodi is "Kodi started successfully"). When I enter "Lutris" into the search it shows "Media sources - Lutris" and shows the page for the Add-on (including the open button but without any images) when I click on it. I also tried deinstalling and installing again (it showed the notification for successful installation but it still doesn't show up under Add-ons/Program Add-ons). Does the Add-on maybe use some special directories for which it may not have permissions? |
This sounds like a skin issue. What skin are you using? |
The default skin of Kodi 17.6. Most settings are the default settings. And other Add-ons show up just fine. It could be a permissions problem or something like that. But it's still strange that it displays that it installed successfully. Logs would be useful. |
The problem is that Kodi v17 does not provide the Game category the add-on uses. The category was introduced in Kodi v18. |
That could be it. But shouldn't it fail installing in that case or show in some other category? Under "Download" in Add-ons it does display a tile for Game-Add-ons (but there are only Controller Add-ons). If this is the cause: is there a way to use it in Kodi under Debian10? I already installed the Kodi version for Debian stable from backports. |
That also explains why the installation instructions seemed wrong. They are written with Estuary in mind, the new default skin in Kodi v18. I'll write up some changes in a branch tomorrow and you can see if they solve your problems. |
I made a few changes which hopefully will make the add-on show up in Kodi v17.
Please report back if it solves your problem. |
Great, it works! It's showing up under Add-ons.
Except for the last line the last 4 (3) lines above are also in the output when running I installed Vulkan support on one of my machines and Lutris still doesn't start games which worked previously (I think there was a Lutris update in between) even though it doesn't display the error messages anymore. I'll report back once I get Lutris on its own working again (and checked for permissions problems with syslog). |
Lutris and PCSX2 do work on the machine for which I haven't added Vulkan support. Lutris and the Dolphin emulator (runner) do run on the machine which should run Vulkan now but not PCSX2. When starting lutris via the add-on the console output is:
When starting lutris directly the output is the same except that instead of "Shutting down Lutris" there are three common Gtk warnings (which shouldn't be a problem). |
Does Lutris shut down when you start Lutris directly? It was unclear from your last message if that was the case or not. Type |
No: Lutris and the Dolphin emulator (runner) do run on the machine which should run Vulkan now, but not PCSX2. Lutris and PCSX2 (and Dolphin) do run on another machine on which I haven't added Vulkan support. Lutris does not shut down there. Which emulators run on these machines may be irrelevant here. |
You should not need to add the path to Lutris in the add-on settings. The add-on finds the path to Lutris autmatically as long as it is in your $PATH. It is really only used if you have compiled Lutris yourself and it is not in $PATH.
This sound more and more like a Lutris error and not any problem with the add-on. On the machine where you are using the add-on run this |
Yes, otherwise it wouldn't have started Lutris.
I would have thought so too but Lutris is running fine. It shows all the games and I can start games via Lutris. I have games for the Dolphin emulator and the PCSX2 emulator installed. On the machine on which Lutris, Dolphin emulator games and PCSX2 emulator games are running and which does not have Vulkan support (but still no games show up in Kodi) the output of
(I have removed the "PCSXR" entry in Lutris now so now there are only 2 entries with the ids 2 and 3.) On the machine with Vulkan support it's basically the same. The games don't show up in Kodi but they do show up in Lutris and in the json output of that command. No error messages like "i386 libvulkan.so.1 missing" are in the output there. |
Looking at your JSON output, there are only two games installed: one called So lets see if we can populate the JSON with a known entry.
If there is no entry for Spelunky, that suggests that the problem resides in Lutris. If Lutris is not outputting the correct JSON the add-on will not display anything. |
But they do! Please see the recent edit before your reply (the bottom paragraph). I'm having the same problem on another machine. |
Could you please follow the procedure in the previous post? It would help a lot to see the JSON output with a known entry to confirm that it is not Lutris acting up. Please post the output here if not to long or to a paste site. |
I added SuperTuxKart and ExtremeTuxRacer (Linux native games) which are also known entries. It still doesn't show any games in Kodi even though I can launch them in Lutris where they have the correct image set. Maybe it has to do with these:
Does /usr/games need to be writeable? (I didn't change any directory permissions.) Output of
|
Perfect. So there doesn't seem to be a problem with the JSON. You can ignore the MAME errors. Next step is to enable debug in Kodi settings. Afterwards, run the add-on. Then post the whole debug log to a paste site. |
It's here: https://pastebin.com/H0rVwLEV |
This issue is confusing. Looking at you debug log Kodi reports that it creates an item listing with three items. So they should show up.
But there are a few peculiarities to you log, the items reported by the add-on are a bit weird. Are the emulators installed using Lutris scripts or manually? I'm asking since the names of the entries are
You can ignore the To be honest there doesn't seem to be anything wrong. Could you try another Kodi skin and see if the issue persists? |
I have the Dolphin emulator and PCSXR installed separately from Lutris and additionally I have installed the Lutris runners Dolphin and PCSX2 (and some other ones) with Lutris. I don't know why there is an entry for PCSXR and why it's still there - see the bottom of this comment. Maybe I added it but I doubt it because I wouldn't add an emulator as a game (but I don't think it's there on another Debian machine but I'll have to check later). The names of As it's the default skin, it doesn't make much sense to change it imo. |
Thanks for the explanation regarding the game names. I'll see if I have the time to run Debian in a virtual machine over the weekend. Hopefully I can reproduce the issue. |
Good news, I can reproduce the issue on Debian 10. Bad news is that all the logs I looked at gives no indication where the problem might be. I'll look more into it and see if I can find the cause of the problem. |
Any news on that? Also is it supposed to run under Kodi 19 alpha 2? I have compiled this version now and when trying to install the Lutris Kodi addon, which I can also only find via the search there, nothing happens (no popup, no output in the console or anything) and it doesn't get installed. |
Try downloading the latest .zip of the Also, I never found a solution for your troubles with addon on Debian. However, I was able to install and use v1.3.1. |
Now I installed Kodi v19 via this repo: https://github.com/basilgello/kodi-nightly-debian-repo and the addon isn't working with the latest .zip. Unlike that other version I tried with the compiled version something does happen and a popup is shown but I get these errors (like earlier):
in the console and this message window in Lutris:
(same as I had here: lutris/lutris#3083) I don't get this message window and these console errors when running Lutris directly. Could it be some kind of version mismatch? Thanks for providing a solution though and for also providing one for the current version in Debian's repos (haven't tested that yet)! |
It seems like this is a probem with or when using firejail, when running kodi without it I don't get the errors of these errors. Instead I get these errors (full output):
Maybe the first line of the output has something to do with tzdata? I couldn't find anything about it with a search. For the libva errors I found intel/libva#278 and intel/libva#375 - maybe libva is too old? I have libva1 1.7 and libva2 2.9. Maybe it's a problem with |
Okay, so now the Lutris-Kodi addon displays on two machines (with Kodi v19.0 from Basil Gello's repo and latest.zip from above): On one without Vulkan support I get the On another machine with Vulkan support and when running it without firejail I don't get these
(And here is the full log of the other machine without Vulkan support (ran with firejail).) The |
Are both machines running the Kodi v19 and the .zip from the Python 3 branch? Could you post a log from the machine where the add-on is not working with debug mode enabled in Kodi? |
Yes, both use Kodi v 19 (from Basil Gello's repo) and exactly the same latest .zip from the Python 3 branch. |
There seems to be something wrong with the JSON output from Lutris. So lets try to log the raw JSON output. If you could find the file # Get the list of games from lutris as a JSON object
raw_result = subprocess.check_output(cmd)
log(f'Raw JSON is: {raw_resut}')
# Remove warning messages from JSON output
result = raw_result[raw_result.index(b'['):raw_result.index(b']')+1] Then restart Kodi and try to access the add-on. Make sure debug is enabled and post the log here when it fails. |
Thanks for looking into it. It's Here's the log (the other games are formatted like the example). |
Try to copy the raw JSON output into JSONLint and see if it throws any errors. If it does, reply with the offending line an I'll see if I can filter it out. |
When I remove all The line with char 583 looks like this (from comma to comma): |
Lets try if this fixes it: raw_result = subprocess.check_output(cmd).decode('UTF-8')
log(f'Raw JSON is: {raw_resut}')
# Remove warning messages from JSON output
result = raw_result[raw_result.index('['):raw_result.index(']')+1] Notice that the b prefix has been removed from the line |
(After correcting the typo raw_resut -> raw_result) it now only properly formats the JSON in the output - the error is still the same. |
I am pretty sure I found the mistake. Comment out the line raw_result = subprocess.check_output(cmd).decode('UTF-8')
# Remove warning messages from JSON output
# result = raw_result[raw_result.index('['):raw_result.index(']')+1] However, this might introduce new issues. Depending on your Lutris configuration, Lutris v.0.5.7.1 is not always outputting valid JSON. See Issue #47 for more information. This problem has been fixed in Lutris master with Commit lutris/lutris@fe01f93. |
Amazing - it finally works now! Thank you. I hope this addon gets featured in the official addon repos or at least Basil Gello's repo's addons soon. |
To answer your questions:
|
|
Now it's not working anymore again. Looks like my 2 changes to ~/.kodi/addons/script.lutris/default.py have been undone. After redoing them and changing
The error in kodi.log is:
Did I miss something trivial? Why did the file change back at all (was it updated) and how to solve it? (And probably irrelevant: in the console when running
|
What version of Lutris are you running? Use |
0.5.8.1 Lutris recently updated and some addons recently updated as well. That must also have undone my changes to default.py. Are addons reinstalled after updating? Do I maybe need to reinstall that .zip file? How can i see which version of the Lutris-Kodi addon is used? I'm having this problem on multiple machines. |
You are not experiencing the same problem as earlier. The line I don’t have a fix right now but I am working on it. I am Just waiting for VitualBox to make a release for Fedora 33 which is on my development machine. |
I have completely rewritten the add-on to Python3. You can download the zip from the develop-branch to see if it solves your problem. Make sure you are using Kodi v19 Matrix. |
Amazing, thanks and happy new year! It works nicely with it when not using firejail. I have created an issue at the firejail repo that would allow it to also work with Kodi sandboxed with firejail via a way to allow firejailed apps to run other software with other firejail profiles than that of the current sandbox, which could allow running lutris with profile B to be called by Kodi with profile A. Having a full-fledged modern media-center with gaming integrated is a flagship project of the FOSS/GNU/Linux ecosystem, playing a large role in its advantage over competition/alternatives like Windows+TV and a console imo. It's really important to get this working so it's great it's also working with the latest Kodi and Debian. This addon certainly should become more popular. For the game-icons, the default view-type and getting this addon into official repos: #46 (comment) |
Great it works for you. I can't do anything about Firejail, though. It is doing exactly what it is supposed to do, and stops Kodi from calling Lutris. When I have the time I'll have a look and see if I could submit the add-on to the official repository. However, it is a bit of a process. |
I followed the steps of "Install from repository". Some steps were a bit different so I had to search around a bit. For example the only way I could get to "Install from .zip file" was not Settings → Add-ons → Install from zip file but Add-ons (click, not hover) → the package icon in the upper left
But now I don't know how to launch it. No explainer was displayed. There aren't any steps in the readme with further info. No "Games" or "Lutris" or anything similarly clear is displayed in the panel on the left. I could find the Lutris AddOn after entering "Lutris" into the search under Add-ons (hover). When I click "Open" there nothing happens and I don't get any error messages in the console. I also looked into the configuration which should be fine and Lutris does launch when I click "Open Lutris" there.
How to use it? And could the documentation please be improved a bit to make things easier?
Debian10/KDE
Kodi 17.6
Lutris 0.5.7.1
The text was updated successfully, but these errors were encountered: