Need help with disappearing image control - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +---- Forum: Screensavers and visualisations (https://forum.kodi.tv/forumdisplay.php?fid=38) +---- Thread: Need help with disappearing image control (/showthread.php?tid=339289) |
Need help with disappearing image control - nundrum - 2019-01-12 I've been working on a new screensaver: https://github.com/robbieh/screensaver.embellir But I have a problem where one of the image controls is disappearing when the screensaver is first installed. I'm in a fortunate position that I have a collaborator and I can test this on my laptop, his laptop, my dedicated Kodi, and his dedicated Kodi. Three of those are Linux devices, and his laptop is Windows. In both cases where I've installed the screensaver on the deciated Kodi boxes via a zip file, it sort-of works but the main image control is missing. After I restarted Kodi on my dedicated box, it began working. But it hasn't on his. Also, in some cases it seems the image pops up but then either disappears or else falls behind the background image". All of these are Kodi Krypton 17.6. I'm hoping someone can point me in the direction of some things to look at. The event log isn't saying anything interesting (pretty much just " CSkinInfo: failed to load skin settings" which seems to happen all the time even when it works) even when debug logging is on. Thanks in advance! RE: Need help with disappearing image control - Angelinas - 2019-01-13 first, try this settings.xml Code: <?xml version="1.0" encoding="utf-8" standalone="yes"?> RE: Need help with disappearing image control - nundrum - 2019-01-13 Thanks! I gave that a try, unzipped it, uninstalled, reinstalled...but the symptom was just the same. It's not the settings controls that are missing, it's the imageControl defined here: https://github.com/robbieh/screensaver.embellir/blob/master/resources/skins/default/1080i/screensaver-embellir.xml#L35 RE: Need help with disappearing image control - Angelinas - 2019-01-13 I change with your code for settings becose I can change values your settings screensaver-embellir.xml Not missing, some code are wrong. Code: <visible>!String.IsEqual(Window.Property(hide-pic-info),"true")</visible> Code: <visible>!String.IsEqual(Window.Property(hide-pic-info),true)</visible> some Property missing (see right left down corner on image) RE: Need help with disappearing image control - nundrum - 2019-01-13 I'm glad to see it is running for you! I fixed what you recommended, but still have the same problem. But that got me on the right path. I tried changing the visibility settings to true, but that did not help. Then I realized that maybe the problem was the Asustor NAS that is having the problem just could not load the image file. So I changed the code to use "/tmp" just to see what happened. It started working immediately. It turns out the NAS running Kodi uses a really bizarre setup where /usr/local/ is actually a symlink. After some futzing, I changed: TEMP = xbmc.translatePath("special://temp")) to: TEMP = os.path.realpath(xbmc.translatePath("special://temp")) and *bam* it works! Many, many thanks for your help and feedback. I'll try to have a real version of this out soon. |