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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Theme displaying default progressbar when image is available?
« previous next »
  • Print
Pages: [1]

Author Topic: Theme displaying default progressbar when image is available?  (Read 2798 times)

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Theme displaying default progressbar when image is available?
« on: December 26, 2007, 07:29:47 PM »
OK, so I'm currently adapting the AAPod theme for the nano to work with an SVN build. The theme came with an image progressbar named "progress.bmp" and a bunch of code that an SVN build of rockbox would not parse properly. I cleaned up the code to the best of my knowledge, but it still won't work properly! Attached is my code and a screendump.

Quote
#AAPod v4
#Created by Billy Blair, 2006
%wd
%X|bg.bmp|
%P|progress.bmp|
%xl|a|batt01.bmp|105|11|
%xl|b|batt02.bmp|105|11|
%xl|c|batt03.bmp|105|11|
%xl|d|batt04.bmp|105|11|
%xl|e|batt05.bmp|105|11|
%xl|f|vbr.bmp|145|88|
%xl|g|cbr.bmp|145|88|
%xl|j|vol_line.bmp|109|26|
%xl|p|vol01.bmp|105|24|
%xl|q|vol02.bmp|105|24|
%xl|r|vol03.bmp|105|24|
%xl|s|vol04.bmp|105|24|
%xl|t|vol05.bmp|105|24|
%xl|u|vol06.bmp|105|24|
%xl|v|vol07.bmp|105|24|
%xl|w|vol08.bmp|105|24|
%xl|x|vol09.bmp|105|24|
%xl|y|vol10.bmp|105|24|
%xl|z|vol11.bmp|105|24|
%xl|A|stop.bmp|105|38|
%xl|B|play.bmp|105|38|
%xl|C|pause.bmp|105|38|
%xl|D|forward.bmp|105|38|
%xl|E|rewind.bmp|105|38|
%xl|F|holdon.bmp|105|50|
%xl|G|holdoff.bmp|105|50|
%xl|H|repeat01.bmp|105|63|
%xl|I|repeat02.bmp|105|63|
%xl|J|repeat03.bmp|105|63|
%xl|K|repeat04.bmp|105|63|
%xl|L|repeat05.bmp|105|63|
%xl|M|shuff01.bmp|105|76|
%xl|N|shuff02.bmp|105|76|
%xl|O|hd01.bmp|105|102|
%xl|P|hd02.bmp|105|102|
%xl|Q|mp1.bmp|105|88|
%xl|R|mp2.bmp|105|88|
%xl|S|mp3.bmp|105|88|
%xl|k|aiff.bmp|105|88|
%xl|T|wav.bmp|105|88|
%xl|U|ogg.bmp|105|88|
%xl|V|fla.bmp|105|88|
%xl|W|mpc.bmp|105|88|
%xl|X|ac3.bmp|105|88|
%xl|Y|wvp.bmp|105|88|
%xl|Z|alc.bmp|105|88|
%xl|h|aac.bmp|105|88|
%xl|i|shn.bmp|105|88|
%xl|j|sid.bmp|105|88|
%xl|m|adx.bmp|105|88|
%xl|n|nsf.bmp|105|88|
%xl|o|spx.bmp|105|88|
%xl|l|unknown.bmp|105|88|
%Cl|4|12|c100|c100|
%pb|4|4|172|3|









%s%m|20|%al%?ia<%ia|%?d2<%d2|(Artist Unknown)>> - %?id<%id|%?d1<%d1|(Album Unknown)>> - %?it<%it|%fn>
%?bl<%xda|%xdb|%xdc|%xdd|%xde>
%?pv<%xdp|%xdq|%xdr|%xds|%xdt|%xdu|%xdv|%xdw|%xdx|%xdy|%xdz>
%?pv<%xdj>
%?mp<%xdA|%xdB|%xdC|%xdD|%xdE>
%?mh<%xdF|%xdG>
%?mm<%xdH|%xdI|%xdJ|%xdK|%xdL>
%?ps<%xdM|%xdN>%?fc<%xdQ|%xdR|%xdS|%xdk|%xdT|%xdU|%xdV|%xdW|%xdX|%xdY|%xdZ|%xdh|%xdi|%xdj|%xdm|%xdn|%xdo|%xdl>%?fv<%xdf|%xdg>
%?lh<%xdO|%xdP>
%C

EDIT: Also attached is the progress bar that is supposed to be displayed. I figured out that for some odd reason, it displays the "cup" instead of the image! Any idea why?

