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
| | |-+  Broken WPS with recent SVN changes -- SOLVED
« previous next »
  • Print
Pages: [1]

Author Topic: Broken WPS with recent SVN changes -- SOLVED  (Read 1840 times)

Offline epithetless

  • Member
  • *
  • Posts: 195
    • Dour Times
Broken WPS with recent SVN changes -- SOLVED
« on: August 19, 2009, 11:09:06 PM »
It seems recent changes to the SVN WPS code have broken my H3XX/iPod Photo/Sansa Fuze "XL Fuzed" theme -- and the "XL" theme from which it was derived. I thought the warning in Jonathan Gordon's "check your %xl lines!" email might have had something to do with it, but I gave the WPS a thorough look and I'm still not able to identify the problem. I'd really appreciate another set of eyes on this. The WPS is as follows:

Code: [Select]
#__________________________________________
#                     
#              - XL Fuzed -
#
#                [v1.1.1]
#
#               based on XL
#        by James Denman AKA Denny
#     (JamesDenman[at]googlemail.com)
#
#  Modified by David Thacker AKA epithetless
#        (epithetless[at]yahoo.com)
#
#       [Last Modified on 8/19/2009]
#__________________________________________
#
# This wps is released under the following license:
# Creative Commons Attribution-Share Alike 3.0 Unported License
# http://creativecommons.org/licenses/by-sa/3.0/
#__________________________________________
#
%wd
#__________________________________________
#background, progress bar & images:
#
%X|bg.bmp|0|0|
%pb|pb.bmp|37|117|173|14|
#
%xl|a|play.bmp|8|108|
%xl|b|pause.bmp|5|110|
%xl|c|lightning_left.bmp|8|0|
%xl|d|lightning_newleft.bmp|8|0|
%xl|e|sfl.bmp|89|133|
%xl|f|rpt.bmp|122|132|
%xl|g|AAT.bmp|0|23|
%xl|h|norepeat.bmp|122|132|
#
#_______________________________________
#Play/Pause:
#
#
%?mp<%xdb|%xda|%xdb|%xda|%xda>
#
#_______________________________________
#Shuffle & Repeat:
#
#
%?ps<%xde%?mm<|%xdf%Vdf|%xdf%Vdf|%xdf%Vdf|%xdf%Vdf>|%?mm<%Vdg|%xdf%Vdf|%xdf%Vdf|%xdf%Vdf|%xdf%Vdf>>
#
#_______________________________________
#Power Icons & Text Display:
#
#
%?bp<%?bc<%xdd%Vdc|%xdd%Vdb>|%xdd%Vda>
#
#_______________________________________
#Album art and song info:
#
%?C<%C%xdh%Vdd|%Vde%xdg>
#
#
%Cl|9|30|50|50|
%xl|h|aabg.bmp|5|26|
#_______________________________________
#Viewports:
#
#
#power:
#
%Vl|a|33|4|100|16|1|CCCCCC|-|
%bl%%
#
%Vl|b|33|4|100|16|1|CCCCCC|-|
AC
#
%Vl|c|33|4|100|16|1|CCCCCC|-|
Charging [%bl%%]
#
#
#Titles with album art:
#
#Artist:
%Vl|d|67|28|141|-|1|E7E7E7|-|
%s%?ia<%ia|%?iA<%iA|%?d2<%d2 [NO TAG]|[NO TAG]>>>
#
#Album:
%Vl|d|67|48|141|-|1|E7E7E7|-|
%s%?id<%id|%?d1<%d1 [NO TAG]|[NO TAG]>>%?iy< (%iy)|>
#
#Track:
%Vl|d|67|68|141|-|1|ffffff|-|
%s%?it<%it [%pt]|%fn [%pt] [NO TAG]>
#
#
#Titles without album art:
#
#Artist:
%Vl|e|30|28|178|-|1|E7E7E7|-|
%s%?ia<%ia|%?iA<%iA|%?d2<%d2 [NO TAG]|[NO TAG]>>>
#
#Album:
%Vl|e|30|48|178|-|1|E7E7E7|-|
%s%?id<%id|%?d1<%d1 [NO TAG]|[NO TAG]>>%?iy< (%iy)|>
#
#Track:
%Vl|e|30|68|178|-|1|ffffff|-|
%s%?it<%it [%pt]|%fn [%pt] [NO TAG]>
#
#Next:
%V|30|92|178|-|1|B0B0B0|-|
%s%?It<%?Ia<%Ia: %It|%It>|%?Fn<%?D1<%D1: %Fn|%Fn>|>>
#
#Shuffle type:
%Vl|f|142|138|20|16|0|BFBFBF|-|
%?mm<|all||sfl|ab>
#
#Time:
%V|39|134|44|16|1|CCCCCC|-|
%pc
%V|167|134|44|16|1|CCCCCC|-|
%ar-%pr
#
#Volume:
%V|171|4|-|16|1|CCCCCC|-|
%pv dB
#
#
#Playlist position:
%V|106|159|100|-|1|CCCCCC|-|
%pp of %pe
#
#
#Codec & Bitrate
%Vl|g|88|138|80|16|0|BFBFBF|-|
%fc %fbkbps


