Support and General Use > Theming and Appearance Customization

Mrobe 500i 640x480x32 WPS help needed

(1/1)

chansthename:
hi guys,

I'm still a noob at creating WPS files and I am having trouble getting a WPS that I made to work.

It is for the Mrobe MR-500i and there is a simulator available http://rasher.dk/rockbox/simulator/mrobe500-sim-w32.zip

Attached is the WPS and here is a copy of the debug info from the sim (I am not sure what it means)

--- Code: ---=====================
Loading '/.rockbox/wps/Brushedrobe.wps'
=====================
Viewport: '|'
  Subline: tokens 0 => 0
        [  0] = ( 2) Character '\n'
  Subline: tokens 1 => 1
        [  1] = ( 2) Character '\n'
  Subline: tokens 2 => 3
        [  2] = (72) backdrop image
        [  3] = ( 2) Character '\n'
  Subline: tokens 4 => 4
        [  4] = ( 2) Character '\n'
  Subline: tokens 5 => 5
        [  5] = ( 2) Character '\n'
  Subline: tokens 6 => 6
        [  6] = ( 2) Character '\n'
  Subline: tokens 7 => 6
Viewport: '-'
  Subline: tokens 7 => 8
        [  7] = (78) track album art conditional
        [  8] = ( 2) Character '\n'
  Subline: tokens 9 => 9
        [  9] = ( 2) Character '\n'
  Subline: tokens 10 => 9
Viewport: '-'
  Subline: tokens 10 => 10
        [ 10] = ( 2) Character '\n'
  Subline: tokens 11 => 12, progressbar
        [ 11] = (95) progressbar
        [ 12] = ( 2) Character '\n'
  Subline: tokens 13 => 13
        [ 13] = ( 2) Character '\n'
  Subline: tokens 14 => 13
Viewport: '-'
  Subline: tokens 14 => 14
        [ 14] = ( 2) Character '\n'
  Subline: tokens 15 => 16
        [ 15] = ( 5) align left
        [ 16] = ( 2) Character '\n'
  Subline: tokens 17 => 16
Viewport: '-'
  Subline: tokens 17 => 17
        [ 17] = ( 2) Character '\n'
  Subline: tokens 18 => 20
        [ 18] = ( 7) align center
        [ 19] = ( 3) String 'Now Playing'
        [ 20] = ( 2) Character '\n'
  Subline: tokens 21 => 20
Viewport: '-'
  Subline: tokens 21 => 25
        [ 21] = ( 3) String '     '
        [ 22] = (18) FIXME: TOKEN_MARKER_CONTROL_TOKENS + 19

        [ 23] = ( 3) String ' '
        [ 24] = (19) FIXME: TOKEN_MARKER_CONTROL_TOKENS + 20

        [ 25] = ( 2) Character '\n'
  Subline: tokens 26 => 28, scrolled
        [ 26] = ( 7) align center
        [ 27] = (88) track title
        [ 28] = ( 2) Character '\n'
  Subline: tokens 29 => 31, scrolled
        [ 29] = ( 7) align center
        [ 30] = (84) track album
        [ 31] = ( 2) Character '\n'
  Subline: tokens 32 => 34, scrolled
        [ 32] = ( 7) align center
        [ 33] = (80) track artist
        [ 34] = ( 2) Character '\n'
  Subline: tokens 35 => 34
Viewport: '-'
  Subline: tokens 35 => 37
        [ 35] = ( 7) align center
        [ 36] = ( 3) String 'Next Up'
        [ 37] = ( 2) Character '\n'
  Subline: tokens 38 => 37
Viewport: '-'
  Subline: tokens 38 => 42
        [ 38] = ( 3) String '    '
        [ 39] = (18) FIXME: TOKEN_MARKER_CONTROL_TOKENS + 19

        [ 40] = ( 3) String ' '
        [ 41] = (19) FIXME: TOKEN_MARKER_CONTROL_TOKENS + 20

        [ 42] = ( 2) Character '\n'
  Subline: tokens 43 => 45, scrolled
        [ 43] = ( 7) align center
        [ 44] = (88) next track title
        [ 45] = ( 2) Character '\n'
  Subline: tokens 46 => 48, scrolled
        [ 46] = ( 7) align center
        [ 47] = (84) next track album
        [ 48] = ( 2) Character '\n'
  Subline: tokens 49 => 51, scrolled
        [ 49] = ( 7) align center
        [ 50] = (80) next track artist
        [ 51] = ( 2) Character '\n'
  Subline: tokens 52 => 52
        [ 52] = ( 2) Character '\n'
  Subline: tokens 53 => 52
ERR: Failed parsing on line 62 : ERR: Invalid parameter list for token 54: "No token"
Skin buffer usage: 624916/2476348
--- End code ---

Thanks a lot

mc2739:
It appears to me that the viewport definitions in lines 63, 67, 71, and 75 go beyond the boundaries of the lcd.

For example (line 63):


--- Code: ---%V(420,402,73,100,1)
--- End code ---

The viewport starts 402 pixels down with a height of 100 pixels.  The bottom of the viewport would be at 502 pixels.  Since the height of the lcd is 480 pixels, this is out of bounds.

chansthename:
thanks a lot for that (I reversed the height and width)

Now I have fixed that up but I am still not having it display. I am now going through disabling as much code as I can to try and isolate the problem.

EDIT: it works, yay.

Turned out progressbar.bmp was named with a space.

However I am unhappy with the buttons used so I shall do some photoshop work before it is released (screenshots when completed)

EDIT again:

I have almost finished, A theme is ready to go other than a problem I have.

Whenever the fastforward command is used the play rewinds and freezes, the same happens with rewind(it rewinds but freezes). I have been able to sort out everything else.

Also would it be ok if I went through the wiki and edited it for the new coding structure?

Navigation

[0] Message Index

Go to full version