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
translations translations
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
| | |-+  Error Uploading Theme
« previous next »
  • Print
Pages: [1]

Author Topic: Error Uploading Theme  (Read 1945 times)

Offline chrisbagnell

  • Member
  • *
  • Posts: 2
Error Uploading Theme
« on: December 02, 2023, 03:41:12 PM »
Hello, I am trying to upload my first theme and getting a pretty long error. I am not sure where to start and how to fix it. It is using a lot of code from iVideo and I see no errors just by looking at the code. The theme works fine on my ipod classic. Any help is appreciated!

"Your wps didn't pass checkwps. Here's the output: Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... WPS parsing failure Error on line 37. %T(60,0,200,24,&quickscreen) ^ 'Parser callback returned error' Here Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsing failure Error on line 37. %T(60,0,200,24,&cancel) ^ 'Parser callback returned error' Here Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... WPS parsing failure Error on line 37. %T(60,0,200,24,&quickscreen) ^ 'Parser callback returned error' Here Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsing failure Error on line 37. %T(60,0,200,24,&cancel) ^ 'Parser callback returned error' Here Checking .rockbox/wps/ModernBox.wps... WPS parsing failure Error on line 37. %T(60,0,200,24,&quickscreen) ^ 'Parser callback returned error' Here Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsing failure Error on line 37. %T(60,0,200,24,&cancel) ^ 'Parser callback returned error' Here Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsed OK Checking .rockbox/wps/ModernBox.wps... WPS parsing failure Error on line 70. %ax%Vl(currenta,120,70,190,18,2)%Vf(FFFFFF)%Vb(FFFFFF) ^ 'Parser callback returned error' Here Checking .rockbox/wps/ModernBox.sbs... WPS parsed OK Checking .rockbox/wps/ModernBox.fms... WPS parsing failure Error on line 67. %V(286,6,25,12,-)%Vf(b8b9bb)%Vb(FFFFFF) ^ 'Parser callback returned error' Here Checking .rockbox/wps/ModernBox.wps... Couldn't open .rockbox/wps/ModernBox/BatteryStatus.bmp WPS parsing failure"

Logged

Offline Dook

  • Member
  • *
  • Posts: 66
    • D00k.net
Re: Error Uploading Theme
« Reply #1 on: December 03, 2023, 09:45:15 AM »
As far as I'm aware, the issue here is the %T tags. They are tags that only work on touchscreen devices, since they require touch to perform the set action. The theme uploader is quite strict, so even if it runs on device and is entirely "legal" in a sense, it will reject the theme.

For now I'd say try removing these tags and see what happens. It is a little bit strange that it can't open BatteryStatus.bmp, If you have any further issues, consider uploading the code to github or an equiavaent and I'll take a look over it.
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 792
Re: Error Uploading Theme
« Reply #2 on: December 03, 2023, 01:47:08 PM »
Can't tell without looking at the entire theme, but sometimes you get problems because of case-sensitivity.  E.g. if the file is named batterystatus.bmp and the script tries to open BatteryStatus.bmp it will complain.  I _think_ that means even themes that run OK in the simulator on Windows (which is not case sensitive) can fail the syntax checker IIRC.
Logged

Offline Dook

  • Member
  • *
  • Posts: 66
    • D00k.net
Re: Error Uploading Theme
« Reply #3 on: December 03, 2023, 01:59:15 PM »
Quote from: Frankenpod on December 03, 2023, 01:47:08 PM
Can't tell without looking at the entire theme, but sometimes you get problems because of case-sensitivity.  E.g. if the file is named batterystatus.bmp and the script tries to open BatteryStatus.bmp it will complain.  I _think_ that means even themes that run OK in the simulator on Windows (which is not case sensitive) can fail the syntax checker IIRC.

Checking on linux at least, themes fail to load if the case doesn't match the file called. The error could is actually quite similar though to the theme uploader output chris provided, "Couldn't load '/.rockbox/wps/themify/Battery.bmp'".
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 792
Re: Error Uploading Theme
« Reply #4 on: December 04, 2023, 03:43:19 AM »
Quote from: Dook on December 03, 2023, 01:59:15 PM
Quote from: Frankenpod on December 03, 2023, 01:47:08 PM
Can't tell without looking at the entire theme, but sometimes you get problems because of case-sensitivity.  E.g. if the file is named batterystatus.bmp and the script tries to open BatteryStatus.bmp it will complain.  I _think_ that means even themes that run OK in the simulator on Windows (which is not case sensitive) can fail the syntax checker IIRC.

Checking on linux at least, themes fail to load if the case doesn't match the file called. The error could is actually quite similar though to the theme uploader output chris provided, "Couldn't load '/.rockbox/wps/themify/Battery.bmp'".

That makes sense, as the issue is the different behaviour of Windows and Linux.  Making and testing themes (with the simulator) under Windows you don't actually see the case-sensitivity problems, I find...then you discover them with the theme checker when you upload them, as that clearly runs under linux.
Also IIRC if a theme had any touch-screen stuff left in it, it produced errors if you tried to upload it for a non-touchscreen target.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1193
Re: Error Uploading Theme
« Reply #5 on: December 04, 2023, 07:39:07 AM »
Inside rockbox we use case sensitive UNIX paths as well
and as the sim just kinda runs on top of the existing FS
I can see where that could bring out some issues
Logged

Offline chrisbagnell

  • Member
  • *
  • Posts: 2
Re: Error Uploading Theme
« Reply #6 on: December 10, 2023, 12:14:48 AM »
Quote from: Dook on December 03, 2023, 09:45:15 AM
As far as I'm aware, the issue here is the %T tags. They are tags that only work on touchscreen devices, since they require touch to perform the set action. The theme uploader is quite strict, so even if it runs on device and is entirely "legal" in a sense, it will reject the theme.

For now I'd say try removing these tags and see what happens. It is a little bit strange that it can't open BatteryStatus.bmp, If you have any further issues, consider uploading the code to github or an equiavaent and I'll take a look over it.

Thank you, I have been burnt out from trying to figure out the error and it was BatteryStatus. the file name is "batteryStatus" and the wps file was the only one with an incorrect file name. Cheers!
Logged

Offline Dook

  • Member
  • *
  • Posts: 66
    • D00k.net
Re: Error Uploading Theme
« Reply #7 on: December 10, 2023, 08:51:22 AM »
Fantastic news! Was just checking out the theme and looks great, I remember seeing you post about this online before. Love that USB screen especially, keep up the great work!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Error Uploading Theme
 

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

Page created in 0.102 seconds with 21 queries.