Kodi Community Forum
[RELEASE] Cinema Experience - the new 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] Cinema Experience - the new Home Theater Experience Script (/showthread.php?tid=87563)



- queequeeg78 - 2011-06-23

Was wondering if anyone could give a little detail how to set up the home automation part of it? I am currently using eventghost to start my automation, but loving the idea that you can trigger it during the actual script Smile

I am assuming you need to make a python script first right? If so does anyone have any demo scripts you'd like to share? Smile


- boblinds - 2011-06-23

Giftie: CE isn't working properly on my Dharma install. I noticed it last night up in the theater and tested it again today on my main PC in the office. I've uploaded the logs from today's PC test: http://www.pastebin.com/gBjuQDWc

You should see that I had the newest build installed and the system misfired. Then I uninstalled the new build and reinstalled the current release build and reran the same sequence, which worked properly. I hope this is useful. (FYI, this isn't about getting MY system to work. It's about trying to help with the overall process. Smile )

Best,
Bob


- giftie - 2011-06-24

boblinds Wrote:Giftie: CE isn't working properly on my Dharma install. I noticed it last night up in the theater and tested it again today on my main PC in the office. I've uploaded the logs from today's PC test: http://www.pastebin.com/gBjuQDWc

You should see that I had the newest build installed and the system misfired. Then I uninstalled the new build and reinstalled the current release build and reran the same sequence, which worked properly. I hope this is useful. (FYI, this isn't about getting MY system to work. It's about trying to help with the overall process. Smile )

Best,
Bob

Could you repost your log to paste bin? It's reporting "Unknown Paste ID!"


- boblinds - 2011-06-24

Rats.

Let's see if this one works: http://pastebin.com/UUpUp7HD


- Fudi - 2011-06-24

На каких платформах сие работает?

On what platforms these thing work?


- giftie - 2011-06-24

Fudi Wrote:На каких платформах сие работает?

On what platforms these thing work?

As far as I know, all of the... Though I can personally say Windows and Linux(live)

All except Xbox(which is now a different version completely)


- giftie - 2011-06-24

queequeeg78 Wrote:Was wondering if anyone could give a little detail how to set up the home automation part of it? I am currently using eventghost to start my automation, but loving the idea that you can trigger it during the actual script Smile

I am assuming you need to make a python script first right? If so does anyone have any demo scripts you'd like to share? Smile


There is a file that is stored in your userdata/addon_data/script.cinema.experience/ha_scripts folder called 'home_automation.py' - I located it here so it would not get erased when the script is updated.

I have a the complete instructions for using EventGhost(does not have to be a local machine, just an old Windows box) here http://forum.xbmc.org/showpost.php?p=790523&postcount=1281 There is also a prebuilt 'home_automation.py' file in that message that is available for download that works as well.

If you are using a different HA system, I would be happy to help write the instructions for that.


- giftie - 2011-06-24

boblinds Wrote:Rats.

Let's see if this one works: http://pastebin.com/UUpUp7HD

That worked.. I see the problem.. Thanks..


- queequeeg78 - 2011-06-24

Thanks giftie for the link, I am going to to try it out this weekend and hopefully get it to work Smile have a nice weekend mate!


- lightkeepr - 2011-06-25

Now that I love this script and all it does I have two questions for minds far superior than mine.

One, can you launch from a dvd and not a stored video file while using CE?
Second, is it possible to use video clips and still slides for the trivia?

Thanks in advance!


- giftie - 2011-06-25

lightkeepr Wrote:Now that I love this script and all it does I have two questions for minds far superior than mine.

One, can you launch from a dvd and not a stored video file while using CE?
Only if using a nightly version and stub files(maybe) the script requires data to be stored in the Library
Quote:Second, is it possible to use video clips and still slides for the trivia?
Video clips no, still slides yes, and there are lots available...


Issue with Folders - cult - 2011-06-25

Hi everyone!

I wanted to chime in with a huge thanks for putting this add-on together, I think it's the best part about XBMC and its impressed everyone I've had over viewing it.

I did have an issue though with the add-on that I was hoping someone might be able to help me resolve. I have all of my files (stills, trailers, ratings files, etc.) located on a seperate drive to save space on my C: drive, however I can't get the add-on to create the playlist from the files under that path name to be able to use the add-on.

After spending a great amount of time trying to troubleshoot the issue, I've determined that the add-on is looking at the %User%\AppData\Roaming\XBMC\Cache directory under my user folder to create the playlist. After creating a similar folder structure that I have on my other drive with identical files after placing the files under the Cache directory, the add-on seems to function the way that it should. But unfortunately this is not going to work for me in the long run because all of the trailers will eventually consume my C: free space. Sad

