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
| | |-+  ready to commit conditional viewports... breaks %P and %pb in current .wps'

Poll

break WPS compatability once or twice?

once, (break %P, %pb, %m in one go)
twice, (%P %pb now, %m in a few weeks)
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: ready to commit conditional viewports... breaks %P and %pb in current .wps'  (Read 9688 times)

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
ready to commit conditional viewports... breaks %P and %pb in current .wps'
« on: June 01, 2008, 05:38:20 AM »
Hey all,
So, I've got a few patches almost ready to go which affect pretty much every .wps around so I'm putting this warning up to give everyone plenty of time to fix their wps'. The two patches which need your attention is http://www.rockbox.org/tracker/task/9051 and http://www.rockbox.org/tracker/task/9027.
9051 removes the ability to set the lcd x/y margins (i.e %m).
9027 allows you to conditionally display viewports. You should be able to do anything you could with %m with this patch. The big issue with this patch is that it breaks the progressbar tags. %P needs to be removed, so to specify a filename for the progress bar bmp you need to add it to the end of the %pb tag, which means you have to specify all 4 number values also.

I have no intention of committing either of these before they are definitely bug free, and without sending out another warning email, but I'm sending this out now so no one complains that they didn't hear about this change coming.

So, summary of changes:
New tags:
%Vl|<tag>|<regular %V syntax>| - tag is a single a-zA-Z letter (like images...) this tag is used to say that a viewport is conditionally displayed
%Vd|<tag>| - display a viewport (otherwise not shown on the redraw). CAVEAT: you need to enable the viewport before its definition or it wont be drawn...
Removed tags:
%m
%P
Modified tags:
%pb|filename|x|y|width|height|

This is mostly waiting for 9051 to have its bugs removed which I don't think will take too long, but 9027 needs more testing...
I'd like to say these will both go in by the end of June (maybe even devcon weekend..)

So, please test the patches and let me know of bugs (preferably replying to the tracker task)

Thanks
« Last Edit: July 01, 2008, 12:51:16 AM by MarcGuay »
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

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 Developments (wps artists.. take this as a warning..)
« Reply #1 on: June 01, 2008, 11:00:51 AM »
Thanks for the heads-up.  I'll keep an eye out for when all my themes go kaput and make sure I update them accordingly.

Just out of curiosity, is there a way to make the viewports use the foreground and background colours defined in the display settings rather than values specifically written in the WPS code?  If not, would there be a way to add that?  I made a theme set recently that could take advantage of something like that to let the user set his or her own colour scheme rather than predetermined colour schemes.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: WPS Developments (wps artists.. take this as a warning..)
« Reply #2 on: June 08, 2008, 01:40:36 AM »
<copy from the mailing lists again>

hey all,
Unless any news bugs popup in FS#9027 I plan on commiting it in 2 weekends time (sometime after june 20th...) This gives everyone plenty of time to fix their WPS's because this patch will break 99% of existing ones
changes:
%P is removed.
%pb is changed to be more consistant with the other tags (explianed below)
%Vl and %Vd introduced.

%pb can either be used without an params (i.e just "%pb") which will put a non bmp horizontal bar at the line position in the current viewport, or it is used like %pb|filename|x|y|width|height| where filename is the name of the bitmap to use (or - for the old style one), x,y are the offsets from the current viewport to position the bar at, width,heioght are the width and height of the bar. (those last 4 can be set with - to use defaults which are explained in the tracker)

%Vl is the same as %V except it requires a single letter as an extra param at the start (e.g %Vl|a|<usual %V params>|) it is used to create a viewport which by default is hidden.
%Vd is used to display a viewport... (%Vda enables the viewports with the letter 'a' as their identifier)

currently there is still a limit of 15 user viewports (+ the default vp) but this number may need to be increased...

One thing to note... if you use the %V (or %Vl) tags at all in a .wps, the default viewport will be parsed and conditionals checked, but it will not draw anything in that viewport (This is a work around for a problem where conditionals clear the line they are on, and because it is in the default viewport it may not be being updated by another one... so you may end up with random blank lines where you dont expect them). IMHO this is not a problem, but if there is really strong feelings against this we can work on a proper solution (if there is one).

Now, I also have FS#9051 ready for commit which removes the %m tag (its not needed ones conditional viewports is enabled), and seen as 9027 breaks 99% of existing WPS' I think its better to commit these together so there is only 1 break to compatibility.... There are others though which think there should be a gap between enabling conditional viewports and removeing %m... I guess its up to whoever yells loudest....

So, please thourghly test these 2 patches and work on your WPS' to make sure they can be converted reasonably easily... and let me know if there are any problems.

