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
| | |-+  WPS Tag Changes since 3.0?
« previous next »
  • Print
Pages: [1]

Author Topic: WPS Tag Changes since 3.0?  (Read 2530 times)

Offline Angus_NB

  • Member
  • *
  • Posts: 29
WPS Tag Changes since 3.0?
« on: September 02, 2009, 01:17:14 PM »
Have there been changes in WPS Tags or structure since 3.0?
I have been looking for two days and reading everything I can find but I can't find anything.

Hardware: Sansa e260 V1
 
I am legally blind so I use two custom large font WPS Themes that I wrote.  Recently I updated Rockbox from version 3.0 to 3.3.  My custom WPS no longer work.  I just get a blank screen.
They are fairly simple WPS. 
Five viewports: currently playing, track time, next song, clock and battery level.
No progress or volume bars.
Playback, Repeat and Shuffle graphic indicators.

Thanks
Logged
Sansa e260

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: WPS Tag Changes since 3.0?
« Reply #1 on: September 02, 2009, 01:29:11 PM »
It might be related to something like this: http://forums.rockbox.org/index.php?topic=22540.msg154905#msg154905

Quote
(the WPS parser got stricter especially with handling the %xl and %xd tags).

But if you post your code, we could give it a look to try and find out
« Last Edit: September 02, 2009, 01:31:38 PM by audio-i »
Logged

Offline Angus_NB

  • Member
  • *
  • Posts: 29
Re: WPS Tag Changes since 3.0?
« Reply #2 on: September 02, 2009, 02:04:20 PM »
Thanks.
Here is the main WPS I use for music.
I'll take a better look at the %xl tags.

Edit: I found the problem.
The Condition statements that call the preloaded graphics have to come after the graphics loading lines in the WPS file.  This makes sense but the order didn't matter before.

Original
Code: [Select]
#
# Condition statements - Playback, Repeat, Shuffle
%?mp<%xdA|%xdB|%xdC|%xdD|%xdE>
%?mm<%xdi|%xdj|%xdk|%xdl>
%?ps<%xdm|%xdn>
#
# Repeat and Shuffle
%xl|i|rep_off.bmp|31|6|
%xl|j|rep_all.bmp|31|6|
%xl|k|rep_one.bmp|31|6|
%xl|l|rep_shu.bmp|31|6|
%xl|m|shuff_on.bmp|64|6|
%xl|n|shuff_of.bmp|64|6|
#
# Playback mode
%xl|A|stop.bmp|4|6|
%xl|B|play.bmp|4|6|
%xl|C|pause.bmp|4|6|
%xl|D|ff.bmp|4|6|
%xl|E|rw.bmp|4|6|
#

Modified
Code: [Select]
#
# Repeat and Shuffle
%xl|i|rep_off.bmp|31|6|
%xl|j|rep_all.bmp|31|6|
%xl|k|rep_one.bmp|31|6|
%xl|l|rep_shu.bmp|31|6|
%xl|m|shuff_on.bmp|64|6|
%xl|n|shuff_of.bmp|64|6|
#
# Playback mode
%xl|A|stop.bmp|4|6|
%xl|B|play.bmp|4|6|
%xl|C|pause.bmp|4|6|
%xl|D|ff.bmp|4|6|
%xl|E|rw.bmp|4|6|
#
# Condition statements - Playback, Repeat, Shuffle
%?mp<%xdA|%xdB|%xdC|%xdD|%xdE>
%?mm<%xdi|%xdj|%xdk|%xdl>
%?ps<%xdm|%xdn>
#
« Last Edit: September 02, 2009, 03:50:59 PM by Angus_NB »
Logged
Sansa e260

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: WPS Tag Changes since 3.0?
« Reply #3 on: September 02, 2009, 07:08:19 PM »
Quote from: Angus_NB on September 02, 2009, 02:04:20 PM
Edit: I found the problem.
The Condition statements that call the preloaded graphics have to come after the graphics loading lines in the WPS file.  This makes sense but the order didn't matter before.

good  ;)
Logged

Offline BruceHP

  • Member
  • *
  • Posts: 133
