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
| | |-+  E260 WPS problems r18378
« previous next »
  • Print
Pages: [1]

Author Topic: E260 WPS problems r18378  (Read 1320 times)

Offline OldSchool

  • Member
  • *
  • Posts: 26
E260 WPS problems r18378
« on: September 01, 2008, 03:44:44 PM »
Hello,

I'm just getting back to Rockbox after a few months. I have a custom WPS that has been working with a build from last March and I wanted to update it to the new WPS tag syntax and (eventually) to upgrade it using viewports. I've loaded a current build (r18378) and checked the new tag syntax. This WPS never used %P or %m and I've revised the progress bar line to the new syntax (%pb|bmp|x|y|width|height|).

I simply cannot get the new WPS to "take effect". In fact, I don't seem to be able to use anything but the default WPS. I've even tried removing the %pb line entirely with no change in behavior.

I have both config.cfg and fixed.cfg files (stored under \.rockbox) that reference my WPS (wps: /.rockbox/wps/WhilePlaying.wps). The file, WhilePlaying.wps, is stored in \.rockbox\wps, and all the image files used by the WPS are stored in \.rockbox\wps\WhilePlaying as .bmp files.

I thought that there might be a problem with the encoding of the text files and confirmed that it's UTF-8, however, the Rockbox text editor does not seem to display them correctly, so I'm still suspicious about the encoding. I use MS Notepad in W2K to create the files and write them with UTF-8 encoding.

I've been through this forum and found some similar problems reported, but none of the suggestions seem to help. Did I miss something? Any suggestions on how to trouble-shoot this would be much appreciated.

In the meantime, I'll keep bashing away at it and let y'all know if I get anywhere.

Logged
"That boy is about as sharp as a bowlin' ball"
                                             ~ Foghorn Leghorn
                                               (cartoon character)

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: E260 WPS problems r18378
« Reply #1 on: September 02, 2008, 03:01:46 AM »
Tried a simulator for the target your WPS is aimed at and run it with -debugwps ?
Logged

Read The Manual Please

Offline OldSchool

  • Member
  • *
  • Posts: 26
Re: E260 WPS problems r18378
« Reply #2 on: September 02, 2008, 10:51:15 PM »
I tried "debugwps-background.bat". The WPS debugger didn't show up any problems and the simulator behaved the same way the target did (that is, no WPS screen).

Here's what I did find: When I edit the files with MS Notepad and do a "Save as...", with the encoding set to "UTF-8", the WPS doesn't work; if the encoding is set to "ANSI", it does. Any idea why? Shouldn't UTF-8 be identical if there aren't any non-ASCII characters in the file?

Thanks for suggesting the simulator though, it saves a lot of "head bashing" time.
Logged
"That boy is about as sharp as a bowlin' ball"
                                             ~ Foghorn Leghorn
                                               (cartoon character)

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: E260 WPS problems r18378
« Reply #3 on: September 03, 2008, 01:51:40 AM »
Quote from: OldSchool on September 02, 2008, 10:51:15 PM
Here's what I did find: When I edit the files with MS Notepad and do a "Save as...", with the encoding set to "UTF-8", the WPS doesn't work; if the encoding is set to "ANSI", it does. Any idea why? Shouldn't UTF-8 be identical if there aren't any non-ASCII characters in the file?
It is not identical, because Notepad adds a UTF-8 BOM to the beginning of the file (0xef 0xbb 0xbf).
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline OldSchool

  • Member
  • *
  • Posts: 26
Re: E260 WPS problems r18378
« Reply #4 on: September 03, 2008, 12:48:39 PM »
I gather the BOM is optional for UTF-8. Apparently, some editors (Notepad, Wordpad)put it in and others don't.

Oh well, it's been one of those "learning experiences".

Thanks.
Logged
"That boy is about as sharp as a bowlin' ball"
                                             ~ Foghorn Leghorn
                                               (cartoon character)

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

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.087 seconds with 22 queries.