Both themes work fine with r22284 (the SVN revision I was using previously), and their WPS' ceased to display somewhere between that revision and r22430.

Any thoughts on how to fix this?
« Last Edit: August 20, 2009, 01:29:08 PM by epithetless »
Logged
Rockboxed: Apple iPod 3G â€¢ Apple iPod nano 2G • iriver H120 • Sansa c250 v1 • Sansa Clip v1 • Sansa Clip v2 • Sansa Clip+ • Sansa e280 v1 • Sansa e280v2 • Sansa Fuze v1  |  non-Rockboxed: HTC Incredible [Android 2.2] • Sansa Fuze v2

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Broken WPS with recent SVN changes -- Help requested
« Reply #1 on: August 20, 2009, 01:17:53 AM »
Quote from: epithetless on August 19, 2009, 11:09:06 PM
Code: [Select]
%xl|h|norepeat.bmp|122|132|
..
%?C<%C%xdh%Vdd|%Vde%xdg>
#
#
%Cl|9|30|50|50|
%xl|h|aabg.bmp|5|26|

I can see a potential problem - there are two images preloaded which use the "h" as identifier, and also only one of them is displayed (the WPS parser got stricter especially with handling the %xl and %xd tags). It should be enough to delete the last one, or - if it should be displayed somewhere - to give it another identifier but I haven't seen a second corresponding %xdh.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Broken WPS with recent SVN changes -- Help requested
« Reply #2 on: August 20, 2009, 11:52:11 AM »
nice work pixelma :) that is almost certainly the case (just checked the code and there is indeed a check to make sure image id's arnt duplicated)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline epithetless

  • Member
  • *
  • Posts: 195
    • Dour Times
Re: Broken WPS with recent SVN changes -- Help requested
« Reply #3 on: August 20, 2009, 01:28:46 PM »
Genius. Thank you, pixelma! I totally missed the shared "h" identifiers. The first "h"-identified image wasn't actually doing anything...so I erased its line of code, moved the other %xl|h| line into its place, and voila! No more blank WPS!
« Last Edit: August 20, 2009, 01:31:06 PM by epithetless »
Logged
Rockboxed: Apple iPod 3G â€¢ Apple iPod nano 2G • iriver H120 • Sansa c250 v1 • Sansa Clip v1 • Sansa Clip v2 • Sansa Clip+ • Sansa e280 v1 • Sansa e280v2 • Sansa Fuze v1  |  non-Rockboxed: HTC Incredible [Android 2.2] • Sansa Fuze v2

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Broken WPS with recent SVN changes -- SOLVED
 

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

Page created in 0.061 seconds with 15 queries.