Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: jouhou on June 27, 2010, 08:12:37 PM

Title: Uploading a theme fails for Clip+ - unable to recognize Font (resolved)
Post by: jouhou on June 27, 2010, 08:12:37 PM
------------------
Resolution:
------------------
With a recent commit to svn (#27613) (http://svn.rockbox.org/viewvc.cgi?view=rev;revision=27613), there is a new skin parser that increased the allocated RAM for skins on the Clip+.

The new skin parser is on physical devices as well as the "checkwps" validator program that we were having issues with on the Theme website.  The daily Windows builds of the simulator (http://rasher.dk/rockbox/simulator/) have also been updated so you can try testing your theme again.

My theme now does not exceed the skin RAM limit for the Clip+; the simulator doesn't crash when going into FM Radio screen anymore; the checkwps validator allowed me to upload to the Theme site.
new: (http://img529.imageshack.us/img529/7044/dump100730094437.png) old: (http://a.imageshack.us/img443/527/dump100725160950.png)


----------------------------
Original posting below:
----------------------------
Here is(are) the error(s) given at the upload page:
Code: [Select]
Your wps didn't pass checkwps. Here's the output:

Checking .rockbox/wps/YellowBarDynamic-Unicode.wps...
=====================
Loading '.rockbox/wps/YellowBarDynamic-Unicode.wps'
=====================
Unable to load font 4: '14-Rockbox-Mix.fnt'
WPS parsing failure

Checking .rockbox/wps/YellowBarDynamic-Unicode.wps...
=====================
Loading '.rockbox/wps/YellowBarDynamic-Unicode.wps'
=====================
Unable to load font 4: '14-Rockbox-Mix.fnt'
WPS parsing failure

Checking .rockbox/wps/YellowBarDynamic-Unicode.wps...
=====================
Loading '.rockbox/wps/YellowBarDynamic-Unicode.wps'
=====================
Unable to load font 4: '14-Rockbox-Mix.fnt'
WPS parsing failure


14-Rockbox-Mix.fnt is in the official font download pack, so there should be no problem.


Here is the theme:
Code: [Select]
%wd
%Fl(2,08-Rockfont.fnt)
# Progress bar, song elapsed & remaining time
%V(0,0,-,8,2)
%al%pc%ac%pb(32,0,66,6,pb.bmp)%ar%pr
%x(a,pbbackground.bmp,32,0)

# time of day, song length, countdown to sleep mode, playmode, shuffle & repeat modes, current playlist size, current song index into playlist, playlist's name if it exists
%V(0,8,-,-,2)
%t(6)%al%pt%ac%?mp<Stop|Play|Pause|FF|RR|Rec|Rec Pause|FM|FM Pause> %?ps<%(S%?mm<%)|.R%)|.R1%)|.R-S%)|.R-AB%)>|%?mm<|%(R%)|%(R1%)|%(R-S%)|%(R-AB%)>>%ar%?bs< zZz %bs|%?cf<%ck:%cM|%cl:%cM%cp>>;%t(3)%al%pt%ac%?mp<Stop|%pp/%pe|Pause|FF|RR|Rec|Rec Pause|FM|FM Pause>%ar%?bs<zZz %bs|%?cf<%ck:%cM|%cl:%cM%cp>>;%t(4)%?pn<%ac%s%pn %pp/%pe |%al%pt%ac%?mp<Stop|%pp/%pe|Pause|FF|RR|Rec|Rec Pause|FM|FM Pause>%ar%?bs<zZz %bs|%?cf<%ck:%cM|%cl:%cM%cp>>>

# title/filename
%Fl(3,16-GNU-Unifont.fnt)
%V(0,16,-,-,3)
%s%ac%?it<%it|%fn>

# artist/album artist/folder-name [album]
%Fl(4,14-Rockbox-Mix.fnt)
%V(0,32,-,-,4)
%s%ac%?ia<%ia|%?iA<%iA|%d(1)>>  %?id< [ %id ]|>

# Codec, year, user-given rating, times played
%V(0,47,-,-,2)
%t(3)%al%fc%?fv<.VBR|.CBR>%ac%?iy<%( %iy %)|>%ar%?rr<Plays: %rp|Rated: 1|Rated: 2|Rated: 3|Rated: 4|Rated: 5|Rated: 6|Rated: 7|Rated: 8|Rated: 9|Rated: 10>;%t(3)%al%fc%?fv<.VBR|.CBR>%ac%?iy<%( %iy %)|>%arPlays: %rp

