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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Alternating sublines not working/being buggy with new left margin tag!
« previous next »
  • Print
Pages: [1] 2

Author Topic: Alternating sublines not working/being buggy with new left margin tag!  (Read 3972 times)

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Alternating sublines not working/being buggy with new left margin tag!
« on: December 07, 2007, 11:21:59 PM »
I've been porting your cabbie default theme to the nano. I want to put in an alternating subline for the next song title, album and artist with a delay of 4 seconds. I am not very familiar with the newer tags (left margin, album art, etc.) and am having difficulty. I was hoping that someone could help me. attached is the code and the latest screenshot. Can someone please help me? Then I will be done with it and be able to post it.



[WPS Code]

# cabbie 2.0 default
# (C) 2007, Johannes Voggenthaler (Zinc Alloy)#derived from "cabbie" (C) Yohann Misquitta
%wd
%P|pb.bmp|
%X|wpsbackdrop.bmp|0|0|
%xl|A|lockclosed.bmp|70|115|
%xl|B|lockopen.bmp|70|115|
%xl|C|battpl.bmp|88|117|
%xl|D|battch.bmp|88|117|
%xl|E|batt00.bmp|88|117|
%xl|F|batt01.bmp|88|117|
%xl|G|batt02.bmp|88|117|
%xl|H|batt03.bmp|88|117|
%xl|I|batt04.bmp|88|117|
%xl|J|batt05.bmp|88|117|
%xl|K|batt06.bmp|88|117|
%xl|L|batt07.bmp|88|117|
%xl|M|vol0.bmp|106|117|
%xl|N|vol1.bmp|106|117|
%xl|O|vol2.bmp|106|117|
%xl|P|vol4.bmp|106|117|
%xl|Q|shuffle.bmp|123|117|
%xl|R|repeatall.bmp|142|113|
%xl|S|repeatone.bmp|142|113|
%xl|T|repeatshuffle.bmp|142|113|
%xl|U|repeatab.bmp|142|113|
%xl|V|stop.bmp|159|115|
%xl|W|play.bmp|159|115|
%xl|X|pause.bmp|159|115|
%xl|Y|ff.bmp|159|115|
%xl|Z|rew.bmp|159|115|
%Cl|10|16|s65|s65|
%pb|5|9|168|87|
#NowPlaying
%?C<%s%m|80|%al%?ia<%ia|%?d2<%d2|(root)>>|%s%ac%?ia<%ia|%?d2<%d2|(root)>>>
%?C<%s%m|80|%al%?it<%it|%fn>|%s%ac%?it<%it|%fn>>
%?C<%s%m|80|%al%?id<%id|%?d1<%d1|(root)>>|%s%ac%?id<%id|%?d1<%d1|(root)>>>


%?C<%s%m|80|%al%?It<%It|%fn>|%s%ac%?It<%It|%fn>>

%al   %pc  %ar %pr
%?mh<%xdA|%xdB>
%?bp<%?bc<%xdD|%xdC>|%?bl<|%xdE|%xdF|%xdG|%xdH|%xdI|%xdJ|%xdK|%xdL>>
%?pv<%xdM|%xdN|%xdO|%xdP|>%?ps<%xdQ>
%?mm<|%xdR|%xdS|%xdT|%xdU>
%?mp<%xdV|%xdW|%xdX|%xdY|%xdZ>%?C<%C>


The red part is where the next line info is and the alternating subline is supposed to be, but if I try it out with the code in the wps guide in the same format, the whole WPS becomes invalid! Please help me solve my problem!


Clean copy of wps file attached as text document
* cabbie default.txt (1.38 kB - downloaded 107 times.)
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #1 on: December 08, 2007, 03:55:39 AM »
Could you also give the line with the alternating subline code?

I don't know how you want it to look and what code you tried there, so it's impossible to help you or find out if there really is an issue with the left margin in alternating sublines. Need to say I haven't tried the %m yet (let alone alternating sublines with it); I'm not sure if or how they are supposed to work.
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #2 on: December 08, 2007, 09:39:12 AM »
Well, the place I want the alternating subline to happen is the red highlighted text.

Here's what I have been trying:

Quote
%?C<%s%m|80|%al%?It<%It|%fn>;%al%s%t4%Ia|%s%ac%?It<%It|%fn>;%ac%s%t4%Ia>

I've done alternating sublines before and it worked fine, but after inputting this text, rockbox goes back to its default wps. After removing the alternating part, it works fine.

Can any wps guru help me out with this line?
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline psycho_maniac

  • Member
  • *
  • Posts: 814
    • MyWebPage
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #3 on: December 08, 2007, 10:12:11 AM »
The only thing i can think of is to take out each part of the line one at a time  or have you done this already?
« Last Edit: December 08, 2007, 10:16:59 AM by psycho_maniac »
Logged
Please SEARCH the wiki | Please read the Forum Guidelines | Please Read the Manual
I Own A Gigabeat F80

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #4 on: December 08, 2007, 10:33:29 AM »
I played around a bit and this line works fine:

%s%t4%It;%s%t4%Ia

