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
| | |-+  new theme for nano, help needed
« previous next »
  • Print
Pages: [1]

Author Topic: new theme for nano, help needed  (Read 2396 times)

Offline hatchinatore

  • Member
  • *
  • Posts: 30
new theme for nano, help needed
« on: November 26, 2007, 02:43:23 PM »
i made a theme a long time ago and recently decided to move back to rockbox, i got a new build, and my theme no longer worked. i think it is because of thenew clock format as ive heard but can someoe help me fix this?
heres my wps file

%X|bg.bmp|
%P|progress.bmp|
%xl|a|b0.bmp|8|3|
%xl|b|b1.bmp|8|3|
%xl|c|b2.bmp|8|3|
%xl|d|b3.bmp|8|3|
%xl|e|b4.bmp|8|3|
%xl|f|vol1.bmp|11|23|
%xl|g|vol2.bmp|11|23|
%xl|h|vol3.bmp|11|23|
%xl|i|vol4.bmp|11|23|
%xl|j|vol5.bmp|11|23|
%xl|k|pp1.bmp|0|62|
%xl|l|pp2.bmp|0|62|
%xl|m|pp3.bmp|0|62|
%xl|n|pp4.bmp|0|62|
%xl|o|pp.bmp|0|62|
%xl|p|ff.bmp|0|62|
%xl|q|rw.bmp|0|62|
%bl<%xde|%xdd|%xdc|%xdb|%xda> %s%m|48|175|%it
%pv<%xdj|%xdi|%xdh|%xdg|%xdf> %s%m|48|175|%ia
%al%cl:%cM%ar%?iy <%iy %?ig<   %ig|>|%?ig<%ig|no info>>
%?mp
%pb|70|48|176|
%s%m|48|175|%pc %ar%pr
%s%m|48|175|Next Tune:
%ar%It
%wd

those are all the right images loaded btw
and here is what the final product is supposed to look like:

the bricks on top are battery
the head with waves is sound
the lego man on the left dances while playing, then shows a pause sign and ff/rw signs.
i would like to have this working again, any help appreciated.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: new theme for nano, help needed
« Reply #1 on: November 26, 2007, 03:43:55 PM »
You need to fix the margin tag for one (should be %m|leftposition|).
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline hatchinatore

  • Member
  • *
  • Posts: 30
Re: new theme for nano, help needed
« Reply #2 on: November 26, 2007, 05:35:07 PM »
dont i already have the %m for margins?
where exactly are you talking about?
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: new theme for nano, help needed
« Reply #3 on: November 26, 2007, 05:40:42 PM »
You have %m|leftmargin|rightmargin|.  It needs to be %m|leftmargin| instead.  There's no right margin defined in the current margin code.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline hatchinatore

  • Member
  • *
  • Posts: 30
Re: new theme for nano, help needed
« Reply #4 on: November 26, 2007, 06:00:10 PM »
oh i see. is that the only problem?
ill try and see if it works
thank you so much.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: new theme for nano, help needed
« Reply #5 on: November 26, 2007, 06:02:39 PM »
Well, that was the only one that jumped out at me immediately.  Post back if it still doesn't work.

And, you're welcome.   :)
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline hatchinatore

  • Member
  • *
  • Posts: 30
Re: new theme for nano, help needed
« Reply #6 on: November 26, 2007, 07:07:48 PM »
yep doesnt work. here is the changed code if it helps. im puzzled. its alot easier when you first make it then when its been a long time and you try to fix it and smalll bits and tags are wrong lol.
ok

%X|bg.bmp|
%P|progress.bmp|
%xl|a|b0.bmp|8|3|
%xl|b|b1.bmp|8|3|
%xl|c|b2.bmp|8|3|
%xl|d|b3.bmp|8|3|
%xl|e|b4.bmp|8|3|
%xl|f|vol1.bmp|11|23|
%xl|g|vol2.bmp|11|23|
%xl|h|vol3.bmp|11|23|
%xl|i|vol4.bmp|11|23|
%xl|j|vol5.bmp|11|23|
%xl|k|pp1.bmp|0|62|
%xl|l|pp2.bmp|0|62|
%xl|m|pp3.bmp|0|62|
%xl|n|pp4.bmp|0|62|
%xl|o|pp.bmp|0|62|
%xl|p|ff.bmp|0|62|
%xl|q|rw.bmp|0|62|
%bl<%xde|%xdd|%xdc|%xdb|%xda> %s%m|48|%it
%pv<%xdj|%xdi|%xdh|%xdg|%xdf> %s%m|48|%ia
%al%cl:%cM%ar%?iy <%iy %?ig<   %ig|>|%?ig<%ig|no info>>
%?mp
%pb|70|48|176|
%s%m|48|%pc %ar%pr
%s%m|48|Next Tune:
%ar%It
%wd
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: new theme for nano, help needed
« Reply #7 on: November 26, 2007, 07:45:59 PM »
I think the dangling conditional will also give problems.

You have

Code: [Select]
%?mp

I think the parser will choke on that.

Replacing %?mp with
Code: [Select]
%?mp
should fix that, but it won't use any images you might have.  It looks like you at least have fast-forward and rewind images that you want to use.  If you only want to display those and do nothing otherwise then I think this will work:
Code: [Select]
%?mp<|||%xdp|%xdq>

Give that a shot and see if it works.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline hatchinatore

  • Member
  • *
  • Posts: 30
Re: new theme for nano, help needed
« Reply #8 on: November 26, 2007, 07:51:34 PM »
oh woops!
i must have deleted that line. its supposed to read:
%?mp
it makes the little lego man on the side dance, then when paused, show that image, ff and rw the same...

Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: new theme for nano, help needed
« Reply #9 on: November 26, 2007, 07:57:08 PM »
Well, I don't think %?mp will do any of that for you all by itself.  Read about conditionals on the CustomWPS wiki page.  
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: new theme for nano, help needed
« Reply #10 on: November 26, 2007, 08:29:23 PM »
I spot a few errors and some things I'm unsure about if they really are supposed to work:

Quote from: hatchinatore on November 26, 2007, 07:07:48 PM
%bl<%xde|%xdd|%xdc|%xdb|%xda> %s%m|48|%it
%pv<%xdj|%xdi|%xdh|%xdg|%xdf> %s%m|48|%ia
You would need to use %?bl respective %?pv here if you want to use it as conditional to show different bitmaps based on battery or volume levels (and do as Chronon said ;)).

Quote
%al%cl:%cM%ar%?iy <%iy %?ig<   %ig|>|%?ig<%ig|no info>>
I'm not sure if you inserted the space in the marked part just for the forum  - if not, try taking it out at that spot; as far as I know it's not allowed to have a space between the conditional wps tag (%?iy here) and the '<'.

Quote from: hatchinatore on November 26, 2007, 02:43:23 PM
%?mp<[size=0pt] [/size]Stop|%t0.2%xdk;%t0.2%xdl;%t0.2%xdm;%t0.2%xdn|%xdo|%xdp|%xdq>
This is probably the line to animate the lego man? I'm not sure if you can define alternating sublines like this inside a conditional... I'd probably take that line out (or comment it out) and fix everything else until the rest is showing up correctly, then readd the line and see if it works.
« Last Edit: November 26, 2007, 08:34:13 PM by pixelma »
Logged

Offline hatchinatore

  • Member
  • *
  • Posts: 30
Re: new theme for nano, help needed
« Reply #11 on: November 26, 2007, 10:11:56 PM »
nope still...
hmmm would anyone try and test it if i supplied all the files?
i cant seem to work this out myself.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  new theme for nano, help needed
 

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

Page created in 0.077 seconds with 15 queries.