View Full Version : Apple Movie Trailers script skin
Nuka1195
2007-05-11, 20:18
*XBMC Revision 9504 or newer required
Here are a few screenshots of the updated Apple Movie Trailers script using WindowXML.
The script works the same as XBMC Lyrics where you can include the xml files with your skin, so no need to submit them to me. If you have any suggestions, please post. I want to have the id#'s finaled so I don't break skins.
You may notice this is the WS version. The skinner can decide to show all info on the screen. The plot/cast button is still available if you need to only show one at a time.
Thanks to Jezz_X for his help. Alot of the layout was done by him for PMIII.
http://www.supload.us/thumbs/default/screenshot000.PNG (http://www.supload.us/free/screenshot000.PNG/view/)
http://www.supload.us/thumbs/default/screenshot001.PNG (http://www.supload.us/free/screenshot001.PNG/view/)
http://www.supload.us/thumbs/default/screenshot002.PNG (http://www.supload.us/free/screenshot002.PNG/view/)
http://www.supload.us/thumbs/default/screenshot003.PNG (http://www.supload.us/free/screenshot003.PNG/view/)
CONTROL_TITLE_LABEL = 20
CONTROL_CATEGORY_LABEL = 30
CONTROL_BUTTON_GROUP_START = 103
CONTROL_BUTTON_GROUP_END = 109
CONTROL_TRAILER_LIST_START = 50
CONTROL_TRAILER_LIST_END = 59
CONTROL_TRAILER_LIST_PAGE_START = 2050
CONTROL_TRAILER_LIST_PAGE_END = 2059
CONTROL_TRAILER_LIST_COUNT = 2150
CONTROL_CATEGORY_LIST = 60
CONTROL_CATEGORY_LIST_PAGE = 2060
CONTROL_CATEGORY_LIST_COUNT = 2160
CONTROL_CAST_LIST = 70
CONTROL_CAST_LIST_PAGE = 2070
CONTROL_CAST_BUTTON = 170
CONTROL_PLOT_TEXTBOX = 75
CONTROL_PLOT_BUTTON = 175
CONTROL_TRAILER_POSTER = 201
CONTROL_OVERLAY_RATING = 202
CONTROL_OVERLAY_FAVORITE = 203
CONTROL_OVERLAY_WATCHED = 204
CONTROL_OVERLAY_SAVED = 205
CONTROL_TRAILER_TITLE_LABEL = 206
Other xml files have required id's also, just follow the xml's
There are still some quirks, but it seems to work pretty good now.
Nuka1195
2007-05-13, 16:57
Ok committed.
The following are the required ID numbers, though you should be able to hide unwanted controls.
CONTROL_TITLE_LABEL = 20
CONTROL_CATEGORY_LABEL = 30
CONTROL_BUTTON_GROUP_START = 103
CONTROL_BUTTON_GROUP_END = 109
CONTROL_TRAILER_LIST_START = 50
CONTROL_TRAILER_LIST_END = 59
CONTROL_TRAILER_LIST_PAGE_START = 2050
CONTROL_TRAILER_LIST_PAGE_END = 2059
CONTROL_TRAILER_LIST_COUNT = 2150
CONTROL_CATEGORY_LIST = 60
CONTROL_CATEGORY_LIST_PAGE = 2060
CONTROL_CATEGORY_LIST_COUNT = 2160
CONTROL_CAST_LIST = 70
CONTROL_CAST_LIST_PAGE = 2070
CONTROL_CAST_BUTTON = 170
CONTROL_PLOT_TEXTBOX = 75
CONTROL_PLOT_BUTTON = 175
notes:
ID="50" must be a type="list", the others 51-59, can be the other types.
Be careful using group control's, if you move to a list by referencing the group, the list will not work correctly. I need a way to have specific id's for that.
Currently XBMC locks up after a trailer is played, if the trailer was launched from id="50" the list. If you launch from one of the other views it works. May be a script issue, may be a WindowXML issue, may be an XBMC issue?
I'm taking a break from this, but if you have any request, please post them. Maybe Killarny or someone else can add them if I'm too busy.
Nuka1195
2007-05-17, 19:27
Edited first post
Nuka1195
2007-07-06, 17:19
Alright skinners and translators. I think I'm done.
Skinners there have been quite a few additions and improvements. Most of your skin that worked with 97.5 will work with maybe some id number changes and adding groups where needed.
Most controls with id numbers are required. You may hide ones you don't want.
The main window uses groups to hide/show the categories or trailer lists. All other controls you control with visibility and animation conditions.
There are some new windows (search).
The chooser dialog now uses a multiimage for the skin thumb.
Of course now every window can take full advantage of <include> tags and defaults.xml. Anything that works for your main skin should work here. Themes, color themes...
*XBMC Revision 9504 or newer required
It is worth updating your skins. :)
http://xbmc-scripting.googlecode.com/svn/trunk/Apple%20Movie%20Trailers
navanman
2007-07-06, 17:59
I get prompted for username and pw if i click on your link to download AMT.
Nuka1195
2007-07-06, 18:24
the link is to svn. you need tortoisesvn to download it.
Fixed: the link.
MikeBeecham
2007-07-06, 19:16
As a script it works great mate...the only issue I am having at the moment, is that the trailers stop the sound part-way through the trailer.
I can still watch the trailer (no matter what trailer I am watching), but the sound just stops.
Any ideas?
Nuka1195
2007-07-06, 20:05
which trailer? the high quality transformers just played fine.
I'm sure it's not a script issue though.
MikeBeecham
2007-07-07, 10:53
hmmm ok mate. I happens to almost all of the trailers I watch though
Nuka1195
2007-07-08, 23:01
@Jyra, maybe check your log. I really don't think it's a script issue though.
Here are a couple SS of LCARS skin I just committed. It's a WIP. Only the main window is started.
Anybody wish to contribute, especially animations :)
http://s2.supload.com/thumbs/default/LCARS-thumbnail1.png (http://s2.supload.com/free/LCARS-thumbnail1.png/view/)
http://s2.supload.com/thumbs/default/LCARS-thumbnail2.png (http://s2.supload.com/free/LCARS-thumbnail2.png/view/)
To get the font correct. You need to download lcars.ttf. It can be found http://www.lcarsdeveloper.com/ in the DL section.
Then you need to add the following to the correct Font.xml, in the correct font you're using.
This is for 720p (The skin is really only setup for widescreen)
<font>
<name>lcars-small</name>
<filename>lcars.ttf</filename>
<size>34</size>
</font>
<font>
<name>lcars-medium</name>
<filename>lcars.ttf</filename>
<size>38</size>
</font>
<font>
<name>lcars-large</name>
<filename>lcars.ttf</filename>
<size>66</size>
</font>
MPauley73
2007-07-09, 03:57
Is the xTV skin for AMT under active developement?
MikeBeecham
2007-07-09, 11:38
I'm not sure it is. I think CHI3f is doing other things at the moment. You might, however, want to track down Leonardo, to see if he would like to do it for xMC?
pretty much the same outcome imo.
Nuka1195
2007-07-12, 05:31
Anybody who uses AMT script should update. I just committed a fix for a pretty serious bug.
MikeBeecham
2007-07-12, 10:08
what was the bug Nuka
copied from another forum:
Anybody using the AMT script included with this T3CH release, should update via SVN.
It won't affect people who started fresh, until new trailers are found, which could be anytime.
Refreshing genre's can corrupt the database. If this happens your cache is still good, but you will need to delete the database and recreate it.
hey Nuka1195, if there ever was a project that NEEDED coverflow, it's AMT!
Nuka1195
2007-07-26, 18:37
Pike you see how many lines just to add that :) If you want to give it a try great.
Skinners I just added a new dialog for theater showtimes. A very simple dialog.
http://s2.supload.com/thumbs/default/theater_showtimes.PNG (http://s2.supload.com/free/theater_showtimes.PNG/view/)
edwinmcdunlap
2007-07-27, 20:39
Is there an SVN for AMT?
Nuka1195
2007-07-27, 20:45
http://xbmc-scripting.googlecode.com/svn/trunk/Apple%20Movie%20Trailers
MikeBeecham
2007-07-27, 21:05
Pike you see how many lines just to add that :) If you want to give it a try great.
Skinners I just added a new dialog for theater showtimes. A very simple dialog.
http://s2.supload.com/thumbs/default/theater_showtimes.PNG (http://s2.supload.com/free/theater_showtimes.PNG/view/)
Does this work for the UK as well Nuka?
Nuka1195
2007-07-27, 21:23
it can with the right scraper. I used google, which I got the USA and Canadian one working.
www.google.com/movies (http://www.google.com/movies)
www.google.ca/movies (http://www.google.ca/movies)
theres appears to be a www.google.com.au/movies (http://www.google.com.au/movies) but i get no results from that website, either the zip/postal code I tried is wrong or it's non functional.
I also found www.google.co.jp/movies (http://www.google.co.jp/movies) don't speak the language so don't know if it will work
if you know of one for the uk, post the zip/postal code and the website and i'll see what i can do. It doesn't have to be google, that's just the one i used for USA and Canada
Nuka1195
2007-07-28, 02:40
I thought I tried ".co.uk" before, but I may have tried ".com.uk" instead.
I just added Google UK scraper. I only tested it by entering "london" as the location, you should be able to enter a post code too.
If anybody knows of any other www.google.*.*/movies (http://www.google.*.*/movies) search engines, post them with the post code or town that worked for you so I can test.
Anybody from australia this address exists http://www.google.com.au/movies, but it asks for a us city or zip.
So far there's only minor differences between USA, Canada, UK.
spaz7986
2007-10-16, 19:42
I'm currently working on mc360 images for an mc360 skin for this script... I'm using the same image names and pixel sizes. Can somebody implement it into the svn if it's good? (I still have a lot to do as I've only done the first 8 images so far)
just use your postcode mike... works for me
Nuka1195
2007-10-16, 20:09
spaz7986, of course.
spaz7986
2007-10-17, 04:50
Hey nuka here is what I've got so far (http://maxupload.com/98009CFF) but the problem I'm having is getting amt-contentpanel_left.png to line up right next to amt-contentpanel.png when I'm in 720p. I always end up with a 1 pixel little vertical line inbetween the two pictures. If I change the positioning to <posx>129</posx> instead of <posx>128</posx> then there is a 1 pixel vertical line overlap between the two images.
Nuka1195
2007-10-17, 06:06
I'm no skinner, sorry can't help.
I just made a minor change to the settings window. sorry :)
You shouldn't need to include all the gfx, unless you want this to run in skins that are not MC360.
Also I already have the script :P
spaz7986
2007-10-17, 07:44
I do want to be able to run this in other skins than mc360 and the link I posted (if you open it up in xbmc) has my progress in the default skin (for AMT). Could a skinner take a look at this in 720p and tell me if there is a way to line up amt-contentpanel_left.png and amt-contentpanel.png perfectly?
spaz7986
2007-11-05, 21:43
I've changed a lot about the skin since my last post... I need some help on something...
On this control I need the text color to be FF000000 when Control.IsVisible(50) but I need it to be FFFFFFFF when Control.IsVisible(51) | Control.IsVisible(52) | Control.IsVisible(54). I tried doing this by deleting the animation effects and adding a visibility tag to the control (<visible>Control.IsVisible(50)</visible>). Then I created a second control beneath this one that is a clone with the exception of the text color, visibility tag (<visible>Control.IsVisible(51) | Control.IsVisible(52) | Control.IsVisible(54)</visible>), and the posx and posy tags. Can someone help??
Original:
<control type="label" id="2150">
<description>Trailer List Count Label</description>
<width>100</width>
<posx>490</posx>
<posy>327</posy>
<align>right</align>
<label>-</label>
<font>font10</font>
<textcolor>FFFFFFFF</textcolor>
<animation effect="slide" time="0" end="135,203" condition="Control.IsVisible(51)">Conditional</animation>
<animation effect="slide" time="0" end="135,203" condition="Control.IsVisible(52)">Conditional</animation>
<animation effect="slide" time="0" end="135,203" condition="Control.IsVisible(54)">Conditional</animation>
</control>
What I tried:
<control type="label" id="2150">
<description>Trailer List Count Label</description>
<width>100</width>
<posx>490</posx>
<posy>327</posy>
<align>right</align>
<label>-</label>
<font>font10</font>
<textcolor>FF000000</textcolor>
<visible>Control.IsVisible(50)</visible>
</control>
<control type="label" id="2150">
<description>Trailer List Count Label</description>
<width>100</width>
<posx>688</posx>
<posy>400</posy>
<align>right</align>
<label>-</label>
<font>font10</font>
<textcolor>FFFFFFFF</textcolor>
<visible>Control.IsVisible(51) | Control.IsVisible(52) | Control.IsVisible(54)</visible>
</control>
Any help?
Nuka1195
2007-11-05, 22:33
keep only one control with id 2150
and try
add:
<disabledcolor>FFFFFFFF</disabledcolor>
<enable>Control.IsVisible(50)</enable>
spaz7986
2007-11-07, 20:39
I tried it but no luck... didn't work. Any other ideas?
Nuka1195
2007-11-07, 20:55
Yes, look at my code again, i edited it.
spaz7986
2007-11-07, 20:59
was it the enable tag that had the mistake?
spaz7986
2007-11-08, 01:36
That worked... thanks for the help. Does the <enable> tag control the <textcolor> tag or does it control the <disabledcolor> tag?
Nuka1195
2007-11-08, 02:05
well if it's true, then the control is "enabled", if it's false then it's "disabled", so...
spaz7986
2007-11-08, 02:16
so basically the enable tag just states when the control is "enabled" therefore using <textcolor> when the control is enabled and <disabledcolor> when the control is disabled? And if that is the case (other than being able to change font colors for certain conditions) what is the point of enabling and disabling a control?
spaz7986
2007-11-08, 23:40
So far I've just completed coding and images for the 4:3 ratio script-Apple_Movie_Trailers-main.xml
Any opionions of things that should be changed/added/removed?
Screenies of my progress:
Default theme with the different viewtypes:
http://img155.imageshack.us/img155/4991/screenshot000za0.png
http://img119.imageshack.us/img119/5417/screenshot001jz3.png
http://img152.imageshack.us/img152/9493/screenshot002dj9.png
http://img223.imageshack.us/img223/149/screenshot003lh7.png
Different themes in use with the script (I have the skin loading your theme images for the background if your using the mc360 skin)
http://img223.imageshack.us/img223/4309/screenshot004wp8.png
http://img99.imageshack.us/img99/2554/screenshot005sa1.png
spaz7986
2007-11-13, 19:53
I don't have any screenshots but, I've finished the coding for the main xml file in the PAL folder (4:3 ratio). I just finished the coding before I left for college which is where I am now. This new code makes the gui look a heck of a lot better then my previous screenshots. I still have to move/resize a couple things for widescreen then I will upload that too... (if you want feel free to post screenshots of your successful installation since I can't currently)...
Installation:
1. Rename "script-Apple_Movie_Trailers-main.xml" to anything else to avoid overwriting it. (E:\apps\XBMC\scripts\Apple Movie Trailers\resources\skins\Default\PAL\script-Apple_Movie_Trailers-main.xml)
2. FTP this file (http://maxupload.com/C95E25B9) to the same location.
3. Rename "script-Apple_Movie_Trailers-main.xml" in E:\apps\XBMC\skins\MC360\PAL\ to anything else which forces XBMC to use the new one you just place in the 1st step.
(For some reason when I tried placing my xml file in the MC360\PAL\ folder the Mirror diffuse image on the main poster showed up fully opaque)
spaz7986
2007-11-15, 20:15
official release here (http://forums.xbox-scene.com/index.php?showtopic=629607)
Nuka1195
2008-07-09, 18:48
some changes to AMT that affect the skinning. we are at version pre-0.99.6 now
- changed: default skins no longer set category label directly. you now use ListItem.Genre, also added another label for genre list use: Container(60).ListItem.Genre and set the appropriate visible conditions
- changed: version -> pre-0.99.6 (database rewrite)
- changed: a list container is no longer required. (* see note)
- changed: context menu will now work on any container control (* see note)
- changed: now saves the release date instead of just year in db
- changed: set a property name releasedate, both list and player. skinners can access it by ListItem.Property(releasedate)
- changed: set ListItem.Studio, ListItem.Year
- changed: HT plugin - version -> 1.3.1
- changed: AMT plugin - version -> 1.2.1
- changed: HT & AMT plugins - releasedate property
- changed: set Plot and PlotOutline for playlistitem's, since some skins use that for video info
- changed: default skin to use xbmc language string id 9 for title instead of the hard coded xbox media center
- changed: version -> pre-0.99.4
- changed: english language string id(255)
- added: install the proper libraries for the users environment (thanks elan_osx)
- fixed: plugin installer failed at copying thumbs on OS X and other platforms (thanks elan_osx)
- changed: settings now uses radiobutton controls instead of checkmarks, also streamlines the settings xml file
- added: settings now has a defaults button to reset values
- changed: default and lcars settings xml files
*XBMC revision 13984 or newer to work