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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Failed parsing on line 12
« previous next »
  • Print
Pages: [1]

Author Topic: Failed parsing on line 12  (Read 2225 times)

Offline afruff23

  • Member
  • *
  • Posts: 171
Failed parsing on line 12
« on: July 31, 2008, 01:38:37 PM »
Code: [Select]
%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|>

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

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Failed parsing on line 12
« Reply #1 on: July 31, 2008, 01:46:24 PM »
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.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline afruff23

  • Member
  • *
  • Posts: 171
Re: Failed parsing on line 12
« Reply #2 on: July 31, 2008, 02:06:52 PM »
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: [Select]
%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>

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: [Select]
%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|>


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"

EDIT:

Debugwps output:
Code: [Select]
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"


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.
« Last Edit: July 31, 2008, 05:41:28 PM by afruff23 »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Failed parsing on line 12
 

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

Page created in 0.064 seconds with 15 queries.