Creating an osd.bin

From WikiDLXTV
Revision as of 10:56, 12 April 2011 by KAD (Talk | contribs)

Jump to: navigation, search

Intro to OSD MODDING


If I can do this so can you!!!!!!!


First let's set up you're computer for OSD modding


You'll need programs for the following:

graphics editing

XML editing

Linux OS


Here's how I started.


since I don't have a computer specific for linux I installed VMWare Player on my vista laptop VMWare Player is free and allows you to set up a linux OS without needing another computer

http://www.vmware.com/products/player/


Once VMWare player was installed, I downloaded and installed Kubuntu Kubuntu is a free linux distribution, which I installed inside VMWare Player as the Operating system


Next download the stock.osd.bin , this will be your framework for creating your own theme by using this you will not need to learn to create your own .bin file

http://forum.wdlxtv.com/viewtopic.php?f=45&t=132&start=10#p805


NOTE:this file is extremely old, but still usefull, boot WDLXTV with the stock.osd.bin and perform an svn checkout to update prior to starting any new mods, instructions on how to check out at end of page


an additional program that you may find helpful is: explore2fs - this will allow you access to the files inside stock.osd.bin within a windows environment, you'll simply export the directory to whatever folder you desire within windows, you can then edit any photo's or xml's with your favorite windows based editing programs

http://www.chrysocome.net/explore2fs


if you like you can configure vmware player to share files between your 2 desktops, but for ease, I simply used a usb stick, copied stock.osd.bin and renamed it kad.osd.bin you can name your mod whatever you like xxxx.osd.bin


I then copied the file to the kubuntu desktop and created a folder on the desktop called "osd" this folder will be the mounting point for accessing files within xxxx.osd.bin


in kubuntu open the terminal from the location of stock.osd.bin


type


   sudo mount -o loop stock.osd.bin osd
   where
   stock.osd.bin = the name of your osd.bin file
   osd = the name of the folder your created earlier on desktop (mounting point)


if you have chosen different locations for your stock.osd.bin or your folder used for a mounting point you will need to adjust the commands for the correct path and directory


the above command will prompt for sudo password, sudo is the equivelent of administrator and should be the password for your user id in kubuntu, if you're the administrator, which I suspect you are, type your password and key "enter"


now check the osd folder you should see several folders and alot of xml's


trouble shooting

if you do not see the files, but file manager shows any number of files

if you can see xml's but upon entering the folder images you can't see anything

if you can not paste your edited images into the images folder


go to the terminal and type


   sudo chmod -R 777 osd
   where
   osd = the folder created earlier (mounting point)


this will adjust the file permissions so that everything is editablenow just copy paste your edited jpg. .png or .xml files, which you edited with your favorite editing program


there are a couple of images from the images folder that are used, example


villa_bg.jpg

screen_saver.png


the majority of icons used are located at images/villa/


some examples include:

video icon selected = home_video_main_icon_f.png

video icon not selected = home_video_main_icon_n.png

photo icon selected = home_photo_main_icon_f.png

photo icon not selected = home_photo_main_icon_n.png

music icon selected = home_music_main_icon_f.png

music icon not selected = home_music_main_icon_n.png

setting icon selected = home_setting_main_icon_f.png

setting icon not selected = home_setting_main_icon_n.png


and of coarse many more


once all your files are in place go to your terminal and type


   sudo umount osd
   where
   osd = folder created earlier (mounting point)


this will unmount the osd.bin file and save all the changes you have made

now copy your modified xxxx.osd.bin it to your usb stick and insert into wdtvlive and reboot

you should see the effect of your changes

of coarse many other things can be changed


the xml files describe image location and attributes the majority of the home page is taken from villa_home.xml I'm still learning how to edit xml's but I found the linux program "Kate" which is included in kubuntu does just fine


you'll find most items are described with:

x=(horizotal starting point) 0 is left

y=(vertical starting point) 0 is top

w=(width of image)

h=(hight of image)

textcolor="0xC0C0C0"

etc


I plan to update this guide as possible and invite more experience OSD modders to fill in gaps. and outline more complex items not addressed here which might include more detail on xml editing, text editing, custom scripts, svn updatable, etc


2 additional resources/tools are:

http://b-rad.cc/877/wdtv-osd-how-to-make-a-custom-theme/

http://wdtvforum.com/main/index.php?PHPSESSID=3c5frc3dv7rc2s0ao8ups9hj00&topic=1626.0


KAD


Orginal post at: http://forum.wdlxtv.com/viewtopic.php?f=45&t=1899

edit: how to update stock.osd.bin with svn checkout 1.boot WDLXTV with stock.osd.bin on thumbdrive 2.login via telnet/ssh 3.type: svn export https://svn.wdlxtv.com/svn/wdlxtv-live/trunk/osd osd 4.reboot

you can also redirect the svn check to the wdlxtv-plus if the mod you're starting is for the live plus