* dump 071226-182913.PNG (13.99 kB, 176x132 - viewed 176 times.)

* progress.PNG (0.17 kB, 168x4 - viewed 168 times.)
« Last Edit: December 26, 2007, 10:47:26 PM by crzyboyster »
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Theme displaying default progressbar when image is available?
« Reply #1 on: December 26, 2007, 10:48:15 PM »
Okay I get it now... Please hold.... What do you mean by "the cup"?  All I can think is that there's a file naming problem...
« Last Edit: December 26, 2007, 10:54:10 PM by MarcGuay »
Logged

Offline psycho_maniac

  • Member
  • *
  • Posts: 814
    • MyWebPage
Re: Theme displaying default progressbar when image is available?
« Reply #2 on: December 26, 2007, 11:24:21 PM »
"the cup" is something like this ------------------[]-----  instead of seeing a something like [[[[[[[[[[[[[[[[[[[------  progress bar its empty with a little "cup" where the song is at. But in the screenshot I dont see the cup i see a filled progress bar. ???

* progress--bar.jpg (4.16 kB, 275x91 - viewed 165 times.)
« Last Edit: December 26, 2007, 11:32:08 PM by psycho_maniac »
Logged
Please SEARCH the wiki | Please read the Forum Guidelines | Please Read the Manual
I Own A Gigabeat F80

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Theme displaying default progressbar when image is available?
« Reply #3 on: December 26, 2007, 11:50:27 PM »
With the following code entered in:

Quote
#AAPod v4
#Created by Billy Blair, 2006
%X|bg.bmp|
%P|progress.bmp|
%xl|a|batt01.bmp|105|11|
%xl|b|batt02.bmp|105|11|
%xl|c|batt03.bmp|105|11|
%xl|d|batt04.bmp|105|11|
%xl|e|batt05.bmp|105|11|
%xl|f|vbr.bmp|145|88|
%xl|g|cbr.bmp|145|88|
%xl|j|vol_line.bmp|109|26|
%xl|p|vol01.bmp|105|24|
%xl|q|vol02.bmp|105|24|
%xl|r|vol03.bmp|105|24|
%xl|s|vol04.bmp|105|24|
%xl|t|vol05.bmp|105|24|
%xl|u|vol06.bmp|105|24|
%xl|v|vol07.bmp|105|24|
%xl|w|vol08.bmp|105|24|
%xl|x|vol09.bmp|105|24|
%xl|y|vol10.bmp|105|24|
%xl|z|vol11.bmp|105|24|
%xl|A|stop.bmp|105|38|
%xl|B|play.bmp|105|38|
%xl|C|pause.bmp|105|38|
%xl|D|forward.bmp|105|38|
%xl|E|rewind.bmp|105|38|
%xl|F|holdon.bmp|105|50|
%xl|G|holdoff.bmp|105|50|
%xl|H|repeat01.bmp|105|63|
%xl|I|repeat02.bmp|105|63|
%xl|J|repeat03.bmp|105|63|
%xl|K|repeat04.bmp|105|63|
%xl|L|repeat05.bmp|105|63|
%xl|M|shuff01.bmp|105|76|
%xl|N|shuff02.bmp|105|76|
%xl|O|hd01.bmp|105|102|
%xl|P|hd02.bmp|105|102|
%xl|Q|mp1.bmp|105|88|
%xl|R|mp2.bmp|105|88|
%xl|S|mp3.bmp|105|88|
%xl|k|aiff.bmp|105|88|
%xl|T|wav.bmp|105|88|
%xl|U|ogg.bmp|105|88|
%xl|V|fla.bmp|105|88|
%xl|W|mpc.bmp|105|88|
%xl|X|ac3.bmp|105|88|
%xl|Y|wvp.bmp|105|88|
%xl|Z|alc.bmp|105|88|
%xl|h|aac.bmp|105|88|
%xl|i|shn.bmp|105|88|
%xl|j|sid.bmp|105|88|
%xl|m|adx.bmp|105|88|
%xl|n|nsf.bmp|105|88|
%xl|o|spx.bmp|105|88|
%xl|l|unknown.bmp|105|88|
%Cl|4|12|c100|c100|
%pb|4|4|132|3|









%s%m|20|%al%?ia<%ia|%?d2<%d2|(Artist

Unknown)>> - %?id<%id|%?d1<%d1|(Album

Unknown)>> - %?it<%it|%fn>
%?bl<%xda|%xdb|%xdc|%xdd|%xde>
%?pv<%xdp|%xdq|%xdr|%xds|%xdt|%xdu|%xdv|%xdw|%

xdx|%xdy|%xdz>
%?pv<%xdj>
%?mp<%xdA|%xdB|%xdC|%xdD|%xdE>
%?mh<%xdF|%xdG>
%?mm<%xdH|%xdI|%xdJ|%xdK|%xdL>
%?ps<%xdM|%xdN>%?fc<%xdQ|%xdR|%xdS|%xdk|%xdT|%

xdU|%xdV|%xdW|%xdX|%xdY|%xdZ|%xdh|%xdi|%xdj|%x

dm|%xdn|%xdo|%xdl>%?fv<%xdf|%xdg>
%?lh<%xdO|%xdP>
%C
%wd

I get the following screenshot which clearly shows the "cup" instead of the image that's supposed to show up in the first post.

Note that the cup is an outline and not the filled up progress bar.

Here's how the progress bar is supposed to look like (from the original patched build version):



I'm willing to send this theme to someone who can fix this up as I'm completely puzzled about this...  ???

* dump 071226-224706.PNG (14.01 kB, 176x132 - viewed 182 times.)
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Theme displaying default progressbar when image is available?
« Reply #4 on: December 27, 2007, 10:55:31 AM »
Quote from: crzyboyster on December 26, 2007, 11:50:27 PM
%pb|4|4|132|3|

There's something wrong with this part... In the first post you had it written as:

%pb|4|4|172|3|

Which made a lot more sense because your progressbar.bmp is 168 pixels wide... Put it back to these measurements and see what happens...
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Theme displaying default progressbar when image is available?
« Reply #5 on: December 27, 2007, 12:14:25 PM »
MarcGuay: I actually did that on purpose to illustrate the image progressbar not appearing and the cup appearing instead. I made name of the progressbar image "pb.bmp" and the code to this:

Quote
#AAPod v4
#Created by Billy Blair, 2006
#Now works with SVN rockbox! (12/26/07) crzyboyster
%wd
%X|bg.bmp|
%P|pb.bmp|
%xl|a|batt01.bmp|105|11|
%xl|b|batt02.bmp|105|11|
%xl|c|batt03.bmp|105|11|
%xl|d|batt04.bmp|105|11|
%xl|e|batt05.bmp|105|11|
%xl|f|vbr.bmp|145|88|
%xl|g|cbr.bmp|145|88|
%xl|j|vol_line.bmp|109|26|
%xl|p|vol01.bmp|105|24|
%xl|q|vol02.bmp|105|24|
%xl|r|vol03.bmp|105|24|
%xl|s|vol04.bmp|105|24|
%xl|t|vol05.bmp|105|24|
%xl|u|vol06.bmp|105|24|
%xl|v|vol07.bmp|105|24|
%xl|w|vol08.bmp|105|24|
%xl|x|vol09.bmp|105|24|
%xl|y|vol10.bmp|105|24|
%xl|z|vol11.bmp|105|24|
%xl|A|stop.bmp|105|38|
%xl|B|play.bmp|105|38|
%xl|C|pause.bmp|105|38|
%xl|D|forward.bmp|105|38|
%xl|E|rewind.bmp|105|38|
%xl|F|holdon.bmp|105|50|
%xl|G|holdoff.bmp|105|50|
%xl|H|repeat01.bmp|105|63|
%xl|I|repeat02.bmp|105|63|
%xl|J|repeat03.bmp|105|63|
%xl|K|repeat04.bmp|105|63|
%xl|L|repeat05.bmp|105|63|
%xl|M|shuff01.bmp|105|76|
%xl|N|shuff02.bmp|105|76|
%xl|O|hd01.bmp|105|102|
%xl|P|hd02.bmp|105|102|
%xl|Q|mp1.bmp|105|88|
%xl|R|mp2.bmp|105|88|
%xl|S|mp3.bmp|105|88|
%xl|k|aiff.bmp|105|88|
%xl|T|wav.bmp|105|88|
%xl|U|ogg.bmp|105|88|
%xl|V|fla.bmp|105|88|
%xl|W|mpc.bmp|105|88|
%xl|X|ac3.bmp|105|88|
%xl|Y|wvp.bmp|105|88|
%xl|Z|alc.bmp|105|88|
%xl|h|aac.bmp|105|88|
%xl|i|shn.bmp|105|88|
%xl|j|sid.bmp|105|88|
%xl|m|adx.bmp|105|88|
%xl|n|nsf.bmp|105|88|
%xl|o|spx.bmp|105|88|
%xl|l|unknown.bmp|105|88|
%pb|4|4|172|3|
%Cl|4|12|c100|c100|









%s%m|17|%al%pp. %?ia<%ia|%?d2<%d2|(Artist Unknown)>> - %?id<%id|%?d1<%d1|(Album Unknown)>> - %?it<%it|%fn>
%?bl<%xda|%xdb|%xdc|%xdd|%xde>
%?pv<%xdp|%xdq|%xdr|%xds|%xdt|%xdu|%xdv|%xdw|%xdx|%xdy|%xdz>
%?pv<%xdj>
%?mp<%xdA|%xdB|%xdC|%xdD|%xdE>
%?mh<%xdF|%xdG>
%?mm<%xdH|%xdI|%xdJ|%xdK|%xdL>
%?ps<%xdM|%xdN>%?fc<%xdQ|%xdR|%xdS|%xdk|%xdT|%xdU|%xdV|%xdW|%xdX|%xdY|%xdZ|%xdh|%xdi|%xdj|%xdm|%xdn|%xdo|%xdl>%?fv<%xdf|%xdg>
%?lh<%xdO|%xdP>
%C


And also tested this out on the actual device! But it still won't display the image progressbar  ???

It's supposed to be looking like this (from the original screendump of the patched theme):



I didn't even touch the progressbar code from the original theme...

Anyone know what's up with this?


* dump 071227-111137.PNG (13.98 kB, 176x132 - viewed 165 times.)
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Theme displaying default progressbar when image is available?
« Reply #6 on: December 27, 2007, 01:36:25 PM »
Is it possible that it is displaying your image but for some reason the fade isn't being shown?  What happens if you replace the pb.bmp image with all black?  Does the colour change in the simulator?

P.S.  You don't have to post the entire code every time.

Another thing to try:  Comment out everything except the progress bar and see if it works on its own.
« Last Edit: December 27, 2007, 01:43:14 PM by MarcGuay »
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Theme displaying default progressbar when image is available?
« Reply #7 on: December 27, 2007, 02:28:55 PM »
Making the progressbar image all black makes no difference to the actual progressbar. The problem is that for some odd reason, the image is not being picked up at all!

I commented out everything but the progressbar code and ended up with the screendump attached. Atleast the proper image progessbar is showing up!

Quote
#AAPod v4
#Created by Billy Blair, 2006
#Now works with SVN rockbox! (12/26/07) crzyboyster
#%wd
#%X|bg.bmp|
%P|pb.bmp|
#%xl|a|batt01.bmp|105|11|
#%xl|b|batt02.bmp|105|11|
#%xl|c|batt03.bmp|105|11|
#%xl|d|batt04.bmp|105|11|
#%xl|e|batt05.bmp|105|11|
#%xl|f|vbr.bmp|145|88|
#%xl|g|cbr.bmp|145|88|
#%xl|j|vol_line.bmp|109|26|
#%xl|p|vol01.bmp|105|24|
#%xl|q|vol02.bmp|105|24|
#%xl|r|vol03.bmp|105|24|
#%xl|s|vol04.bmp|105|24|
#%xl|t|vol05.bmp|105|24|
#%xl|u|vol06.bmp|105|24|
#%xl|v|vol07.bmp|105|24|
#%xl|w|vol08.bmp|105|24|
#%xl|x|vol09.bmp|105|24|
#%xl|y|vol10.bmp|105|24|
#%xl|z|vol11.bmp|105|24|
#%xl|A|stop.bmp|105|38|
#%xl|B|play.bmp|105|38|
#%xl|C|pause.bmp|105|38|
#%xl|D|forward.bmp|105|38|
#%xl|E|rewind.bmp|105|38|
#%xl|F|holdon.bmp|105|50|
#%xl|G|holdoff.bmp|105|50|
#%xl|H|repeat01.bmp|105|63|
#%xl|I|repeat02.bmp|105|63|
#%xl|J|repeat03.bmp|105|63|
#%xl|K|repeat04.bmp|105|63|
#%xl|L|repeat05.bmp|105|63|
#%xl|M|shuff01.bmp|105|76|
#%xl|N|shuff02.bmp|105|76|
#%xl|O|hd01.bmp|105|102|
#%xl|P|hd02.bmp|105|102|
#%xl|Q|mp1.bmp|105|88|
#%xl|R|mp2.bmp|105|88|
#%xl|S|mp3.bmp|105|88|
#%xl|k|aiff.bmp|105|88|
#%xl|T|wav.bmp|105|88|
#%xl|U|ogg.bmp|105|88|
#%xl|V|fla.bmp|105|88|
#%xl|W|mpc.bmp|105|88|
#%xl|X|ac3.bmp|105|88|
#%xl|Y|wvp.bmp|105|88|
#%xl|Z|alc.bmp|105|88|
#%xl|h|aac.bmp|105|88|
#%xl|i|shn.bmp|105|88|
#%xl|j|sid.bmp|105|88|
#%xl|m|adx.bmp|105|88|
#%xl|n|nsf.bmp|105|88|
#%xl|o|spx.bmp|105|88|
#%xl|l|unknown.bmp|105|88|
%pb|4|4|172|3|
#%Cl|4|12|c100|c100|









#%s%m|17|%al%pp. %?ia<%ia|%?d2<%d2|(Artist Unknown)>> - %?id<%id|%?d1<%d1|(Album Unknown)>> - %?it<%it|%fn>
#%?bl<%xda|%xdb|%xdc|%xdd|%xde>
#%?pv<%xdp|%xdq|%xdr|%xds|%xdt|%xdu|%xdv|%xdw|%xdx|%xdy|%xdz>
#%?pv<%xdj>
#%?mp<%xdA|%xdB|%xdC|%xdD|%xdE>
#%?mh<%xdF|%xdG>
#%?mm<%xdH|%xdI|%xdJ|%xdK|%xdL>
#%?ps<%xdM|%xdN>%?fc<%xdQ|%xdR|%xdS|%xdk|%xdT|%xdU|%xdV|%xdW|%xdX|%xdY|%xdZ|%xdh|%xdi|%xdj|%xdm|%xdn|%xdo|%xdl>%?fv<%xdf|%xdg>
#%?lh<%xdO|%xdP>
#%C

(Sorry, I couldn't resist reposting the code as there might be something very wrong with it and I don't even know how to comment out the code)

I'm still perplexed as to the what the problem is. I'm willing to send it to someone if they can help with the problem.

* dump 071227-132454.PNG (1.87 kB, 176x132 - viewed 179 times.)
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: Theme displaying default progressbar when image is available?
« Reply #8 on: December 27, 2007, 04:07:28 PM »
You only get so much room to store your images. It sounds to me like Rockbox can't fit the progress bar graphic in.
Trim your other graphics as much as you can, or remove some. Many people leave room around a graphic that doesn't need to be there.  Like if you have 1 pixel of "buffer" around each of your words, cut that out and it saves ( (Width*2) + (Height * 2) - 4 ) pixels per bitmap.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Theme displaying default progressbar when image is available?
« Reply #9 on: December 27, 2007, 06:22:06 PM »
This seems odd. I think you're right Yotto, but I deleted out the entire background image of the wps and it still doesn't want to show the image progressbar! I've been trimming the images and even stopped the display of album art but it still doesn't want to show that one graphic...


EDIT: I commented out some of the different audio format indicators that aren't put to much use and lo and behold! The progressbar started to work! The problem wasn't in image size, it was the amount of images. Thanks, guys
« Last Edit: December 27, 2007, 07:05:02 PM by crzyboyster »
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Theme displaying default progressbar when image is available?
« Reply #10 on: December 28, 2007, 12:55:39 AM »
Wow, what a struggle.  So... is there a cap on the number of images that should be added to the wiki or...?
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Theme displaying default progressbar when image is available?
« Reply #11 on: December 28, 2007, 07:32:54 AM »
I think the wiki notes that there is a limit of 52 images (a-z,A-Z).

I did notice that some letters had been used twice in the code listed above:

Code: [Select]
...
%xl|j|vol_line.bmp|109|26|
...
%xl|j|sid.bmp|105|88|
...
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Theme displaying default progressbar when image is available?
« Reply #12 on: December 28, 2007, 12:31:19 PM »
The limit is 52 images, and a specific total size (which I think is twice the total size of the screen, plus a little extra).
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Theme displaying default progressbar when image is available?
« Reply #13 on: December 28, 2007, 01:11:12 PM »
I fixed the problem by commenting out some unneeded file formats that anyone can uncomment.
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Theme displaying default progressbar when image is available?
 

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

Page created in 0.105 seconds with 14 queries.