2019-12-06, 17:56
(2019-08-15, 08:57)TimCheng Wrote:Believe or not. I installed this addon on windows for debugging because I too got the error 'Non existent control 4500'. I could not understand it because in script-moviequiz-main.xml on line 94 I found the controll.(2016-09-17, 21:31)PatK Wrote: In the Krypton nighties and beta, I'm getting the error 'Non existent control 4500' on game entry.I tried to use Movie Quiz on Kodi 18.3 but could not get it to work. From memory I could not get it to work on Kodi 16 or 17 either and there don't seem to be any posts on this addon since 2016. I was quite impressed with it previously and would appreciate any solutions people may have.
[Edit] PBMacros your fix works like a charm!
so I commented this out so that it looked like:xml:<!-- Background -->
<control type="image" id="4500">
<description>Background</description>
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<texture>quiz-background-movie.jpg</texture>
<fadetime>1000</fadetime>
</control>
Then I went to gui.py line 898 which looks like that:xml:<!-- Background -->
<!--<control type="image" id="4500">
<description>Background</description>
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<texture>quiz-background-movie.jpg</texture>
<fadetime>1000</fadetime>
</control>-->
I commented this out so that it looked like that:python:if self.question.getFanartFile() is not None:
self.getControl(self.C_MAIN_MOVIE_BACKGROUND).setImage(self.question.getFanartFile())
else:
self.getControl(self.C_MAIN_MOVIE_BACKGROUND).setImage(self.defaultBackground)
And voila no more 'Non existent control 4500' the moviequiz was working. Althoug it looks not so pretty without the background image. And scoring does not work. Even local scoring does not work as intended.python:#if self.question.getFanartFile() is not None:
#self.getControl(self.C_MAIN_MOVIE_BACKGROUND).setImage(self.question.getFanartFile())
#else:
#self.getControl(self.C_MAIN_MOVIE_BACKGROUND).setImage(self.defaultBackground)
As we all love bling I decided to investigate in the controll. No success. It gave me a headache. Why can the addon not find the controll when it ist there? I was so desperat I decided to delete the controll id in script-moviequiz-main.xml on line 94 with my notepad ++ and reenterd it again. And tada no more 'Non existent control 4500' the moviequiz was working and showed the background image.
I made a zip file of the windows package put on my raspi production kodi, installed the zip and have now this beatifull addon working again. OK scoring ist not working, the imdb download is not working and I have no music in my kodi so I dont know if music quiz is working but movies and series (tv-shows) work. Maybe I will investigate in scoring an post later. Im so happy as this addon is fun.