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
| | |-+  WPS help please!
« previous next »
  • Print
Pages: [1]

Author Topic: WPS help please!  (Read 4167 times)

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
WPS help please!
« on: August 20, 2007, 07:37:32 AM »
I recently made a WPS for the iRiver H10 20GB and iAudio X5, but I ran into a small problem with a couple of icons not showing up properly.  The rest of the WPS is working as I expected and wanted it to.  Below is the code for the .wps file:

Code: [Select]
%X|background.bmp|
%P|progbar.bmp|
%xl|A|batt1.bmp|128|104|
%xl|B|batt2.bmp|128|104|
%xl|C|batt3.bmp|128|104|
%xl|D|batt4.bmp|128|104|
%xl|E|batt5.bmp|128|104|
%xl|F|battcharge.bmp|128|104|
%xl|G|battplug.bmp|128|104|
%xl|H|hold.bmp|1|152|
%xl|I|hdd.bmp|1|144|
%xl|J|norepeat.bmp|48|104|
%xl|K|repeat.bmp|48|104|
%xl|L|repeat1.bmp|48|104|
%xl|M|repeatshuffle.bmp|48|104|
%xl|N|repeatab.bmp|48|104|
%xl|O|shuffle.bmp|24|104|
%xl|P|noshuffle.bmp|24|104|
%xl|Q|fastforward.bmp|72|104|
%xl|R|rewind.bmp|72|104|
%xl|S|play.bmp|72|104|
%xl|T|pause.bmp|72|104|
%xl|a|vol1.bmp|92|104|
%xl|b|vol2.bmp|92|104|
%xl|c|vol3.bmp|92|104|
%xl|d|vol4.bmp|92|104|
%xl|e|vol5.bmp|92|104|
%xl|f|vol6.bmp|92|104|
%xl|g|vol7.bmp|92|104|
%xl|h|vol8.bmp|92|104|
%xl|i|vol9.bmp|92|104|
%xl|j|vol10.bmp|92|104|
%xl|k|vol11.bmp|92|104|
%xl|l|vol12.bmp|92|104|
%xl|m|vol13.bmp|92|104|
%xl|n|vol14.bmp|92|104|
%wd

%al  Track %pp of %pe%ar%cl:%cM %cp  

%s%t10%al  %?ia;%s%t10%al  %?Ia
%s%t10%al  %?id;%s%t10%al  %?Ia
%s%t10%al  %?it;%s%t10%al  %?It

%pb|9|8|152|144
%al  %pc%ac%fbkbps %fc%ar-%pr  

%?bp<%?bc<%xdF|%xdG>|%?bl<%xdA|%xdB|%xdC|%xdD|%xdE>>
%?mp<%xdT|%xdS|%xdT|%xdQ|%xdR>
%?mm<%xdJ|%xdK|%xdL|%xdM|%xdN>
%?ps<%xdO|%xdP>
%?pv<|%xda|%xdb|%xdc|%xdd|%xde|%xdf|%xdg|%xdh|%xdi|%xdj|%xdk|%xdl|%xdm|%xdn>
%?mh<%xdH|>
%?lh<%xdI|>

If it's not entirely evident from the code, it's the HDD activity icon and the hold switch icon that aren't showing up.  Any help would be appreciated, and any suggestions to clean the rest up as well if possible would be great!
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline jswetzen

  • Artist
  • Member
  • *
  • Posts: 113
Re: WPS help please!
« Reply #1 on: August 20, 2007, 10:11:16 AM »
Maybe you have too many or too large images, resulting in some of them not loading. You could try to remove the volume meter (it has a lot of images) and see if the icons show up.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: WPS help please!
« Reply #2 on: August 20, 2007, 01:04:26 PM »
I'm not sure that it's the number of images, as I've used more than that, without any issue.
Logged

Offline jswetzen

  • Artist
  • Member
  • *
  • Posts: 113
Re: WPS help please!
« Reply #3 on: August 20, 2007, 01:09:56 PM »
It's not the number of images but the combined size of all the images. If it's too big, some images won't be shown.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: WPS help please!
« Reply #4 on: August 20, 2007, 01:12:29 PM »
One further thought:  are your x and y coordinates for the 2 images within the screen size/are they reversed?
Logged

Offline kockroach

  • Member
  • *
  • Posts: 12
Re: WPS help please!
« Reply #5 on: August 20, 2007, 02:57:43 PM »
I believe that they will work if you remove the pipe symbols "|" after the image tags.

Try using
Code: [Select]
%?mh<%xdH>
%?lh<%xdI>
Logged

Offline ell1ps1s

  • Member
  • *
  • Posts: 36
Re: WPS help please!
« Reply #6 on: August 20, 2007, 05:48:53 PM »
Quote from: kockroach on August 20, 2007, 02:57:43 PM
I believe that they will work if you remove the pipe symbols "|" after the image tags.

Not if you want the conditionals to work correctly. (Or at all?)

Mikerman has the answer. The H10 20Gb's screen is 128x128, so coordinates of
Code: [Select]
%xl|H|hold.bmp|1|152|
%xl|I|hdd.bmp|1|144|
will indeed be off the screen.
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: WPS help please!
« Reply #7 on: August 20, 2007, 05:53:44 PM »
Quote from: ell1ps1s on August 20, 2007, 05:48:53 PM
The H10 20Gb's screen is 128x128

The H10 20GB version is 160x128; the same as the iAUDIO X5. The H10 5/6GB version is 128x128.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: WPS help please!
« Reply #8 on: August 20, 2007, 05:56:08 PM »
I'll try a few things and see what happens, I'll post the results shortly.  Thanks for the suggestions.

**EDIT:  It doesn't seem to have made a difference, unfortunately.  I'll keep poking around with it and see if I can't make something work in the mean time, and if someone here stumbles across whatever is stopping those images from being displayed before I do then that'll save me a bit of frustration.

I looked at the WPS tags lists in the manual and the only one of those two that was shown was the hdd activity tag, and it's not even shown to be able to be used as a conditional.  The hold tag I had to dig up from another WPS I have.  Something else to note, the WPSes I'd looked at as guidlines to build my own worked perfectly including the hold and HDD icons, and I copied the lines to display my images exactly from what they had, only changing the images to be displayed to match my images.
« Last Edit: August 20, 2007, 06:13:23 PM by karashata »
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline ell1ps1s

  • Member
  • *
  • Posts: 36
Re: WPS help please!
« Reply #9 on: August 20, 2007, 06:09:20 PM »
Quote from: LambdaCalculus379 on August 20, 2007, 05:53:44 PM
The H10 20GB version is 160x128; the same as the iAUDIO X5. The H10 5/6GB version is 128x128.

Sorry--my mistake. Thanks for pointing that out.

The coordinates in question would be off the screen in either case.
Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: WPS help please!
« Reply #10 on: August 20, 2007, 06:21:21 PM »
I just noticed...  I did mix up my X and Y coordinates...  I have them displaying at (1,144) and (1,152) instead of (144,1) and (152,1)...  thanks for mentioning it again.
Logged
Welp, my iriver H10 20GB is out of commission again.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  WPS help please!
 

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

Page created in 0.107 seconds with 15 queries.