Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  wps parser check fails when trying to upload to themes site
« previous next »
  • Print
Pages: [1]

Author Topic: wps parser check fails when trying to upload to themes site  (Read 3138 times)

Offline polluxx2006

  • Member
  • *
  • Posts: 131
wps parser check fails when trying to upload to themes site
« on: April 05, 2009, 06: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
« Last Edit: April 05, 2009, 06:30:44 PM by polluxx2006 »
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: wps parser check fails when trying to upload to themes site
« Reply #1 on: April 05, 2009, 07:30:24 PM »
Hi,

the correct syntax for the Progressbar is:
%pb|filename.bmp|x|y|width|height|
(see here)

So your line should probably be:
%pb|-|27|65|133|7|
Logged

Offline polluxx2006

  • Member
  • *
  • Posts: 131
Re: wps parser check fails when trying to upload to themes site
« Reply #2 on: April 06, 2009, 04: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?
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: wps parser check fails when trying to upload to themes site
« Reply #3 on: April 06, 2009, 04: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".
Logged

Offline polluxx2006

  • Member
  • *
  • Posts: 131
Re: wps parser check fails when trying to upload to themes site
« Reply #4 on: April 06, 2009, 06:12:16 AM »
Quote from: linuxstb on April 06, 2009, 04: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".

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
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: wps parser check fails when trying to upload to themes site
« Reply #5 on: April 06, 2009, 06:23:51 AM »
Quote from: polluxx2006 on April 06, 2009, 04:05:08 AM
(%X|backfrop.bmp|)
Is it really called backfrop.bmp?
« Last Edit: April 06, 2009, 06:53:45 AM by pixelma »
Logged

Offline polluxx2006

  • Member
  • *
  • Posts: 131
Re: wps parser check fails when trying to upload to themes site
« Reply #6 on: April 06, 2009, 06:33:22 AM »
Quote from: pixelma on April 06, 2009, 06:23:51 AM
Quote
(%X|backfrop.bmp|)
Is it really called backfrop.bmp?

very dunny
Logged

Offline polluxx2006

  • Member
  • *
  • Posts: 131
Re: wps parser check fails when trying to upload to themes site
« Reply #7 on: April 28, 2009, 09: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
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: wps parser check fails when trying to upload to themes site
« Reply #8 on: April 28, 2009, 10:09:00 AM »
Maybe it would help if you could provide a link to the full zip file you're trying to upload
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: wps parser check fails when trying to upload to themes site
« Reply #9 on: April 29, 2009, 03: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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  wps parser check fails when trying to upload to themes site
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.093 seconds with 14 queries.