Support and General Use > Theming and Appearance Customization

help on new wps formatting

(1/1)

hatchinatore:
i have this wps i made some time ago, what do i need to do to it to make it work on the new build. i heard there was something different with it, anyways here it is..

# Created by Hatchinatore
# Preload battery pics
%xl|g|battery0.bmp|29|4|
%xl|h|battery1.bmp|29|4|
%xl|i|battery2.bmp|29|4|
%xl|j|battery3.bmp|29|4|
%xl|k|battery4.bmp|29|4|
# Preload volume pics
%xl|a|volume0.bmp|5|5|
%xl|b|volume1.bmp|5|5|
%xl|c|volume2.bmp|5|5|
%xl|d|volume3.bmp|5|5|
%xl|e|volume4.bmp|5|5|
%xl|f|volume5.bmp|5|5|
# Preload progressbar pic
%P|progress.bmp|
# Preload song stat icons
%xl|l|play.bmp|84|105|
%xl|m|pause.bmp|84|105|
%xl|n|forward.bmp|84|105|
%xl|o|rewind.bmp|84|105|
# show battery
%?bl %ar%cl:MPc
# song info
%s%ac%it
%s%ac%ia
%s%ac%id
%al%pc%ac%?iy |%?ig> %ar%pt
# show song stat icons
%pb|75|30|146|


%?mp
# show volume
%?pv
# Load & display background bitmap
%X|zeldaplay.bmp|
# no status bar
%wd


im not sure what i need to do, and by the way the two lines under the progress bar are because its big. if anyone wants this theme, ill be happy to upload it on a site (not this one because i cant go on irc at all)
thanks - hatch

madsic:
It's been some time since I adjusted my themes to the new 'strict' rules but I seem to recall that I needed to remove some spaces from lines containing pointy brackets (? the '' variety). Maybe in between? It'd be an easy thing to test, anyway...

lights0ut:
As far as I can see, you just need to change the RTC code:

%cl:MPc     changes to    %cl:%cM%cP

Other than that, I think this should work, most of my errors in my WPS's come from unclosed conditionals, or an extra % or ? in my tags. I'll test this on my sim, just to be sure though.

lights0ut:
I've ran this through my sim and it had a few issues with the conditionals, attached is the fixed version. Here's the details:

line 23:
%ar%cl:MPc
changes to:
%ar%cl:%cM%cP

line 28:
%al%pc%ac%?iy <%iy %?ig<   %ig|>|%?ig<%ig|no info>> %ar%pt
changes to
%al%pc%ac%?iy<%iy %?ig<   %ig| >|%?ig<%ig|no info>>  %ar%pt
(remove the space after %?iy)

and line 33:
comment out %?mp there are no arguments in this conditional. I assume that there are plans to actually put code in this line, but I needed to comment it out to satisfy the parser.

hope that helps, and good luck with the rest of the theme ;)

[attachment deleted by admin for age]

Navigation

[0] Message Index

Go to full version