• Administrator
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

Watchface Help

Archive closed topics

Moderators: Internal error, Watchmens

Locked
User avatar
stupdude2
WF maker
Posts: 15
Joined: 01 Oct 2018, 14:58
Location: Oneonta, AL
Contact:

Watchface Help

Post by stupdude2 »

I'm experiencing some strange behavior on a new watchface. It's an edited version of xunning's PB face.

https://amazfitwatchfaces.com/bip/view/?id=20653

As you can see from the preview that Feb and July have a strange 0 stuck to the end. On the watch, it doesn't show those, but sometimes the step numbers will disappear or show up in the wrong place. I can't see anything obvious from the code. Any help would be appreciated.

Code: Select all

{
    "Background": {
        "Image": {
            "X": 0,
            "Y": 0,
            "ImageIndex": 0
        }
    },
    "Time": {
        "Hours": {
            "Tens": {
                "X": 4,
                "Y": 41,
                "ImageIndex": 100,
                "ImagesCount": 2
            },
            "Ones": {
                "X": 24,
                "Y": 41,
                "ImageIndex": 1,
                "ImagesCount": 10
            }
        },
        "Minutes": {
            "Tens": {
                "X": 83,
                "Y": 41,
                "ImageIndex": 1,
                "ImagesCount": 10
            },
            "Ones": {
                "X": 130,
                "Y": 41,
                "ImageIndex": 1,
                "ImagesCount": 10
            }
        },
        "AmPm": {
            "X": -50,
            "Y": -50,
            "ImageIndexAm": 20,
            "ImageIndexPm": 20
        }
    },
    "Date": {
        "WeekDay": {
            "X": 8,
            "Y": 4,
            "ImageIndex": 33,
            "ImagesCount": 7
        },
        "MonthAndDay": {
            "TwoDigitsMonth": false,
            "TwoDigitsDay": false,
            "Separate": {
                "Day": {
                    "TopLeftX": 75,
                    "TopLeftY": 7,
                    "BottomRightX": 100,
                    "BottomRightY": 26,
                    "Alignment": "TopCenter",
                    "Spacing": 2,
                    "ImageIndex": 11,
                    "ImagesCount": 10
                },
                "Month": {
                    "TopLeftX": -121,
                    "TopLeftY": 5,
                    "BottomRightX": 400,
                    "BottomRightY": 25,
                    "Alignment": "TopLeft",
                    "Spacing": -162,
                    "ImageIndex": 23,
                    "ImagesCount": 10
                }
            }
        }
    },
    "Activity": {
        "Steps": {
            "TopLeftX": 101,
            "TopLeftY": 150,
            "BottomRightX": 168,
            "BottomRightY": 169,
            "Alignment": "TopRight",
            "Spacing": 2,
            "ImageIndex": 11,
            "ImagesCount": 10
        },
        "Pulse": {
            "TopLeftX": 68,
            "TopLeftY": 150,
            "BottomRightX": 107,
            "BottomRightY": 169,
            "Alignment": "TopCenter",
            "Spacing": 2,
            "ImageIndex": 11,
            "ImagesCount": 10
        }
    },
    "Weather": {
        "Icon": {
            "CustomIcon": {
                "X": 38,
                "Y": 147,
                "ImageIndex": 40,
                "ImagesCount": 26
            }
        },
        "Temperature": {
            "Current": {
                "Number": {
                    "TopLeftX": 7,
                    "TopLeftY": 150,
                    "BottomRightX": 45,
                    "BottomRightY": 169,
                    "Alignment": "TopLeft",
                    "Spacing": 2,
                    "ImageIndex": 11,
                    "ImagesCount": 10
                },
                "MinusImageIndex": 66,
                "DegreesImageIndex": 67
            }
        }
    },
    "StepsProgress": {
        "Linear": {
            "StartImageIndex": 262,
            "Segments": [
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                }
            ]
        },
        "GoalImage": {
            "X": 78,
            "Y": 128,
            "ImageIndex": 68
        }
    }
}
User avatar
asoo
Posts: 2104
Joined: 03 Jan 2019, 01:48
Location: ͼͽ Thailand ͼͽ
Has thanked: 404 times
Been thanked: 2018 times

Post by asoo »

Your steps ImageIndex incorrect .
You start Index at number 0 to 8 no have number 9 in your ImageIndex

your "ImageIndex": 11 = number 0 but your number 9 "ImageIndex": is 10
so no have number 9 in your ImageIndex when ImagesCount to 10 watch face therefore showed incorrect image

My Fixed
PB Edit-_packed_animated.gif
PB Edit-_packed_animated.gif (28.23 KiB) Viewed 794 times
PB Edit-_packed.zip
BIN Fixed ( unzip before use )
(2.92 KiB) Downloaded 59 times
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
User avatar
stupdude2
WF maker
Posts: 15
Joined: 01 Oct 2018, 14:58
Location: Oneonta, AL
Contact:

Post by stupdude2 »

Brilliant! Thank you so much for your help!
Locked

Return to “Closed topics”

Who is online

Users browsing this forum: No registered users and 0 guests