But this one doesn't:

%?C<%s%t4%It;%s%t4%Ia|%s%t4%It;%s%t4%Ia>

Which leads me to believe that the alternating sublines aren't compatible with the album cover conditional.



Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #5 on: December 08, 2007, 10:39:02 AM »
So, what can I do about this? Is there a way to fix it or commit a fix into SVN?

Thanks
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #6 on: December 08, 2007, 10:52:05 AM »
Quote from: crzyboyster on December 08, 2007, 10:39:02 AM
So, what can I do about this? Is there a way to fix it or commit a fix into SVN?

You could play around with it until it works.  Ugly but functional:

%s%?C<%m|80||%ac>%t4%It;%?C<%m|80||%ac>%t4%Ia%

You're going to have to tweak this yourself so it displays the file name if there's no song title.
« Last Edit: December 08, 2007, 10:54:23 AM by MarcGuay »
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #7 on: December 08, 2007, 11:18:30 AM »
Wow, that works perfectly for me! Only problem is that I want it to display the next track, album AND artist. Here's the code I tried, it only displays track and album, anyone know why?

Quote
%s%?C<%m|80||%ac>%t4%It;%?C<%m|80||%ac>%t4%Ia%;%?C<%m|80||%ac>%t4%Id%>

And by the way, sorry guys! I'm just not very familiar with the newer tags and how to go about modifying them.

Another issue is that at the end of the album name it displays a ">" character at the end of the name.
I attached a screenshot with the problem shown. What's the problem with that?

Thanks a whole lot!


* buggysharactercode.JPG (5.22 kB, 176x132 - viewed 141 times.)
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline ZincAlloy

  • Member
  • *
  • Posts: 488
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #8 on: December 08, 2007, 11:21:48 AM »
try this:
Code: [Select]
%s%?C<%m|80||%ac>%t4%It;%?C<%m|80||%ac>%t4%Ia%;%?C<%m|80||%ac%t4%Id%>
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #9 on: December 08, 2007, 11:26:41 AM »
Sorry, ZincAlloy, that just breaks the wps...
Anyone else know what to do?
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline ZincAlloy

  • Member
  • *
  • Posts: 488
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #10 on: December 08, 2007, 11:55:10 AM »
whoops, removed the wrong bracket.
how about this:
Quote
%s%?C<%m|80||%ac>%t4%It;%?C<%m|80||%ac>%t4%Ia%;%?C<%m|80||%ac>%t4%Id%
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #11 on: December 08, 2007, 01:17:01 PM »
%s%?C<%m|80||%ac>%t4%It;%?C<%m|80||%ac>%t4%Ia%;%?C<%m|80||%ac>%t4%Id%
What are the %'s at the end of the second and third subline for? The parser doesn't seem to like them.
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #12 on: December 08, 2007, 07:04:12 PM »
Sorry, ZincAlloy, that doesn't make any difference at all. I messed around with the line some more and I think I made some amount of progress. The center screen (without album art) still looks the same (attached) and the album art screen shows all 3 (album, track and title), but it's messed up in another way (attached). Another thing that should be noted is that the centered screen still doesn't show all 3, it just shows the first 2 in the code!

Here's my new line of code:

Quote
%?C<%m|80||%ac>%s%t3%It;%?C<%m|80||%ac>%s%t3%Ia%;%?C<%m|80||%ac>%s%t3%Id%>

I'm willing to send the entire theme to someone if they can manage to debug it in a simulator, I just want this theme finished.

Thanks a lot!

* dump 071208-175737.JPG (5.35 kB, 176x132 - viewed 148 times.)

* dump 071208-175838.JPG (7.31 kB, 176x132 - viewed 152 times.)
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #13 on: December 08, 2007, 07:19:19 PM »
Quote from: crzyboyster on December 08, 2007, 07:04:12 PM
Quote
%?C<%m|80||%ac>%s%t3%It;%?C<%m|80||%ac>%s%t3%Ia%;%?C<%m|80||%ac>%s%t3%Id%>
You still have the stray % around as PaulJam pointed out. The first one marked red will be read as "show the semicolon" together with the following ; and not as a subline divider, so you actually defined only two sublines not three. The last one is interpreted together with the > as "show the greater than sign" and the conditional already is closed after the %ac (see "Other Tags" in the CustomWPS). Hope that if you get rid of all that's marked red it will work.
« Last Edit: December 08, 2007, 07:27:33 PM by pixelma »
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Alternating sublines not working/being buggy with new left margin tag!
« Reply #14 on: December 08, 2007, 07:27:08 PM »
Thanks a lot guys! Especially MarcGuay, pixelma and ZincAlloy (who made the original version). It's working perfectly now!

For other people to use, here's the code that finally worked:

Quote
%?C<%m|80||%ac>%s%t3%It;%?C<%m|80||%ac>%s%t3%Id;%?C<%m|80||%ac>%s%t3%Ia
« Last Edit: December 08, 2007, 07:41:32 PM by crzyboyster »
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Alternating sublines not working/being buggy with new left margin tag!
 

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

Page created in 0.105 seconds with 14 queries.