I'll be away from the computer untill tuesday night...

Jonathan
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Zardoz

  • Member
  • *
  • Posts: 226
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #3 on: June 08, 2008, 07:53:33 AM »
what does/will your new commit improve?? I'm sorry for asking but what are viewports? I'm a bit dumb so have patience....
Logged
"And I have looked into the face of the force which put the idea in your head. You are bred and led yourself"

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #4 on: June 08, 2008, 08:02:25 AM »
Viewports are what allow a person making a WPS to define a certain section of a screen for displaying text or images.  It allows for much more freedom with positioning things on the screen rather than being limited by the height of the text like it used to be.  Conditional viewports will allow different viewports to be defined and used given certain conditions, say for whether or not album art is present to be displayed.  The upcoming commit will also change how progress bars are managed to allow for a little more freedom (to allow multiple different progress bars rather than being limited to one) and to be more consistent with the rest of the code.

At least, that's what I take out of this.  If I'm missing anything important, I'm sure someone else will point it out.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline Zardoz

  • Member
  • *
  • Posts: 226
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #5 on: June 08, 2008, 08:41:22 AM »
OK I think I understand (kinda) now. Thanks for the info. My WPS of choice is Cabbie v3, I guess this will be broken too??
Logged
"And I have looked into the face of the force which put the idea in your head. You are bred and led yourself"

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #6 on: June 08, 2008, 08:48:59 AM »
Most likely every currently working WPS will be broken for a short while until people change the progress bar code to match the new syntax.  Other WPSes will need a little more work done, to remove any %m tags being used and use condtitional viewports instead.  I myself am going to have a good hour or two of work to do on my themes to fix them once the commit takes place, but hopefully once that's done I won't have to edit them anymore for a while.

In fact, even the currently bundled themes would be broken, unless they're fixed to the new code syntax along with the commit.  I would expect they'll be updated since they're bundled with Rockbox and it wouldn't make sense to bundle broken themes...
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline Zardoz

  • Member
  • *
  • Posts: 226
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #7 on: June 08, 2008, 08:56:43 AM »
Who's the author of that theme? What themes do you author? Thanks for the info dude!!
Logged
"And I have looked into the face of the force which put the idea in your head. You are bred and led yourself"

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #8 on: June 08, 2008, 09:04:45 AM »
The theme's author should be on the wiki just under the theme, I think it's the same guy who made the first Cabbie v2 theme...  As for my themes, they're for a different target, but they can be found here.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline Zardoz

  • Member
  • *
  • Posts: 226
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #9 on: June 08, 2008, 09:10:31 AM »
good work. particularly like the 'old school lcd' theme. are you Dutch?
Logged
"And I have looked into the face of the force which put the idea in your head. You are bred and led yourself"

Offline ZincAlloy

  • Member
  • *
  • Posts: 488
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #10 on: June 08, 2008, 10:41:52 AM »
would be great if somebody could provide simulator builds with those patches so that theme developers can start working on updating their wps files.

should we consider emptying the current wps galleries completely when these patches get committed?
Logged

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #11 on: June 08, 2008, 02:15:33 PM »
Quote from: ZincAlloy on June 08, 2008, 10:41:52 AM
should we consider emptying the current wps galleries completely when these patches get committed?
IMHO a coordinated effort should be made to clarify the licenses of all themes on the wiki, and all those which no longer work and do not have a permissive license should be put in a "holding pen".
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline jswetzen

  • Artist
  • Member
  • *
  • Posts: 113
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #12 on: June 08, 2008, 03:38:24 PM »
Quote from: ZincAlloy on June 08, 2008, 10:41:52 AM
should we consider emptying the current wps galleries completely when these patches get committed?

I have updated almost all of my themes, and I'll have the zips ready for upload as soon as this is committed. If we were to empty the galleries, that would mean a lot more work for me than simply uploading a few files. I agree with soap that it would be better to clean up the galleries, even if emptying them is less time-consuming.
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #13 on: June 08, 2008, 03:59:31 PM »
Could you commit the changes to the Customwps page please?
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: ready to commit conditional viewports... breaks %P and %pb in current .wps'
« Reply #14 on: June 08, 2008, 04:18:51 PM »
I think that the rockbox-themes.org site should become the primary site after this commit (it's the last wps commit for a while now, correct?) and all the wiki pages should be closed down and made view only. Or has this already been discussed?
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

  • Print
Pages: [1] 2 3
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  ready to commit conditional viewports... breaks %P and %pb in current .wps'
 

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

Page created in 0.12 seconds with 20 queries.