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
| | |-+  Help getting this little guy to dance! (iPod 4G greyscale)
« previous next »
  • Print
Pages: [1]

Author Topic: Help getting this little guy to dance! (iPod 4G greyscale)  (Read 2874 times)

Offline Devante

  • Member
  • *
  • Posts: 8
Help getting this little guy to dance! (iPod 4G greyscale)
« on: February 03, 2007, 03:05:42 AM »
I modified the boxes theme a little and wanted to add the little guy from the Dancing Puffs Duo theme.

However, I just can't seem to get the little guy to dance.
He just sits there in the last frame of "animation".

Can anyone shed a little advice on what I may be doing wrong?

The filenames for the 4 frames of animation are puff1.bmp to puff4.bmp.
The very last line of the following code/wps should display and animate him.

Here's the theme if anyone wants to see what's actually happening: link

Thanks for any advice!

Quote
%X|background.bmp|
%xl|a|x.bmp|0|0|
%xl|b|x.bmp|0|0|
%xl|c|x.bmp|0|0|
%xl|d|x.bmp|0|0|
%xl|e|x.bmp|0|0|
%xl|f|x.bmp|0|0|
%xl|g|x.bmp|0|0|
%xl|h|x.bmp|0|0|
%xl|i|x.bmp|0|0|
%xl|j|x.bmp|0|0|
%xl|k|x.bmp|0|0|
%xl|l|disk_active.bmp|146|12|
%xl|m|rpt-all.bmp|129|1|
%xl|n|rpt-one.bmp|129|1|
%xl|o|rpt-shf.bmp|129|1|
%xl|p|nav-stop.bmp|68|3|
%xl|q|nav-play.bmp|68|3|
%xl|r|nav-pause.bmp|68|3|
%xl|s|nav-ffwd.bmp|68|3|
%xl|t|nav-rwnd.bmp|68|3|
%xl|u|shf.bmp|129|16|
%xl|v|lock-m.bmp|87|0|
%xl|w|x.bmp|0|0|
%xl|x|lock-r.bmp|87|12|
%xl|y|x.bmp|0|0|
%xl|z|x.bmp|0|0|
%xl|A|x.bmp|0|0|
%xl|B|vol-0.bmp|12|4|
%xl|C|vol-1.bmp|12|4|
%xl|D|vol-2.bmp|12|4|
%xl|E|vol-3.bmp|12|4|
%xl|F|vol-4.bmp|12|4|
%xl|G|vol-5.bmp|12|4|
%xl|H|vol-6.bmp|12|4|
%xl|I|vol-7.bmp|12|4|
%xl|J|vol-8.bmp|12|4|
%xl|K|vol-9.bmp|12|4|
%xl|L|vol-10.bmp|12|4|
%xl|M|x.bmp|0|0|
%xl|N|x.bmp|0|0|
%xl|O|bat-0.bmp|142|1|
%xl|P|bat-1.bmp|142|1|
%xl|Q|bat-2.bmp|142|1|
%xl|R|bat-3.bmp|142|1|
%xl|S|bat-4.bmp|142|1|
%xl|T|pwr.bmp|149|1|
%xl|U|x.bmp|0|0|
%xl|V|x.bmp|0|0|
%xl|W|puff1.bmp|93|1|
%xl|X|puff2.bmp|93|1|
%xl|Y|puff3.bmp|93|1|
%xl|Z|puff4.bmp|93|1|
%wd




%ac%s%?ia<%ia|%?d2<%d2|(unknown artist)>>
%ac%s%?id<%id|%?d1<%d1|(unknown album)>>

%ac%s%?it<%it|%fn>

 %pp of %pe
%ar-%pr / %pt
%pb


%ac%t5%s%?It<%It|%Fn>;%ac%t5%s%?Ia<%Ia|%D2>

%?pv<%xdB|%xdC|%xdD|%xdE|%xdF|%xdG|%xdH|%xdI|%xdJ|%xdK|%xdL>
%?bp<%xdT|%?bl<%xdO|%xdP|%xdQ|%xdR|%xdS>>
%?mm<|%xdm|%xdn|%xdo>
%?mp<%xdp|%xdq|%xdr|%xds|%xdt>
%?ps<%xdu|>
%?mh<%xdv|>
%?mr<%xdx|>
%?lh<%xdl|>
%t0.2%xdW;%t0.2%xdX;%t0.2%xdY;%t0.2%xdZ

