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
| | |-+  Need a second person to look at my .wps
« previous next »
  • Print
Pages: [1]

Author Topic: Need a second person to look at my .wps  (Read 1512 times)

Offline trasman

  • Member
  • *
  • Posts: 8
Need a second person to look at my .wps
« on: November 01, 2010, 12:12:25 PM »
Hi.
I need some help finding the problem whit this .wps

This is the original .wps that was working alright with rockbox 3.6 ipod video 64GB.
Quote
# Credit for the starting layout is to Steven Kang
# http://www.rockbox.org/twiki/bin/view/Main/WpsIriverH100#StevenKang
# Credit for the title/album/artist logic is from Jens Arnold
# http://www.rockbox.org/twiki/bin/view/Main/WpsArchos#JensArnold
# I originaly made this for the iRiver H1x0 and convertied it with
# new stuff added to the iPod Video
# Made by Peter Olson
# Edit by Sajmån Dajmånd
%wd
%al%ca %cd %?cm<Jan|Feb|Mar|Apr|Maj|Jun|Jul|Aug|Sep|Okt|Nov|Dec> %cY %cH:%cM %arVol:%pvdB
%alBat:%bt %ar[%pp/%pe]
%ac%?mp<Stop|Play|Pause|Ffwd|Rew> %ar%?lh<HDD|>

%s%ac%?ia<%ia|.. %?d2<%d2|%?d1<(Root)|>>>
%s%ac%?id<%id|. %?d1<%d1|(Root)>>%?iy< (%iy)|>
%s%ac%?it<%?in<%in. |>%it|%fn>
%al%pc/%pt %ar-%pr
%pb
%ac%?fc<MP1|MP2|MP3|AIFF|WAVE|OGG|FLAC|MPC|AC3|WavPack|alac|aac|SHN|SID|ADX|NSF|speex|SPC|APE|WMA|unknown> %?fv<VBR|CBR> %fbkbps %fkKHz %fsKb
%pm
%ac%?ps<Shuffle|>%?mm<|All |One |Shuffle |A-B >%?mh<Hold|>
%ar%?bs<--Time Left %bs--|> %ac%?bp<%bp %bc|>
%acNEXT SONG
%ac%?Ia<%Ia|.. %?D2<%D2|%?D1<(Root)|>>>
%ac%?Id<%Id|. %?D1<%D1|(Root)>>%?Iy< (%Iy)|>
%ac%?It<%?In<%In. |>%It|%Fn>

And this is the one I modifies to use with 3.7 following the new SkinBreakingChange found Here. (Changes in bold)
Quote
# Credit for the starting layout is to Steven Kang
# http://www.rockbox.org/twiki/bin/view/Main/WpsIriverH100#StevenKang
# Credit for the title/album/artist logic is from Jens Arnold
# http://www.rockbox.org/twiki/bin/view/Main/WpsArchos#JensArnold
# I originaly made this for the iRiver H1x0 and convertied it with
# new stuff added to the iPod Video
# Made by Peter Olson
# Edit by Sajmån Dajmånd
%wd
%al%ca %cd %?cm<Jan|Feb|Mar|Apr|Maj|Jun|Jul|Aug|Sep|Okt|Nov|Dec> %cY %cH:%cM %arVol:%pvdB
%alBat:%bt %ar[%pp/%pe]
%ac%?mp<Stop|Play|Pause|Ffwd|Rew> %ar%?lh<HDD|>

%s%ac%?ia<%ia|.. %?d(2)<%d(2)|%?d(1)<(Root)|>>>
%s%ac%?id<%id|. %?d(1)<%d(1)|(Root)>>%?iy< %(%iy%)|>
%s%ac%?it<%?in<%in. |>%it|%fn>
%al%pc/%pt %ar-%pr
%pb
%ac%?fc<MP1|MP2|MP3|AIFF|WAVE|OGG|FLAC|MPC|AC3|WavPack|alac|aac|SHN|SID|ADX|NSF|speex|SPC|APE|WMA|unknown> %?fv<VBR|CBR> %fbkbps %fkKHz %fsKb
%pm
%ac%?ps<Shuffle|>%?mm<|All |One |Shuffle |A-B >%?mh<Hold|>
%ar%?bs<--Time Left %bs--|> %ac%?bp<%bp %bc|>
%acNEXT SONG
%ac%?Ia<%Ia|.. %?D(2)<%D(2)|%?D(1)<(Root)|>>>
%ac%?Id<%Id|. %?D(1)<%D(1)|(Root)>>%?Iy< %(%Iy%)|>
%ac%?It<%?In<%In. |>%It|%Fn>

