Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: theJesus on July 23, 2008, 02:00:33 AM

Title: Requesting update of Ultima V1.0 WPS on X5 and e200 (or help doing it)
Post by: theJesus on July 23, 2008, 02:00:33 AM
My girlfriend and I recently switched to the most recent build and noticed that pretty much every custom wps we tried to load was broken.  First guess was that wps syntax had been changed, so I looked into that and found out I was right.

Anyways, Ultima V1.0 is our favorite theme, so as long as I get that fixed, we'll be happy.  I'm not exactly familiar with the wps syntax in the first place, but I took a peek and found a couple lines that I think are the source of the problem.

%P|pb.bmp|
and
%pb|pb.bmp|3|157|69|

I don't know what %P is supposed to be replaced with (%xl maybe?) and in the second line, I thought there were supposed to be 4 numbers, not just 3.  I think those are the only issues with it since I didn't find %m used anywhere, but I could be wrong.

If anybody would be willing to help me out, it would be greatly appreciated.
Title: Re: Requesting update of Ultima V1.0 WPS on X5 and e200 (or help doing it)
Post by: ryran on July 23, 2008, 03:20:52 AM
You zeroed in on the problem. The syntax for the %pb command was changed. Now it's %pb|filename.bmp|x|y|width|height|
Sooo I'm no expert and have never worked with images in a wps before, but after a little trial and error with the simulators I can tell you this gets the e200 version working:

remove the %P line
change the %pb line to %pb|pb.bmp|4|121|168|-|

That seems like it should be right and it works well in the sim.

As for the X5.. hmm. Doing the math, it looks like the pb line should be
%pb|pb.bmp|3|69|154|-|
but for some reason the progress bar keeps going off to the right at the very end of a song. I'm wondering if this is a bug with the simulator, since 154 is what the width should be, as far as I can see. Have to set it to 151 for the sim to look right. Weird.

Random, but I also noticed an inconsistency with the time/filetype/time remaining line on the X5, compared to Ultima on other targets:
%al %pc%ac%fc %fbkbs%?fv< VBR|> %ar %pr should actually be
%al %pc%ac%fc %fbkbs%?fv< VBR|> %ar -%pr
Title: Re: Requesting update of Ultima V1.0 WPS on X5 and e200 (or help doing it)
Post by: Ste- on July 23, 2008, 04:51:16 AM
Thanks for updating the ryran. I can update the wiki with your changes.
I have done some of the other x5 themes but haven't had the time to update them all.


[edit] also updated Blackglass V2 and DigiCurve.
Title: Re: Requesting update of Ultima V1.0 WPS on X5 and e200 (or help doing it)
Post by: theJesus on July 23, 2008, 10:16:48 AM
Thanks a bunch to both of you, the wps works just fine now on both of our players :)