Logged

Offline JustJohnny

  • Member
  • *
  • Posts: 51
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #1 on: February 04, 2007, 06:39:03 AM »
Hi,

See this link: http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Alternating_Sublines

I think you need to use the alternating sublines (%s) tag to create an animation effect.
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #2 on: February 04, 2007, 08:55:49 AM »
Quote from: JustJohnny link=topic=8620.msg66965#msg66965
I think you need to use the alternating sublines (%s) tag to create an animation effect.

The "%s" tag is not for alternating sublines - it defines whether a line should scroll or not.

The code already contains the necessary tag ("%t0.2" for example) and marks the end of that subline (";") - I've also experienced that it doesn't always work correctly. One thing that helped was adding a character after every %xd.. tag in the relevant wps-line. I don't know why but maybe it helps clearing the screen so that a new bmp can be drawn or whatever.

What happens when you change the last line to the following for example?
Code: [Select]
%t0.2%xdWz;%t0.2%xdXz;%t0.2%xdYz;%t0.2%xdZz

Logged

Offline Genre9mp3

  • Artist
  • Member
  • *
  • Posts: 146
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #3 on: February 04, 2007, 09:10:36 AM »
Code: [Select]
%t0.2 %xdW;%t0.2 %xdX;%t0.2 %xdY;%t0.2 %xdZ

This should make it work. Just add spaces between "%t0.2" and "%xd..."
« Last Edit: February 04, 2007, 09:13:19 AM by Genre9mp3 »
Logged

Offline Devante

  • Member
  • *
  • Posts: 8
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #4 on: February 04, 2007, 01:31:26 PM »
The spacing trick worked perfect.

Thanks so much. :>
Logged

Offline Devante

  • Member
  • *
  • Posts: 8
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #5 on: February 04, 2007, 01:47:54 PM »
One last question. This isn't directly related to the topic, but it's not important enough to create a new thread:

My battery icon line will show the battery level fine, but will not show the icon for when it is charging.
Am I "coding" it incorrectly?

Here is the line with the battery info:

Code: [Select]
%?bp<%xdT|%?bl<%xdO|%xdP|%xdQ|%xdR|%xdS>>
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #6 on: February 04, 2007, 03:29:14 PM »
You want the charging conditional %bc rather than charger connected %bp:

%?bc< Charging|%?bl<%xdO|%xdP|%xdQ|%xdR|%xdS > >
« Last Edit: February 04, 2007, 03:34:03 PM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #7 on: February 05, 2007, 12:33:49 AM »
Quote from: bascule on February 04, 2007, 03:29:14 PM
You want the charging conditional %bc rather than charger connected %bp:

%?bc< Charging|%?bl<%xdO|%xdP|%xdQ|%xdR|%xdS > >
The way I do it is have seperate lines for each conditional:

%?bc< Charging|>
%?bl<%xdO|%xdP|%xdQ|%xdR|%xdS >

Which way is more efficient? One line or two lines? I'm thinking the one line one... one decsion has to be made, less code for it to run through. I realize it's miniscule but still which one is better? Thanks.
Logged

Offline Devante

  • Member
  • *
  • Posts: 8
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #8 on: February 05, 2007, 01:56:13 AM »
I tried both what bascule said and Job Van Dam's method and both ways simply don't show the charging icon for me.

I'm using the latest daily build of the version that disables frequency scaling.

Does it work with that version?
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #9 on: February 05, 2007, 03:12:41 AM »
I don't think the charging indicator is implemented on the 4G Greyscale yet.

Does the standard Rockbox status bar show it?
Logged

Offline Devante

  • Member
  • *
  • Posts: 8
Re: Help getting this little guy to dance! (iPod 4G greyscale)
« Reply #10 on: February 05, 2007, 12:19:02 PM »
Yes. The default status bar shows a little plug next to the battery as soon as I plug it in.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Help getting this little guy to dance! (iPod 4G greyscale)
 

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

Page created in 0.108 seconds with 14 queries.