Still after this changes the playback screen locks messed up. Can someone find the problem course I can't?
Logged

Offline biengo

  • Member
  • *
  • Posts: 12
Re: Need a second person to look at my .wps
« Reply #1 on: November 01, 2010, 12:45:06 PM »
Well, at least one viewport needs to be added for the progress bar.
Code: [Select]
%V(x,y,width,hight,-)%Vf(22f100)%Vb(000000)
%pb
Also, you need to create another viewport for your text to appear in. See http://www.rockbox.org/wiki/CustomWPS#Viewports
Logged

Offline trasman

  • Member
  • *
  • Posts: 8
Re: Need a second person to look at my .wps
« Reply #2 on: November 01, 2010, 05:19:23 PM »
So I managed to isolate the troublesome code
Quote
%s%ac%?ia<%ia|.. %?d2<%d2|%?d1<(Root)|>>>
%s%ac%?id<%id|. %?d1<%d1|(Root)>>%?iy< (%iy)|>


Any ides on how to make it 3.7 compatible?
Logged

Offline sockbox

  • Member
  • *
  • Posts: 111
Re: Need a second person to look at my .wps
« Reply #3 on: November 01, 2010, 05:22:52 PM »
escape your parentheses...

Code: [Select]
%(ROOT%)
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Need a second person to look at my .wps
« Reply #4 on: November 01, 2010, 05:56:27 PM »
Quote from: trasman on November 01, 2010, 05:19:23 PM
So I managed to isolate the troublesome code
Quote
%s%ac%?ia<%ia|.. %?d2<%d2|%?d1<(Root)|>>>
%s%ac%?id<%id|. %?d1<%d1|(Root)>>%?iy< (%iy)|>

The same as you did with the year info. ;) If you want to display parentheses in the WPS they need to be escaped. Don't forget to use the directory level tags with them though as you alredy seem to do, following your first post.

Quote from: trasman on November 01, 2010, 12:12:25 PM
Quote
%ac%?Ia<%Ia|.. %?D(2)<%D(2)|%?D(1)<%(Root%)|>>>
%ac%?Id<%Id|. %?D(1)<%D(1)|%(Root%)>>%?Iy< %(%Iy%)|>


My main wish to post here was to add something about biengo's suggestion.

As far as I know putting the progressbar into an own viewport is not necessary as long as everything is in the default viewport (or in other words: no viewport definitions are used at all). I admit not being a 100% sure about that, will try to get back later with confirmed info. EDIT: I talked to the main developer behind the latest theme changes and he confirmed.

But one thing I am sure about: you suggest values for %Vf and %Vb - I'd like to point out that this is (a) not always needed, you can leave it out if you just want to use the global set foreground or background colours. And (b) the values you suggest would be wrong on targets with greyscale displays (which use numbers for the 4 grey shades, not RGB) and would be completely ignored on targets with monochrome displays. Please be careful with information.
« Last Edit: November 01, 2010, 06:05:15 PM by pixelma »
Logged

Offline trasman

  • Member
  • *
  • Posts: 8
Re: Need a second person to look at my .wps
« Reply #5 on: November 01, 2010, 06:46:01 PM »
Finally , after some troubleshooting and with a BIG help from you folks, I manage to get it working. (:

Thank you so much!
Logged

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Re: Need a second person to look at my .wps
« Reply #6 on: November 03, 2010, 03:15:51 AM »
could i try your WPS on my ipod video? could you post the corrected code please? and the font needed? thanks :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Need a second person to look at my .wps
 

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

Page created in 0.093 seconds with 14 queries.