Roolku's Skin (based on Rainbow of Doom)
Introduction
What initially started as an attempt to adapt the "Rainbow Doom Skin" (by Disc-Flipper) so that it would fit onto my 1024x768 display without scroll-bars, has turned into a project that can't do without a readme anymore. Here are some instructions on how to get the most out of it and thanks again Disc-Flipper for letting me use your skin's look.
It has been tested with DVD Profiler 2.01 581 on win xp and win nt, but there are no guarantees it will work for you. ;)
Some features here will only work with DVD Profiler 2.01, so if you are still using DVD Profiler 2.0, I suggest you go back to 1.24a.
The skin is provided as is <insert usual disclaimer here>. I will do my best to fix bugs if they are reported in the thread on the DVD Profiler Skins Forum or emailed to roolku@yahoo.com. It is however a hobby project, so don't expect any professional support.
If you want to use bits of my code for your own project, go right ahead. I would appreciate if I get a mention in a comment somewhere for significant re-use though.
Installation
Extract the file roolku.zip into the DVD Profiler directory, preserving the included directory structure. This should put
- dvdpro.bat and update.cmd in the profiler home directory
- various *.dps files in the skin directories
- various *.class files in the roolku/java directories
- various *.gif and *.jpg files in the images/* directories
- various *.xml, *.xsl, *.js, *.css and *.txt files in the roolku directory
Now run dvdpro.bat to use the internal skin from within DVDPro or check out readme_external on how to use the external skin.
NOTE: from version 2.10 the directory structure has been changed in agreement
with deniro from devoted.to/dvds. All
DVD related files are now located in the <profiler home>/images/gallery/<upc> directory.
Posters must be named poster.jpg titles are title.gif. Names for gallery items
and trailers remain the same. To make the transition easy an update.cmd is
included (unfortunately win xp only). Run it from within the profiler directory
to copy and rename the files.
Known limitations
- some graphical features (audio, rating, region) are not compatible with the external skin and are turned off there
- some attributes are only applicable to DIVX files - if sorted by them, the result is empty
Download
Sun Java workaround
by Achim Neudeck (ya_shin)
If you are reading this, you have probabably tried unsuccessfully to run roolku's fabulous skin. Below you will find the solution how to fix the problem.
In the beginning, however, in case you care, I will give you some basic details about the background of the problem and my search for the remedy. Then I'll give you the instructions how to fix it. For path names I'll show them as they appear in my computer, you just translate them to whatever they should be in your's.
The Problem
I suppose you have Windows XP Service Pack 1a installed (I have SP 2 by now, but that makes no difference here). The meaning of 1a was, that Microsoft removed their own Java Virtual Machine because of legal issues; SP 1 still had it. That is also, why only few people seem to have the problem... Therefore another way to resolve the problem could be to find a stand-alone installer of the MS VM and install that. But since MS is not supporting that anymore, maybe you wanna stick to Sun's Java.
As I learned during my search, Java does not allow applets to do potentially harmful actions on your computer. Therefore file system actions are ruled out. Since roolku's skin is apparently reading and writing files on your machine, we received those infamous "access denied" messages and nothing would work.
The Search
I googled a lot and found quite some information on the Java security, the
most informative one being being Sun's Java
Technology pages (Default
Policy Implementation and Policy File Syntax, Permissions
in the Java(TM) 2 SDK and Policy
Tool - Policy File Creation and Management Tool).. With that on hand I
felt the solution was near, I only needed to use the policytool (C:\Program
Files\Java\j2re1.4.2_0_\bin) to tweak the VM's java.policy file
(C:\Program Files\Java\j2re1.4.2_0_\lib\security). But at first
it wouldn't work.
Eventually I found, that the above mentioned java.policy file
is only used by the Administrator account of the computer. Users have their
own java.policy in their "Documents and Settings" folder and it's
named slightly differently: C:\Documents and Settings\Achim\.java.policy (note
the dot in front of java.policy!)
So, trying to copy the file from the original location and renaming it does
not work, as Windows will ask you to provide a name for the file (.java.policy is
considered a file extension).
After having solved that (you'll learn below), I simply went through step by step. Applying one permission with reference to the error message and then see what comes up next time DVDProfiler starts up with roolku. It was finally four separate permissions that needed to be granted.
O.k., enough of that, here it is.
The Solution
DISCLAIMER (I just feel better mentioning this)
THE BELOW SETTINGS WILL BE DONE AT YOUR OWN RISK. THEY WORK FOR ME, BUT THEY MIGHT CREATE SECURITY ISSUES OR OTHER PROBLEMS FOR YOUR COMPUTER; WHICH I WILL NOT BE RESPONSIBLE FOR.
Start up policytool.exe. At first startup it should give you
a message (unless you use the Administrator's account, then you can probably
skip this step), that the .java.policy file of your account was
not found. Fine. Use File|Open to locate and open the java.policy file
in C:\Program Files\Java\j2re1.4.2_0_\lib\security. Then do a
File|Save As and save it in the "root" of your user account (C:\Documents
and Settings\<USERNAME>). Remember to put the dot in front of
the file name before clicking Save! Strangely enough, what explorer doesn't
allow you, policytool will do the trick.
In the window of the policytool you should see two entries:
- Codebase "file:${java.home}/lib/ext/*"
- Codebase <ALL>
(The one we'll be creating will also be named "Codebase <ALL>", but I felt better keeping the new settings separately.)
Codebase refers to the location, where the code that will be granted the permissions you are about to set is found. I just couldn't get it to work yet, that ONLY roolku's skin will be able to do the granted actions. I guess it might be because his code is in several locations.
Now click "Add Policy entry" to open the related window. (if you want to come back here later, just double-click "your" "Codebase <ALL> entry or select it and click Edit Policy Entry"). Four permissions will have to be created. You always click "Add Permission" do do so. The top half of the window stays empty (as I said, I don't know what to put there to limit the permissions to roolku's skin). When you click Add Permission another window will pop up. Just fill in the information as provided below, maybe adjusting pathnames as suitable for your system.
-
- Permission:
- Select "RuntimePermission" from the first dropdown.
- Select "modifyThreadGroup" from the second dropdown.
- OK.
-
- Permission:
- Select "RuntimePermission" from the first dropdown.
- Select "modifyThread" from the second dropdown.
- OK.
-
- Permission:
- Select "FilePermission" from the first dropdown.
- On the right side, next to "Target Name:", enter the path to the image
directory as follows:
C:\\Program Files\\InterVocative Software\\DVD Profiler\\IMAGES\\-(The dash at the end will include all subdirectories.) - Enter the words "read" and "write", separated by comma, into the field next to "Actions:"
- This permission will allow applets (ANY applet, that is) to read or write files in the IMAGE directory and all it's subdirectories.
- OK.
-
- Permission (especially for roolkuDownload):
- Select "SocketPermission" from the first dropdown.
- On the right side, next to "Target Name:", enter "*" (asterisk).
- Enter the words "connect", "listen" and "resolve", separated by comma, into the field next to "Actions:"
- OK.
So, that should be it. After saving the .java.policy file the skin should be operating as desired.
BTW, you do not need to use roolku's dvdpro.bat anymore, as Sun is not support
the CLASSPATH function. So just copy the two class files from \roolku\java to
the directory C:\Program Files\Java\j2re1.4.2_0_\classes, which
you may still have to create.
YOU'RE DONE!
If, you still have any question or any description above is not clear enough, don't hesitate to contact me (you'll find a link to my e-mail address in the DVDProfiler forum). It's no bother.
Good luck!
ChangeLog
- v1.02 adds jscript handlers for image mousover
- v1.03 unified scrolling for overview, audio and actors (only if required)
- v1.04 added review and changed style for overview-parts
- v1.05 added delay for mouseover
- v1.06 added intelligent resizing with squish limit
- v1.07 added icons for audio track
- v1.08 some tidying up, audio verbose
- v1.09 experimental headshot display on mouseover actors/directors names
- v1.10 improved version and bug fixes
- v1.11 optional download applet
- v1.12 gif and jpg now work for headshots, rewrote the image check
- v1.13 resize according to available space (first attempt)
- v1.14 linebreaks in overview, eastereggs and notes
- v1.15 aka title, seperated description display, general tidying up
- v1.16 preliminary gallery & poster support
- v1.17 slideshow feature, minor tweaks
- v1.18 thumbnail overview
- v1.19 removed actor download, slideshow index, tweaks
- v1.20 manual & disc ID fixed, preliminary trailer support, resizing changed
- v1.21 more trailer formats, size selection and other small changes
- v1.22 scanned titles
- v1.23 rating icon mechanism revamped
- v1.24 remove extra bits (gallery), customisation revisited
- v1.25 ver 2.01 adjustments, boxset gallery
- v1.26 optimisation, fixes, title download
- v1.27 region icons, more fixes and tweaks
- v1.28 region code display fixed, gallery rewritten, title display option
- v2b01 new external skin
- v2b02 debug mode
- v2.00 sorting, rainbow resize
- v2.01 filtering, fixed GalleryDownload
- v2.02 nbs catalog conerter, esc to clear filter, resizing improved, random DVD, remote cover
- v2.03 index 'buttons', review bar, note tags (watched info)
- v2.04 imdb download from external skin, bug fixes, activity log
- v2.05 greatly improved sort with grouping and counting, cover-overview for groups, nbsi applet improved
- v2.05a nbsi off by default, hanging fixed for GalleryDownload, GalleryDownload on ctrl-click in external skin
- v2.06 sorting/filtering by locality, covers in overview are clickable, actions, cover in all, bug fixes, bulk load
- v2.06a filter-related bug fix
- v2.07 euro, resize w/o reload, bugfix sort, bugfix IMDBDownload, user panel re-organised (sorts)
- v2.10 bugfix (actor filter), more categories for NBSI, gif detection in
actor download, shortcuts in external skin, new flipper tag used, GalleryDownload
adapted to new convention and changes in IMDB layout
*** change of directory structure in agreement with deniro from devoted.to/dvds *** - v2.11 flexible naming for gallery (some changes to customisations), LOCALITY discontinued
- v2.12 sort gallery by aspect ratio, actor sort in ext skin, bugfixes
- v2.13 download revamped (roolkuDownload.class) and extended, NBSI conversion integrated, RB&NYW optimised
- v2.16 adapted gallery download, desc detection adjusted
- v2.17 fixed to work with DVDPro 2.20 (beta), RoolkuDownload.class displays version for easy check, directors don't have middle names
- v2.18 fixed trailerdownload (changed layout), added filter for adult genre (edit in mail.js), added "not yet reviewed", "popular actor" and "popular director" shorthands, sort gallery (facemanboss)
- v2.19 fixed headshot download (changed imdb layout)
