Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: Ghost Toast on June 20, 2008, 01:43:01 PM

Title: WPS problem
Post by: Ghost Toast on June 20, 2008, 01:43:01 PM
Hi All,

I'm having a problem creating my own theme.  When I  try to copy other people's themes and put them in the file of my own theme, (I have buttons named play and pause) and try it out, it goes back to the default wps (song info, peak meter). 

Can anybody tell me what language it's in, and what I did wrong and need to do to fix it?

I attatched the file of the theme I created.
Title: Re: WPS problem
Post by: PaulJam on June 20, 2008, 02:13:01 PM
The "WPS language" is described here:
http://www.rockbox.org/twiki/bin/view/Main/CustomWPS

The wps file looks fine (apart from the stray TAB characters, which may cause an unwanted placeholder glyph to display).
Check if the three bitmaps are in the correct folder and the names match those specified in the wps file.
Title: Re: WPS problem
Post by: wintermute23 on June 20, 2008, 04:20:03 PM
Yeah, the code you have looks good. But if it can't find the images that would cause it to bomb out. If the WPS is /.rockbox/wps/Rockbox.wps then the images should be in a folder called /.rockbox/wps/Rockbox/

Also, depending on your screen size, I'd question the big block of blank space after the image loads. Each of those blank lines will be replicated on-screen, which may well push the information off the bottom.
Title: Re: WPS problem
Post by: Ghost Toast on June 20, 2008, 04:54:07 PM
Okay, I did what you told me to do, and I had all the images on there, in the right place, but, when I loaded it, once again, it went back to the default wps.   It didn't display anything I did.  It seems like the only pictures I can put in there are the backdrop and progress bar.  Whenever I try to put a play or pause or any other button in there, it goes back to the default wps.  Any other slight changes I do to the file, it goes back to the default wps.  I attatched the code again, too.
Title: Re: WPS problem
Post by: PaulJam on June 20, 2008, 05:07:53 PM
Please try to load the wps in the uisimulator. The output in the console should give some hints what goes wrong.
You find precompiled windows binaries here:
http://rasher.dk/rockbox/simulator/
Title: Re: WPS problem
Post by: MarcGuay on June 20, 2008, 05:09:21 PM
You're loading your images but aren't displaying them.  That doesn't explain why it's breaking, though.
Title: Re: WPS problem
Post by: BdN3504 on June 21, 2008, 10:34:03 AM
Why don't you upload a zip file, which contains all the images you created along with the wps code. Maybe you add an image of what you would like your wps to look, something like a sketch.
Title: Re: WPS problem
Post by: Llorean on June 23, 2008, 12:06:48 PM
Look at the commit log. Several things changed with WPS support recently.
Title: Re: WPS problem
Post by: robin0800 on June 23, 2008, 12:32:31 PM
The progress bar tag has changed its now either
%pb     
or
%pb|bitmap|x|y|width|height|
Title: Re: WPS problem
Post by: mschneider on June 23, 2008, 01:39:00 PM
fill in the %pb tag exactly as it's described. The name of the bitmap, the x and y coordinates of the bar, then the width and the height.
Your downloaded themes are probably not working because they use the old form of the progress bar tag, which was just broken earlier today.