# bitrate, samplerate, volume level, key-press hold indicator, database automated rating, battery info
%V(0,56,-,-,2)
%t(3)%al%fb.kbps%ac%?mh<%( HOLD %)|%pvdB>%arARate: %ra;%t(3)%al%fkkHz%ac%?mh<%( HOLD %)|%pvdB>%arARate: %ra;%t(3)%al%fb.kbps%ac%?bp<+|B.>%bl%?bp<B|%%>%arARate: %ra;%t(3)%al%fkkHz%ac%?bp<+|B.>%bl%?bp<B|%%>%arARate: %ra
Title: Re: Uploading a theme fails - unable to recognize 14-Rockbox-Mix.fnt
Post by: jouhou on July 15, 2010, 05:44:52 PM
It's been a few weeks since I originally posted this.  The problem still exists.

Anyone else getting rejected by the validator when uploading themes that use 14-RockBox-Mix.fnt?
Anyone have workarounds?

The theme works 100% on my device, but the theme website is rejecting it for a false reason.
Title: Re: Uploading a theme fails - unable to recognize 14-Rockbox-Mix.fnt
Post by: sockbox on July 15, 2010, 06:11:08 PM
what type of player? is it a sansa clip by any chance?

Assuming it's a Sansa Clip, I couldnt get your theme to work
because it uses too much skin RAM.  The Clip is limited to
only 13K of skin RAM. If you go over that amount, the sim
will start erroring w/ "Unable to load font...".  I was
running into this same problem. You have to cut back on
fonts and images so you dont go over 13K. Look at using
cheaper fonts that use less memory or using less fonts.

Title: Re: Uploading a theme fails - unable to recognize 14-Rockbox-Mix.fnt
Post by: jouhou on July 25, 2010, 04:15:00 PM
what type of player? is it a sansa clip by any chance?

Assuming it's a Sansa Clip, I couldnt get your theme to work
because it uses too much skin RAM.  The Clip is limited to
only 13K of skin RAM. If you go over that amount, the sim
will start erroring w/ "Unable to load font...".  I was
running into this same problem. You have to cut back on
fonts and images so you dont go over 13K. Look at using
cheaper fonts that use less memory or using less fonts
The simulator says this theme is using 12.2KB out of the max 13KB. It's under the limit.

(http://a.imageshack.us/img443/527/dump100725160950.png)

Additionally, the theme loads and works fine in the simulator; it loads and works fine on my physical Clip+.
Title: Re: Uploading a theme fails - unable to recognize 14-Rockbox-Mix.fnt
Post by: sockbox on July 26, 2010, 01:32:51 AM
im running into the same problem w/ my theme. im just waiting for someone to fix the site.

http://forums.rockbox.org/index.php?topic=25266.0
Title: Re: Uploading a theme fails - unable to recognize 14-Rockbox-Mix.fnt
Post by: Chronon on July 26, 2010, 04:54:41 PM
You are probably better off filing a bug report against the theme site on Flyspray.
Title: Re: Uploading a theme fails - unable to recognize 14-Rockbox-Mix.fnt
Post by: sockbox on July 26, 2010, 06:40:30 PM
Thanks. Bug filed.
http://www.rockbox.org/tracker/task/11500

-- update --

i think i figured out why the validator is rejecting our
themes. it's because it really doesn't fit; it doesn't leave
enough room for the radio screen. Though the themes will
work when playing your music, it will crash the sim if you
try using the FM tuner.  You'll just end up with a blank
screen on the player.
Title: Re: Uploading a theme fails - unable to recognize 14-Rockbox-Mix.fnt
Post by: jouhou on July 30, 2010, 10:04:06 AM
Good news everyone!
With a recent commit to svn (#27613) (http://svn.rockbox.org/viewvc.cgi?view=rev;revision=27613), there is a new skin parser that increased the allocated RAM for skins on the Clip+.

The new skin parser is on physical devices as well as the "checkwps" validator program that we were having issues with on the Theme website.  The daily Windows builds of the simulator (http://rasher.dk/rockbox/simulator/) have also been updated so you can try testing your theme again.

My theme now does not exceed the skin RAM limit for the Clip+; the simulator doesn't crash when going into FM Radio screen anymore; the checkwps validator allowed me to upload to the Theme site.
new: (http://img529.imageshack.us/img529/7044/dump100730094437.png) old: (http://a.imageshack.us/img443/527/dump100725160950.png)

Even though the skin RAM limit was increased, the amount of RAM required for my skin increased substantially. from 12KB->26KB  but the limits went from 13KB->53KB


sockbox, you should try your skin with the new rockbox builds to see if it fits into the RAM now.
Title: Re: Uploading a theme fails for Clip+ - unable to recognize Font (resolved)
Post by: sockbox on July 30, 2010, 01:43:29 PM
thanks. time to load up the fonts!

but keep in mind that those who are running an older build
on their player will not be able to use your theme. thats probably
the majority of the users out there. you might want to
put that  the latest build is required in your theme description.

I just tried loading extra fonts onto my theme and the reaction
is too unpredictable to be usable on this latest build.