Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: polluxx2006 on April 05, 2009, 05:07:30 PM

Title: wps parser check fails when trying to upload to themes site
Post by: polluxx2006 on April 05, 2009, 05:07:30 PM
hello,

i cannot find the error in my wps, that worked fine with release 3.1 and still works
fine on my iriver H140 with release 3.2.

but if i try to upload it to the themes site, i get "WPS parsing failure".
i cant find an error anyhow... do YOU?

http://pastebin.com/m59956206

wps parser is talking bout the lines (wps /rwps) with the "%pb...."-entry

thanks for helping
plx
Title: Re: wps parser check fails when trying to upload to themes site
Post by: PaulJam on April 05, 2009, 06:30:24 PM
Hi,

the correct syntax for the Progressbar is:
%pb|filename.bmp|x|y|width|height|
(see here (http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Playlist_Song_Info))

So your line should probably be:
%pb|-|27|65|133|7|
Title: Re: wps parser check fails when trying to upload to themes site
Post by: polluxx2006 on April 06, 2009, 03:05:08 AM
hm, i already tried that.....
plus, the last time the parser complained about the first line
(%X|backfrop.bmp|)... isnt that strange?
Title: Re: wps parser check fails when trying to upload to themes site
Post by: linuxstb on April 06, 2009, 03:24:14 AM
Do your bmp filenames have the correct case?  e.g. if you have written "%X|backdrop.bmp|" in your WPS file, the file name must be "backdrop.bmp", not "Backdrop.bmp".
Title: Re: wps parser check fails when trying to upload to themes site
Post by: polluxx2006 on April 06, 2009, 05:12:16 AM
Do your bmp filenames have the correct case?  e.g. if you have written "%X|backdrop.bmp|" in your WPS file, the file name must be "backdrop.bmp", not "Backdrop.bmp".

sure, all my images are lower case. and as i said: the WPS works - they just fail the parser check for uploading them to the themes site
Title: Re: wps parser check fails when trying to upload to themes site
Post by: pixelma on April 06, 2009, 05:23:51 AM
(%X|backfrop.bmp|)
Is it really called backfrop.bmp?
Title: Re: wps parser check fails when trying to upload to themes site
Post by: polluxx2006 on April 06, 2009, 05:33:22 AM
Quote
(%X|backfrop.bmp|)
Is it really called backfrop.bmp?

very dunny
Title: Re: wps parser check fails when trying to upload to themes site
Post by: polluxx2006 on April 28, 2009, 08:53:49 AM
hello!?

does anone have an idea why the wps works but failes the parser check?
(code above, pastebin-link)
id like to upload it to the themes site.

thanks
plx
Title: Re: wps parser check fails when trying to upload to themes site
Post by: gevaerts on April 28, 2009, 09:09:00 AM
Maybe it would help if you could provide a link to the full zip file you're trying to upload
Title: Re: wps parser check fails when trying to upload to themes site
Post by: pixelma on April 29, 2009, 02:51:29 AM
About my previous post: I noticed this typo in your post before and wanted to draw your attention to it - how should I know where exactly the typo was? The answer I got doesn't really make me want to help further but...  There are two problems in the pastebinned code which I'm quite sure cause problems, another one could be a problem I think - and I have an idea why the theme site complains about the %X tag.

1. Progressbar - as PaulJam says.

2. There are two bitmaps referenced as "x" - lines 21 and 29 in the pastebin.

3. Line 61 - I don't think it's possible to put the time definition of the subline inside the conditional anymore but am not sure.

4. The %X - could just be a hint. Since some time ago the theme site tests the 160x128 WPSs for all three colour depths (monochrome, greyscale, colour) to provide them for those possible. On monochrome displays, such as the M:Robe100's, a backdrop (and album art) is not possible. So maybe the theme site is just trying to tell you that this theme won't work in monochrome.

It's very hard to give further advice without seeing the complete zip and without knowing the exact error message. I wonder though why the theme works on target, unless you are using an older build? Perhaps you could try it in a recent enough simulator as it gives some helpful error messages.

A suggestion at last: provided most images placed at the same coordinates are of the same size, you could reduce the number of bitmaps by using bitmap strips (e.g. the volume, battery or playback images). Less bitmaps help decreasing load time of the WPS (so boot time decreases too) and you will need a lot less ID characters.