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
| | |-+  What am I doing wrong?
« previous next »
  • Print
Pages: [1]

Author Topic: What am I doing wrong?  (Read 2351 times)

Offline BakaKotani

  • Member
  • *
  • Posts: 5
What am I doing wrong?
« on: April 27, 2008, 02:26:18 AM »
My wps code is:

%X|bg.bmp|
%xl|a|Play.bmp|50|50|
%xl|b|Pause.bmp|50|50|
%xl|c|FastForward|50|50|
%xl|d|FastRew|50|50|
%V|15|33|209|220|1|FFFFFF|000000|
%alNow Playing: %ar%pp of %pe

%ac%it
%ac%ia
%ac%id

%al  %pc %ar%pt 
%pb|4|5|202|
%?mp<%xdb|%xda|%xdb|%xdc|%xdd>

I get the default wps.  I tried making the file with notepad, wordpad and notepad++.

I got it to work mostly... but now my background image isn't being displayed.
« Last Edit: April 27, 2008, 03:42:27 AM by BakaKotani »
Logged

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
Re: What am I doing wrong?
« Reply #1 on: April 27, 2008, 07:05:28 AM »
The progress bar %pb needs a y position number, a fourth variable if you like.
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: What am I doing wrong?
« Reply #2 on: April 27, 2008, 07:22:50 AM »
That's not true, robin0800. The progressbar variables are all optionally - even with no variables specified you'll get the progressbar - with a default height (7 pixels if I remember correctly), using the full width of the display at the position of the %pb line in the WPS.

BakaKotani,
I can't see anything wrong in your code and you said later that you got it working. As for the backdrop issue, there are only 2 possibilities I can think of: either the specified bitmap doesn't exist in the correct folder (but it should fall back to the built-in text only WPS you saw first) - or the bitmap you are trying to use as background doesn't meet the requirements. Maybe it's not the correct size (which is the most important requirement)? You can only use bitmaps as a real backdrop (with the "%X" tag) which are exactly the size of the display you want to use them with. What player do you code this for?
Logged

hhannah

  • Guest
Re: What am I doing wrong?
« Reply #3 on: April 27, 2008, 10:49:51 AM »
Quote from: BakaKotani on April 27, 2008, 02:26:18 AM
%xl|c|FastForward|50|50|
%xl|d|FastRew|50|50|

I just noticed that the ffw & rew images don't have the .bmp extension, they should be

%xl|c|FastForward.bmp|50|50|
%xl|d|FastRew.bmp|50|50|

That is something that has to be corrected for sure.
If you ask in the forums for help on your code, people will logically tend to check if the code instructions themselves are wrong; since this problem is not code related, you could have noticed it yourself by just checking more carefully


Note: Not that it is related to your problem, but when you get your WPS working, after that, check examples 1 (what you've done) and 1a (what you could do) here http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Images , to learn the use of bitmap strips, it's a very useful concept, and it seems to apply perfectly to your design, since you are using four changing images (play, ffw, rew, pause) that go in the same position.
« Last Edit: April 28, 2008, 01:29:45 AM by hhannah »
Logged

Offline BakaKotani

  • Member
  • *
  • Posts: 5
Re: What am I doing wrong?
« Reply #4 on: April 30, 2008, 12:44:49 AM »
@hhanah:
I noticed that and fixed it.  Thanks for pointing it out though.

@pixelma:
The bitmap exists and it is the right size.  I'm making this for the GigabeatF.
Logged

Offline siber_cat314

  • Member
  • *
  • Posts: 41
Re: What am I doing wrong?
« Reply #5 on: April 30, 2008, 01:15:30 AM »
My guess is that the viewport tag isn't right. I tried making a wps with a viewport, and it wouldn't work. Checked and rechecked, but couldn't get it to work at all (even tried the tag all by itself).
Logged
Quote from: Zardoz
so if i scribble some nonsense and post it on a site, i reserve all rights to my scribbled nonsense?
Quote from: Llorean
If it can be described as a creative work, yes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  What am I doing wrong?
 

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

Page created in 0.082 seconds with 15 queries.