Support and General Use > Theming and Appearance Customization

Failed parsing on line 12

(1/1)

afruff23:

--- Code: ---%X|bg.bmp|
%xl|H|h.bmp|120|3|
%pb|pb.bmp|11|291|220|11|
%xl|I|vol.bmp|70|49|10|
%xl|J|rpt.bmp|30|2|4|
%xl|K|pm.bmp|4|6|5|
%xl|L|batt.bmp|188|8|10|
%xl|N|next.bmp|2|67|
%xl|O|next.bmp|2|162|
%xl|R|sh.bmp|68|7|
%xl|W|th.bmp|119|0|
%?mh<%xdH|>
--- End code ---

So, I get an error in the gigabeat F UIsimulator for this but I can't figure it out. Can anyone help me?

karashata:
Do you have a bitmap named h.bmp in the folder named for the WPS you're trying to use?  The parser would fail if it couldn't load the bitmap it's trying to display.

afruff23:
For some reason, it stopped giving me an error on that line. Now it gives me an error on another line. It now says failed parsing on line 14.


--- Code: ---%X|bg.bmp|
%xl|H|h.bmp|120|3|
%pb|pb.bmp|11|291|220|11|
%xl|I|vol.bmp|70|49|10|
%xl|J|rpt.bmp|30|2|4|
%xl|K|pm.bmp|4|6|5|
%xl|L|batt.bmp|188|8|10|
%xl|N|next.bmp|2|67|
%xl|O|next.bmp|2|162|
%xl|R|sh.bmp|68|7|
%xl|W|th.bmp|119|0|
%?mh<%xdH|>
%?mp<%xdKa|%xKb|%xdKc|%xdKd|%xdKe>
%?mm<|%xdJa|%xdJb|%xdJc|%xdJd>
--- End code ---

BTW, I'm using Rockbox version r18163-080731.

EDIT: Yes, I have another folder with the same name as the wps file in the right place and it has the correctly named .bmp files.

EDIT: The troublesome code (i.e.the repeat mode line) is identical (except for the image letters) to the Cabbie V2.0 theme code for the Gigabeat F. It makes no sense why that one works while this one does not.

EDIT: I replaced the repeat mode bitmap strip in cabbie V2 with my own images and it works fine in cabbie v2.0. This makes no sense.

EDIT: Here is the whole code for the wps.


--- Code: ---%wd
%X|bg.bmp|
%xl|H|h.bmp|120|3|
%pb|pb.bmp|11|291|220|11|
%xl|I|vol.bmp|70|49|10|
%xl|J|rpt.bmp|30|2|4|
%xl|K|pm.bmp|4|6|5|
%xl|L|batt.bmp|188|8|10|
%xl|N|next.bmp|2|67|
%xl|O|next.bmp|2|162|
%xl|R|sh.bmp|68|7|
%xl|W|th.bmp|155|4|
%?mh<%xdH|>
%?mp<%xdKa|%xKb|%xdKc|%xdKd|%xdKe>
%?pv<%xdIa|%xdIb|%xdIc|%xdId|%xdIe|%xdIf|%xdIg|%xdIh|%xdIi|%xdIj>
%t7;%t5%?C<%?Fm<%xdN|>|>
%?Fm<%?C<|%xdO>|>
%t1%?bp<%?bc<%xdLa|%xdLb>|%?bl<|%xdLc|%xdLd|%xdLe|%xdLf|%xdLg|%xdLh|%xdLi|%xdLj>>;%t3%?bl<|%xdLc|%xdLd|%xdLe|%xdLf|%xdLg|%xdLh|%xdLi|%xdLj>
%?mm<|%xdJa|%xdJb|%xdJc|%xdJd>
%?ps<%xdR|>
%?lh<%xdW|>
--- End code ---


The exact error code is:

--- Quote ---D:\Downloads\toshiba-gigabeatF-sim-w32>rockboxui.exe --background
Using background image.
Failed parsing on line 15 : Invalid parameter list for token 13: "display image"
--- End quote ---

EDIT:

Debugwps output:

--- Code: ---D:\Downloads\toshiba-gigabeatF-sim-w32>rockboxui.exe --debugwps --background
WPS debug mode enabled.
Using background image.
[  0] = (54) backdrop image
[  1] = (76) progressbar
[  2] = (37) conditional, 2 options
[  3] = (75) mode hold
        [  4] = (38) conditional start, next cond: 6
        [  5] = (57) display preloaded image 33
        [  6] = (39) conditional option, next cond: 7
[  7] = (40) conditional end
[  8] = (37) conditional, 0 options
[  9] = (74) mode playback
        [ 10] = (38) conditional start, next cond: 12
        [ 11] = (57) display preloaded image 36
        [ 12] = (39) conditional option, next cond: 0

Number of string tokens: 0

Strings:

Number of unique strings: 0 (max: 128)
Total string length: 0
String buffer used: 0 out of 1024 bytes

Number of viewports : 1
vp 0: First line: 0
vp 0: Last line: 1
Number of sublines  : 2
Number of tokens    : 13

Viewport 0 - +0+0 (240x320)
Line  0 (num_sublines=1, first_subline=0)
    Subline 0: first_token=  0, last_token=  1, progressbar
Line  1 (num_sublines=1, first_subline=1)
    Subline 0: first_token=  2, last_token= 12

Failed parsing on line 15 : Invalid parameter list for token 13: "display image"

[  0] = (54) backdrop image
[  1] = (76) progressbar
[  2] = (37) conditional, 2 options
[  3] = (75) mode hold
        [  4] = (38) conditional start, next cond: 6
        [  5] = (57) display preloaded image 33
        [  6] = (39) conditional option, next cond: 7
[  7] = (40) conditional end
[  8] = (37) conditional, 0 options
[  9] = (74) mode playback
        [ 10] = (38) conditional start, next cond: 12
        [ 11] = (57) display preloaded image 36
        [ 12] = (39) conditional option, next cond: 0

Number of string tokens: 0

Strings:

Number of unique strings: 0 (max: 128)
Total string length: 0
String buffer used: 0 out of 1024 bytes

Number of viewports : 1
vp 0: First line: 0
vp 0: Last line: 1
Number of sublines  : 2
Number of tokens    : 13

Viewport 0 - +0+0 (240x320)
Line  0 (num_sublines=1, first_subline=0)
    Subline 0: first_token=  0, last_token=  1, progressbar
Line  1 (num_sublines=1, first_subline=1)
    Subline 0: first_token=  2, last_token= 12

Failed parsing on line 15 : Invalid parameter list for token 13: "display image"


--- End code ---

EDIT:
Here's a zip of this theme. Please help me find the bug if you can.
http://www.fileden.com/files/2008/7/31/2028676/HiPodNextV5.zip

EDIT:

Problem fixed.

Navigation

[0] Message Index

Go to full version