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
| | |-+  Weird bug with %Rp and %tp and iPod Video
« previous next »
  • Print
Pages: [1]

Author Topic: Weird bug with %Rp and %tp and iPod Video  (Read 1506 times)

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Weird bug with %Rp and %tp and iPod Video
« on: November 02, 2010, 12:56:59 PM »
Ok guys, it's "weird stuff time"...


I've found an odd bug with the %Rp and %tp tags in current SVN that only seems to appear on the iPod Video for some reason.

The same code that fails on the iPod Video simulator (also tested on device, thanks LambdaCalculus37 ;)) works fine on Nano 1st and 2nd Gen (both sim and device)...

I have no idea how that is even possible, it took me a very long time to realise that it was the build at fault and not the skin code...I spent ages trying to find bugs in my code that weren't actually there.

I just thought it was safer to assume that it was my code at fault.

Anyway, here's the code:

Code: [Select]
#	PLAYMODE ICON[S]
#
%Vl(b,11,4,18,15,-)%Vf(000000)%Vb(FFFFFF)
#%?mp<|%xd(Da)|%xd(Db)|%xd(Dc)|%xd(Dd)|%?Rp<%xd(Da)>|%?Rp<%xd(Db)>|%?tp<%xd(Da)>|%?tp<%xd(Db)>>
#
%?mp<|%xd(Da)|%xd(Db)|%xd(Dc)|%xd(Dd)|%xd(Da)|%xd(Db)|%xd(Da)|%xd(Db)>
#
# STATUS/TITLE BAR ["IPOD" & 12/24 HOUR CLOCK]
#
%V(50,4,220,18,2)%Vf(000000)%Vb(FFFFFF)
#%s%ac%t(10.0)%?bp<%?bc<Charging|Charged>|%?cs<iPod||%?Rp<%Sx(Recording)>|%?tp<%Sx(FM Radio)>|%Sx(Playlist)>>;%t(10.0)%ac%?cf<%cH:%cM|%cl:%cM %cP>
#
%s%ac%t(10.0)%?bp<%?bc<Charging|Charged>|%?cs<iPod||%Sx(Recording)|%Sx(FM Radio)|%Sx(Playlist)>>;%t(10.0)%ac%?cf<%cH:%cM|%cl:%cM %cP>

The two failing lines are commented, and the corrected (working on iPod Video) lines immediately below.

If anyone could help me with this, I would greatly appreciate it...it is most certainly beyond my expertise as it isn't something I can't code my way out of with skin code.
This is something freaky happening in core.

The full theme is available for download here



Thanks in advance,

[St.]
« Last Edit: November 02, 2010, 01:00:57 PM by [St.] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Weird bug with %Rp and %tp and iPod Video
« Reply #1 on: November 02, 2010, 09:19:57 PM »
failing how?
Logged


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

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Weird bug with %Rp and %tp and iPod Video
« Reply #2 on: November 02, 2010, 09:39:54 PM »
Quote from: JdGordon on November 02, 2010, 09:19:57 PM
failing how?

Errrrr....not working?

The .sbs is rejected, and won't load. Try it, grab a current sim and the attached theme.




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

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Weird bug with %Rp and %tp and iPod Video
« Reply #3 on: November 03, 2010, 07:12:26 AM »
fixed.you should have tried uploading to the theme site.... checkwps gave me the perfect output to figure it out :)

Code: [Select]
Starting program: /home/jonno/rockbox-git/video-sim/checkwps.ipodvideo simdisk/.rockbox/wps/iLike.sbs
Checking simdisk/.rockbox/wps/iLike.sbs...
WPS parsing failure
Error on line 2.
%?mp<...Rp<%xd(Da)>|%?Rp<%xd(Db)>|%?tp<%xd(Da)>|%?tp<%xd(Db)>>
                  ^ 'Expected argument seperator' Here


Logged


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

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Weird bug with %Rp and %tp and iPod Video
 

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

Page created in 0.065 seconds with 15 queries.