Re: WPS Tag Changes since 3.0?
« Reply #4 on: September 02, 2009, 08:35:17 PM »
I am also legally blind, what large Font are you using?

BTW, Here is the WPS that I am using with the WideCabbie theme.

%wd
%al%bt%ar%cl:%cM%cP
%ac%pp of %pe 
%pm
%s%ac%?it<%it|%fn>
%s%ac%?ia<%ia|%?d2<%d2|(Artist Unknown)>>

%al%pc%ar-%pr

%al%fbk%ac%pvdb%ar%fc
%pb|-|-|175|-|35|

It is maybe the opposite of your info, but I find that I can tell if the player is playing and the progress without my 20x magnifier.

You might like it even better by using the "Clear Background" command.
« Last Edit: September 02, 2009, 10:39:36 PM by BruceHP »
Logged

Offline Angus_NB

  • Member
  • *
  • Posts: 29
Re: WPS Tag Changes since 3.0?
« Reply #5 on: September 03, 2009, 04:17:11 PM »
Hi Bruce

I am using a font called Droid-Sans.  I converted it to the .fnt format for use with RockBox.  It is licensed in a way that allows me to share the .fnt file if you want it.

http://www.fontsquirrel.com/fonts/Droid-Sans

Logged
Sansa e260

Offline BruceHP

  • Member
  • *
  • Posts: 133
Re: WPS Tag Changes since 3.0?
« Reply #6 on: September 03, 2009, 07:11:13 PM »
Thanks, but I have never successfully converted a font.
Logged

Offline Angus_NB

  • Member
  • *
  • Posts: 29
Re: WPS Tag Changes since 3.0?
« Reply #7 on: September 04, 2009, 06:32:30 AM »
It's already converted.  I can email it to you if you want.
Logged
Sansa e260

Offline BruceHP

  • Member
  • *
  • Posts: 133
Re: WPS Tag Changes since 3.0?
« Reply #8 on: September 04, 2009, 09:06:05 AM »
How about attaching it to a reply to this message.  Change the extention to .txt and I'll change it back.  Thanks

Click Additional Options at the bottom of the reply to attach file.
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: WPS Tag Changes since 3.0?
« Reply #9 on: September 04, 2009, 09:08:20 AM »
Quote from: BruceHP on September 04, 2009, 09:06:05 AM
Change the extention to .txt and I'll change it back.
You don't think there might be a reason why the list of allowed file extensions exists?
Logged

Offline Angus_NB

  • Member
  • *
  • Posts: 29
Re: WPS Tag Changes since 3.0?
« Reply #10 on: September 04, 2009, 12:22:47 PM »
They are also over the kb limit for attachments.

Bruce, click on my name and send me an email.  I'll reply with the fonts and the WPS I use for Music and Audio Books.

It looks like this:


The Album / Artist, Playing Song and Next Song scroll so they can be read.
Lower left is the clock.  Lower right is a battery gauge that changes colour as power drops.

I should submit the theme I guess.  There are a lot of us not quite blind users that need functionality over aesthetics.

« Last Edit: September 05, 2009, 07:19:39 AM by Angus_NB »
Logged
Sansa e260

Offline jmr

  • Member
  • *
  • Posts: 4
Re: WPS Tag Changes since 3.0?
« Reply #11 on: September 04, 2009, 11:06:59 PM »
Quote from: Angus_NB on September 02, 2009, 02:04:20 PM
The Condition statements that call the preloaded graphics have to come after the graphics loading lines in the WPS file.  This makes sense but the order didn't matter before.
I was having problems with one of my custom WPS themes; never realized this was the issue.  Thanks for pointing that out!
Logged

Offline Angus_NB

  • Member
  • *
  • Posts: 29
Re: WPS Tag Changes since 3.0?
« Reply #12 on: September 08, 2009, 10:54:56 AM »
I have uploaded my HiVis theme, pictured above, to the Sansa E200 themes page.
Logged
Sansa e260

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  WPS Tag Changes since 3.0?
 

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

Page created in 0.093 seconds with 14 queries.