I've pasted two log files below from Pastebin with the working log from my cache directory:

http://pastebin.com/NKewQyN2

and the non-working log file from when I remove the folder structure from my cache directory:

http://pastebin.com/Ag3J94vW

If anyone has any ideas on anything that I might be able to try, please let me know - I am completely out of ideas.... Thanks!


- giftie - 2011-06-25

cult Wrote:Hi everyone!

I wanted to chime in with a huge thanks for putting this add-on together, I think it's the best part about XBMC and its impressed everyone I've had over viewing it.

I did have an issue though with the add-on that I was hoping someone might be able to help me resolve. I have all of my files (stills, trailers, ratings files, etc.) located on a seperate drive to save space on my C: drive, however I can't get the add-on to create the playlist from the files under that path name to be able to use the add-on.

After spending a great amount of time trying to troubleshoot the issue, I've determined that the add-on is looking at the %User%\AppData\Roaming\XBMC\Cache directory under my user folder to create the playlist. After creating a similar folder structure that I have on my other drive with identical files after placing the files under the Cache directory, the add-on seems to function the way that it should. But unfortunately this is not going to work for me in the long run because all of the trailers will eventually consume my C: free space. Sad

I've pasted two log files below from Pastebin with the working log from my cache directory:

http://pastebin.com/NKewQyN2

and the non-working log file from when I remove the folder structure from my cache directory:

http://pastebin.com/Ag3J94vW

If anyone has any ideas on anything that I might be able to try, please let me know - I am completely out of ideas.... Thanks!

The script should not access the "cache" folder unless you specify it to use it. Though XBMC will use the "cache" folder when it needs to, ie store files there temporarly. I notice you are using version 1.0.46 on a Dharma 10.1 version of XBMC, this version was untested on Dharma(although you have Smile ) I see one error popping up in the log file you submitted. The dharma_code.py is missing 'import os' at the start of it, if you add this the script may function correctly.

Also, XBMC needs to be in Debug mode for the script to log all the information(normal log is quite bare on purpose) I need to make a fix for Dharma on the version I am working on(1.0.47 right now)


- cult - 2011-06-25

giftie Wrote:The script should not access the "cache" folder unless you specify it to use it. Though XBMC will use the "cache" folder when it needs to, ie store files there temporarly. I notice you are using version 1.0.46 on a Dharma 10.1 version of XBMC, this version was untested on Dharma(although you have Smile ) I see one error popping up in the log file you submitted. The dharma_code.py is missing 'import os' at the start of it, if you add this the script may function correctly.

Also, XBMC needs to be in Debug mode for the script to log all the information(normal log is quite bare on purpose) I need to make a fix for Dharma on the version I am working on(1.0.47 right now)

lol, thanks giftie - cant believe i didnt notice that this add-on wasn't meant for 10.1 yet. i went through and created a full debug log (didnt realize too that it was off) in case you wanted to take a look:

http://pastebin.com/ufHGEx4M

basically whats happening is that the sequence should go the way i have it set up:

stills > theater intro > coming attractions intro > trailers > feature presentation intro > ratings vid > movie

instead the stills work fine but then it skips everything else and jumps straight to the movie. but you could probably tell all that by looking at the log anyway Laugh

i'm not too familiar with python scripting but ill see if i can dig around for some steps on how to insert the "insert os" into the script. maybe it might be a safer approach for me to just wait until 1.0.47 so I don't break something else lol


- giftie - 2011-06-25

cult Wrote:lol, thanks giftie - cant believe i didnt notice that this add-on wasn't meant for 10.1 yet. i went through and created a full debug log (didnt realize too that it was off) in case you wanted to take a look:

http://pastebin.com/ufHGEx4M

basically whats happening is that the sequence should go the way i have it set up:

stills > theater intro > coming attractions intro > trailers > feature presentation intro > ratings vid > movie

instead the stills work fine but then it skips everything else and jumps straight to the movie. but you could probably tell all that by looking at the log anyway Laugh

i'm not too familiar with python scripting but ill see if i can dig around for some steps on how to insert the "insert os" into the script. maybe it might be a safer approach for me to just wait until 1.0.47 so I don't break something else lol

If you want to attempt to add the needed code, I'll give you step by step instructions.

You need to open, in a text editor, the 'dharma_code.py' file found in your appdata\xbmc\addons\script.cinema.experience\resources\lib\ folder

you should see code near the top that looks like this:
Code:
import xbmc, xbmcgui, xbmcaddon
import traceback

All you need to do is add ', os' to the second line so it looks like this.

Code:
import xbmc, xbmcgui, xbmcaddon
import traceback, os

Make sure there is a comma and a space before the 'os' and also must be in lower case. Then save the file and test.