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
| | |-+  does the wps have character per line limit
« previous next »
  • Print
Pages: [1]

Author Topic: does the wps have character per line limit  (Read 2697 times)

Offline Zivo

  • Member
  • *
  • Posts: 66
does the wps have character per line limit
« on: April 29, 2007, 09:43:42 AM »
hello
 im writing a WPS for H300

and i like to use the "%t" for changing the line evey 1 sec
but my line is very long (~300)
and when i use the "%t" i duplicate it so its length is (~600)

when i cheack it in the sim and in the player its not showed right

i supposed its because of the length
and i want to be sure

so...

what is the length limit for a line

thanks for the helpers
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: does the wps have character per line limit
« Reply #1 on: April 29, 2007, 09:58:50 AM »
There's no real limit to the length of a line, but there are other limits that could cause you trouble in this case. What I can suggest is that you use the simulator with the "--debugwps" command line argument to get more information about what's wrong.
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: does the wps have character per line limit
« Reply #2 on: April 29, 2007, 11:36:56 AM »
how do i use this option can you be more specific please
Logged

Offline elborak

  • Member
  • *
  • Posts: 177
Re: does the wps have character per line limit
« Reply #3 on: April 29, 2007, 12:27:18 PM »
Just include the --debugwps option when you start the simulator.
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: does the wps have character per line limit
« Reply #4 on: April 29, 2007, 12:54:27 PM »
ok thanks

i did it but nothing happend
the sim popped up i run the new WPS but nothing was written

what should i see
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: does the wps have character per line limit
« Reply #5 on: April 29, 2007, 01:12:57 PM »
?????

may be i can use the "%t" command
on a part of the line

may be there is new command that i dont know
casue in the manual the "%t" doesnt showed
may be there is more
Logged

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
Re: does the wps have character per line limit
« Reply #6 on: April 29, 2007, 01:22:22 PM »
Are you doing this?
this is from the custom WPS wiki page.

Alternating Sublines
It is possible to group items on each line into 2 or more groups or "sublines". Each subline will be displayed in succession on the line for a specified time, alternating continuously through each defined subline.
Items on a line are broken into sublines with the semicolon ';' character. The display time for each subline defaults to 2 seconds unless modified by using the '%t' tag to specify an alternate time (in seconds and optional tenths of a second) for the subline to be displayed.

Subline related special characters and tags:

   ;  : Split items on a line into separate sublines
  %t  : Set the subline display time. The '%t' is followed by either integer
        seconds (%t5), or seconds and tenths of a second (%t3.5).
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: does the wps have character per line limit
« Reply #7 on: April 29, 2007, 02:17:18 PM »
thats what im doing but because the line is too long it doesnt show as i want , i know that because i shorten the line it work very good

perhaps it is possible to to divide the line to 2 part
and than the second part to 2 parts and they will changed by time

if it was simple it was written like this

####### %t1 @@@@@ ;%t1 $$$$$$$

and it will look like this

####### @@@@@

after 1 sec

####### $$$$$$$

is it possible
Logged

Offline elborak

  • Member
  • *
  • Posts: 177
Re: does the wps have character per line limit
« Reply #8 on: April 29, 2007, 03:29:01 PM »
Quote from: Zivo on April 29, 2007, 12:54:27 PM
i did it but nothing happend
the sim popped up i run the new WPS but nothing was written
How recent is your build?
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: does the wps have character per line limit
« Reply #9 on: April 29, 2007, 08:08:15 PM »
Maybe you could just post your WPS here so I can test it and tell you what's wrong (or maybe fix the WPS code :))
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: does the wps have character per line limit
« Reply #10 on: April 30, 2007, 02:06:29 PM »
This particular problem is solved by my latest commit (r13295).
What caused it is the limit to the number of strings used in a WPS. A string is a piece of text written in the WPS that's not a tag, i.e. spaces, or things like "playing", "paused" and everything else. There can be no more than 128.
As of now, this is 128 unique strings. This means that if you use the exact same string twice, only one copy of it will be stored in memory instead of having it there twice.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  does the wps have character per line limit
 

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

Page created in 0.083 seconds with 14 queries.