Kodi Community Forum
[RELEASE] Home Theater Experience (Script) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Home Theater Experience (Script) (/showthread.php?tid=55628)



- ijourneaux - 2010-12-10

I am seeing the same thing Copies the settings.xml file to the cinema experience folder in userdata. Try to execute from the Home Theater button in the BackRow skin.

Script exits back to list of movies.

http://pastebin.com/MtVz0ZJd


- Ilia - 2010-12-10

SlaveUnit Wrote:No matter what I setup in the settings I get the same result. It just goes back to the menu and doesnt play anything.

Here is my debug log. You can see the script fails. The only difference I can see between ours is that Im running win 7 x64 and possibly that I run in portable mode and you run in profile mode.

http://pastebin.com/0cx7sRnA

From briefly looking it does not like your feature presentation intro videos, possibly a bad path, remove all you setting and change the path to your intros to another directory, hopefully it will bypass them and play the trialers..

I havent had the time to fully test this script, hopefully on the weekend.


- Ilia - 2010-12-10

new update with (hopefully) fixed trivia.. i cant test this cos i dont have slides..

http://www.megaupload.com/?d=FO4IFZCJ


- Ilia - 2010-12-10

ijourneaux Wrote:I am seeing the same thing Copies the settings.xml file to the cinema experience folder in userdata. Try to execute from the Home Theater button in the BackRow skin.

Script exits back to list of movies.

http://pastebin.com/MtVz0ZJd

possibly something to do with
PHP Code:
18:40:37 T:3380 M:920522752   ERRORPython script "C:\Documents and Settings\Journeaux Family\Application Data\XBMC\scripts\Home Theater Experience\default.py" does not exist 

You need to make sure that the skin that calls the script has RunScript(script.cinema.experience)..
ie

PHP Code:
<item id="6">
    <
label>CINEMA</label>
    <
visible>Container.Content(movies)</visible>
    <
onclick>Playlist.Clear</onclick>
    <
onclick>Dialog.Close(MovieInformation)</onclick>                       <onclick>RunScript(script.cinema.experience)</onclick>
</
item

This is taken from DialogVideoInfo.xml (AEONMQ-2 skin) where the buttons for Play/Reload/etc are


- SlaveUnit - 2010-12-10

I will be able to test this shortly. For now if anyone wants slides or other media to use this with, a while back I created a thread with everything I had gathered up.

http://forum.xbmc.org/showthread.php?tid=69270&highlight=home

The few threads I have checked still work. Let me know if any are dead and I can hopefully reupload/replace them.


- SlaveUnit - 2010-12-10

Ilia Wrote:new update with (hopefully) fixed trivia.. i cant test this cos i dont have slides..

http://www.megaupload.com/?d=FO4IFZCJ

No change with the new script.
http://pastebin.com/SDaAr3Xz

If you want to test just point it to any folder with a jpg or 2 in it.


- Ilia - 2010-12-10

SlaveUnit Wrote:No change with the new script.
http://pastebin.com/SDaAr3Xz

If you want to test just point it to any folder with a jpg or 2 in it.

It looks like this is the issue

PHP Code:
17:51:54 T:2832 M:2139955200  NOTICE:     ui Trivia"script-HTExperience-trivia.xml"os.getcwd(), "default"Falsesettings=settingsplaylist=self.playlistdialog=pDialogmpaa=mpaa )
17:51:54 T:2832 M:2139955200  NOTICETypeErrorXML File for Window is missing 

Not sure if this needs to be another skin dialog or what, will need to see whats going on there.


- htpc guy - 2010-12-10

Big GrinOn my windows system (test system) I can use the GUI to edit the settings. On my linux system (main system, hooked to the tv) the script crashes XBMC. I was able to get it setup by manually editing the settings.xml file. At least its working


- ackbarr - 2010-12-10

Ilia Wrote:It looks like this is the issue

PHP Code:
17:51:54 T:2832 M:2139955200  NOTICE:     ui Trivia"script-HTExperience-trivia.xml"os.getcwd(), "default"Falsesettings=settingsplaylist=self.playlistdialog=pDialogmpaa=mpaa )
17:51:54 T:2832 M:2139955200  NOTICETypeErrorXML File for Window is missing 

Not sure if this needs to be another skin dialog or what, will need to see whats going on there.

After fiddling for a bit and digging into some of the working Dharma scripts, I've cobbled together a working trivia script:

in xbmcscript_player.py change that error line to:
Code:
ui = Trivia( "script-HTExperience-trivia.xml", os.getcwd().rstrip( ";" ), "default", False, settings=settings, playlist=self.playlist, dialog=pDialog, mpaa=mpaa )

and replace xbmcscript_trivia.py with this:

http://pastebin.com/umkN6QbU

* Edit - Spoke too soon, it worked on my Windows workstation, but when didn't on my HTPC (xbmc live installed), the problem has to with the resources\skins\default\ folder, will dig a little deeper and follow up with what I find


- ijourneaux - 2010-12-10

[quote=Ilia]possibly something to do with
PHP Code:
18:40:37 T:3380 M:920522752   ERRORPython script "C:\Documents and Settings\Journeaux Family\Application Data\XBMC\scripts\Home Theater Experience\default.py" does not exist 

Fixed that problem now getting

18:29:42 T:1700 M:822820864 NOTICE: -->Python Interpreter Initialized<--
18:29:42 T:1700 M:822902784 ERROR: Error Type: exceptions.ImportError
18:29:42 T:1700 M:822902784 ERROR: Error Contents: No module named resources.lib.experience

Perhapi I am missing something


- Nuka1195 - 2010-12-10

yup i guess i lied again.

@ijourneaux, you have my test addon.py mixed in there.

try this line for the trivia:
ui = Trivia( "script-HTExperience-trivia.xml", os.getcwd(), "default", "PAL", settings=settings, playlist=self.playlist, dialog=pDialog, mpaa=mpaa )


if you have any questions i will help you get it working, but won't support it as the new one will have all my focus.


- Ilia - 2010-12-10

Nuka1195 Wrote:yup i guess i lied again.

@ijourneaux, you have my test addon.py mixed in there.

try this line for the trivia:
ui = Trivia( "script-HTExperience-trivia.xml", os.getcwd(), "default", "PAL", settings=settings, playlist=self.playlist, dialog=pDialog, mpaa=mpaa )


if you have any questions i will help you get it working, but won't support it as the new one will have all my focus.

Thanks Nuka, nice see that you are still around!

Any suggestions on getting the "configure" screen in the addons working?


- User 55003 - 2010-12-10

Cheers Nuka1195, just tested a jpg folder, & it should make a few people happy Smile Nice one..


- Nuka1195 - 2010-12-10

try changing all type="files" -> type="file"


- SlaveUnit - 2010-12-11

So with anyone having this work can you post the full script again? So idiots like myself have a single place to get all the working files together.

And thanks again Nuka for chiming in with assistance again when you didn't have to!