Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: motionman95 on April 25, 2009, 12:48:46 PM

Title: WPS Request?
Post by: motionman95 on April 25, 2009, 12:48:46 PM
I have an idea for a WPS for the Sansa C250. I've created some images as to how it would look. (See below)

WPS:
(http://coderkid.co.cc/Rockbox/SansaPod.jpg)

WPS Volume:
(http://coderkid.co.cc/Rockbox/SansaPodVol.gif)

I was wondering if anyone would be willing to collaborate with me to get this made. I'm more of a graphics kinda guy, and less of a coder one. But either way, I'll be very happy to help whoever decides to help me in any way I can!

Thanks in advance,
motionman95

EDIT:

I've added the zip that contains the cut-up images. Thanks for pointing that out, BigBambi!

http://uploading.com/files/27NVZXR9/SansaPodWPS.zip.html
Title: Re: WPS Request?
Post by: AlexP on April 25, 2009, 01:22:44 PM
That looks pretty simple to do, and it would probably be quicker to do it yourself.  See www.rockbox.org/wiki/CustomWps

Even if someone does decide to do it, it would help them immensely if you could actually prepare the images for them, seeing as you are the "graphics guy".

P.S. Please use real, full words such as collaborate (I'm guessing that is what you mean by "colab")
Title: Re: WPS Request?
Post by: motionman95 on April 25, 2009, 01:26:17 PM
I already have made a zip containing the cutup images. I'll try to make sure to use complete words.
Title: Re: WPS Request?
Post by: BdN3504 on April 25, 2009, 03:18:23 PM
i'll help you no problem. how about you finish that plugin i suggested while i do your wps ;) PS since you already have a zip file, can't you just attach it to this topic and change the extension rather than posting it on mediafire? i can't access that page somehow.
Title: Re: WPS Request?
Post by: motionman95 on April 25, 2009, 04:13:54 PM
Your plugin's pretty much finished, it just that I'm having one HUGE problem that I need help with. When I get the chance I'll upload the zip.
Title: Re: WPS Request?
Post by: soap on April 25, 2009, 06:25:44 PM
i'll help you no problem. how about you finish that plugin i suggested while i do your wps ;) PS since you already have a zip file, can't you just attach it to this topic and change the extension rather than posting it on mediafire? i can't access that page somehow.

If zips were wanted attached to the forum the .zip extension would be allowed...
Title: Re: WPS Request?
Post by: BdN3504 on April 25, 2009, 06:49:36 PM
hm, then try re-uploading it. that link seems bad.
Title: Re: WPS Request?
Post by: motionman95 on April 25, 2009, 09:57:42 PM
Re-uploaded!  8)
Title: Re: WPS Request?
Post by: saanaito on April 28, 2009, 09:26:03 PM
I could try giving this a shot, if you want. I just downloaded the .zip of the graphics; and I'll get started on the WPS code tomorrow.  (Current time is 9:25 PM, EST) :)
Title: Re: WPS Request?
Post by: motionman95 on April 28, 2009, 10:24:37 PM
Sure, I'd love it if you did.  ;D
Title: Re: WPS Request?
Post by: BdN3504 on April 29, 2009, 08:15:13 AM
http://uploading.com/files/8MUNDA2K/SansaPod.zip.html

You still have to create a Backdrop, and remove the ff00ff colour from the play and hold button. it's best if you just paste th icons on the background and copy it with the background, no need to fill it with ff00ff, the files will not be bigger and it's easier to handle. if you don't change the dimensions and filenames, you're good to go. if you're having problems, get back to me. i used nimbus 10, didn't know which font you used...
Title: Re: WPS Request?
Post by: motionman95 on April 29, 2009, 08:20:08 AM
Do you mean bitmap backdrop, or color backdrop?
Title: Re: WPS Request?
Post by: BdN3504 on April 29, 2009, 08:29:04 AM
You still have to create a Backdrop
a backdrop in rockbox is the image that is displayed in the main menu.
remove the ff00ff colour from the play and hold button. it's best if you just paste th icons on the background and copy it with the background, no need to fill it with ff00ff, the files will not be bigger and it's easier to handle. if you don't change the dimensions and filenames, you're good to go. if you're having problems, get back to me. i used nimbus 10, didn't know which font you used...
i mean the background of the playmode and hold bitmaps. replace it with the background of the wps background or else it will look like what i sent you.
Title: Re: WPS Request?
Post by: motionman95 on April 29, 2009, 09:15:47 AM
Wow, you've done an awesome job! Do I have to create a backdrop? I don't really care...  ???

Re-uploaded.
http://uploading.com/files/J5HRW3NU/SansaPodWPS.zip.html
Title: Re: WPS Request?
Post by: saanaito on April 29, 2009, 11:58:24 AM
You beat me to the punch, BdN3504. My code was having problems anyway.

Can anyone tell me where I went wrong?

Code: [Select]
#Remove the Staus Bar.
%wd
#Load the backdrop.
%X|/.rockbox/backdrops/WpsBackground.bmp|
#Load the battery strip.
%xl|B|battery.bmp|3|4|13|
#Battery Icon viewport. Shows the battey graphic.
%V|3|4|11|5|-|-|-|
%?bl<%xdBa|%xdBb|%xdBc|%xdBd|%xdBe|%xdBf|%xdBg|%xdBh|%xdBi|%xdBj|%xdBk|%xdBl|%xdBm>
#Preload the progress bar viewport.
%Vl|b|26|61|80|7|-|-|-|
%pb|PlayBar.bmp|0|0|78|5|
#Preload the volume graphics.
%xl|V|volumeaa.bmp|26|61|26|
%xl|W|volumebb.bmp|26|61|11|
%Vl|a|26|61|80|7|-|-|-|
%pv<%xdVa|%xdVb|%xdVc|%xdVd|%xdVe|%xdVf|%xdVg|%xdVh|%xdVi|%xdVj|%xdVk|%xdVl|%xdVm|%xdVn|%xdVo|%xdVp|%xdVq|%xdVr|%xdVs|%xdVt|%xdVu|%xdVv|%xdVw|%xdVx|%xdVy|%xdVz|%xdWa|%xdWb|%xdWc|%xdWd|%xdWe|%xdWf|%xdWg|%xdWh|%xdWi|%xdWj|%xdWk|>
#Show viewport A if volume is changing; viewport B otherwise.
%?mv<%Vda|%Vdb>
#Hold Icon
%xl|L|Lock.bmp|103|4|2|
%V|103|4|7|8|-|-|-|
%?mh<%xdLb|%xdLa>
#Playback Status Icon
%xl|P|123|4|5|
%V|123|4|6|7|-|-|-|
%?mp<%xdPa|%xdPb|%xdPc|%xdPd|%xdPe>
#Track time.
%V|35|2|64|9|1|-|-|
%ac%pc/%pt
#The song information.
%V|23|20|87|36|1|-|-|
%s%ac%?ia<%ia|Artist Untagged>
%s%ac%?id<%id|%d1>
%s%ac%?%it<%it|%fn>

Code: [Select]
ERR: Failed parsing on line 18 : ERR: Conditional syntax error after token 31: "
volume"
Title: Re: WPS Request?
Post by: mc2739 on April 29, 2009, 06:36:25 PM
The way I understand %xd you would need:

Code: [Select]
%xdVy|%xdVz|%xdVA|%xdVB|
Using lowercase and uppercase sub-image ID giving you 52 possible sub-images.
Title: Re: WPS Request?
Post by: audio-i on April 29, 2009, 08:13:04 PM
I don't know if this is causing the problem you describe, but it came to my attention that the volume images are being placed exceeding the viewport limits:

%xl|V|volumeaa.bmp|26|61|26|
%xl|W|volumebb.bmp|26|61|11|
%Vl|a|26|61|80|7|-|-|-|

(the |26|61| coordinates seem to be redundant, perhaps the %xl tag should have |0|0| instead)
Title: Re: WPS Request?
Post by: BdN3504 on April 30, 2009, 05:34:50 AM
i tried incorporating the volume level with bitmapstrips using two different descriptors. But the problem is that the image size of the volume bitmap exceeds the buffer size, so i removed some of the bars to make the bitmap smaller. You might end up with the same problem after you're done coding, so save yourself some frustration and resize the image!
Title: Re: WPS Request?
Post by: motionman95 on April 30, 2009, 10:52:09 PM
BdN3504, you've done an awesome job. The only problem is that when the file has no ID3 tags, the WPS displays nothing. I was wondering if you could change it so that when there's no ID data, the WPS just displays the name of the mp3 file, like "REC_01.mp3", etc. Thanks!
Title: Re: WPS Request?
Post by: creativesansa333 on April 30, 2009, 11:32:37 PM
Hey, motionman95 did you not get my zip file of this theme that I made for you when you messaged me before you started all this or did you just want a better wps? Here is a screenshot of the one I made for you before:
Title: Re: WPS Request?
Post by: motionman95 on April 30, 2009, 11:36:26 PM
Yeah...I was kinda looking for something that looked more like the image I posted...
(http://coderkid.co.cc/Rockbox/SansaPod.jpg)
Title: Re: WPS Request?
Post by: motionman95 on May 04, 2009, 12:48:03 PM
I've got the font that I used in the image origanally. How do I change the WPS code so that it displays properly?

I've attached the font...
(Hint: change the extension to .zip)
Title: Re: WPS Request?
Post by: Chronon on May 04, 2009, 01:06:00 PM
You can change the font in the theme's .cfg file (located in /.rockbox/themes/).
Title: Re: WPS Request?
Post by: motionman95 on May 04, 2009, 01:11:47 PM
I know that, I've already done it. But for some reason in the WPS doesn't display the font correctly - it's bottom part is cut off.
Title: Re: WPS Request?
Post by: BdN3504 on May 04, 2009, 04:08:03 PM
that's because your font won't fit into the viewports.
move the viewports containing written info (time, artist etc) up a little and make them higher like this:
old:
%Vl|X|123|456|789|123|1|XXXXXX|XXXXXX|
new:
%Vl|X|123|450|789|129|1|XXXXXX|XXXXXX|

This example will move the viewport up 6pxs and increase it's height 6 pxs
Title: Re: WPS Request?
Post by: Llorean on May 04, 2009, 07:42:51 PM
I've removed the attached font from the post. Please do not attempt to bypass our restrictions. if you think something should be allowed that isn't, contact us first.
Title: Re: WPS Request?
Post by: motionman95 on May 05, 2009, 11:23:35 AM
Thanks, bdn3504! WPS is perfect!
Title: Re: WPS Request?
Post by: aaron424 on May 05, 2009, 11:50:58 AM
Can someone modify this for the e2x0? If it had album art support that would be great

Title: Re: WPS Request?
Post by: motionman95 on May 05, 2009, 03:19:11 PM
Well, I could provide the image(s)...but only if some one here agrees to writing the WPS code.
Title: Re: WPS Request?
Post by: GodEater on May 06, 2009, 02:51:03 AM
Why "only if"?

That's not very community spirited :(
Title: Re: WPS Request?
Post by: robin0800 on May 06, 2009, 04:01:02 AM
When and if this makes it to the theme site you can download it and then it should be relatively easy to resize the icons and tweak the code for the new size of screen.
Title: Re: WPS Request?
Post by: motionman95 on May 06, 2009, 06:24:20 PM
Well, here's the image of how the theme for the E200 is going to look. I still have to cut up the images though.

Title: Re: WPS Request?
Post by: froggyman on May 06, 2009, 09:41:39 PM
Are you considering porting it to other targets like the iPod Video*?  I think it would be cool to see a WPS that looks similar to the OF. I know I would use this when i let my friends use it (so they have a familiar theme).

* If you want help with some of the pictures for it, I am farily good with the GIMP, and would be more than happy to help get a new theme going for the Video.
Title: Re: WPS Request?
Post by: motionman95 on May 06, 2009, 10:42:04 PM
That seems like a good idea, although I have to finish cutting the images up for the E200 first (which may take some time, depending on my schedule), and then I'll move on to the iPod Video...
Title: Re: WPS Request?
Post by: froggyman on May 07, 2009, 04:28:57 PM
That seems like a good idea, although I have to finish cutting the images up for the E200 first (which may take some time, depending on my schedule), and then I'll move on to the iPod Video...
if you would like, I could size up the images for iPod video, and if taught I could even cut them up and get the WPS working for it.

So, would you mind uploading it to an upload site, and post the link on here?
Title: Re: WPS Request?
Post by: motionman95 on May 07, 2009, 05:03:47 PM
Here's how the WPS for the iPod Video looks, next I have to cut up the images...
Title: Re: WPS Request?
Post by: creativesansa333 on June 01, 2009, 05:56:20 PM
Heres the current SansaPod theme but I made it so it displays album art when the hold switch is on: