Mino260806 / miwtool

A tool for manipulating Redmi Watch 2 Lite watchface files
GNU General Public License v3.0
35 stars 8 forks source link

Bug/Issue for RMSS coordinate_types #13

Open Domenick90 opened 1 year ago

Domenick90 commented 1 year ago

I can't figure out how to select the initial coordinate point. In my dial, the countdown starts at 90 degrees! See the screenshot. IMG_20221212_205205_tigr IMG_20221213_085540_tigr Nike_decoded.zip

Mino260806 commented 1 year ago

I think you can only control where it ends. You should rotate the image manually to be at the start and then choose the maximum degree of rotation. Did you figure out what the mask_unk_1 and mask_unk_2 do ? Maybe they will break something if you don't set them correctly

Domenick90 commented 1 year ago

It looks like unk mask 1 and 2 somehow affect this position, but I still can’t understand the regularity of their values, in different dials - different values!

Domenick90 commented 1 year ago

In original json for watchfases (amazfit gts) i see this code:

"StepsProgress": {
    "Circle": {
      "CenterX": 67,
      "CenterY": 132,
      "RadiusX": 41,
      "RadiusY": 41,
      "StartAngle": 214,
      "EndAngle": 501,
      "Width": 9,
      "Color": "0x000000000034C8ED",
      "Flatness": 0

In Redmi Watch2: { "x": 102, "y": 18, "type": { "category": "STEPS", "type": "PERCENTAGE", "format": "FORMAT_IMAGE", "coordinate_types": "RMSS" }, "mask": "images_6\\mask.png", "mask_max_value": 100, "mask_pivot_x": 58, "mask_pivot_y": 58, "mask_max_degrees": 3600, "mask_unk_1": 54, "mask_unk_2": 8, "static": "images_6\\static.png" },

Maybe mask_unk_1 and 2 its start and end angle or center x and y ?

Domenick90 commented 1 year ago

See this source code for Unpacker from m0tral: https://github.com/m0tral/UnpackMiColorFace - Maybe you can deal with these masks

Domenick90 commented 1 year ago

Did you figure out what the mask_unk_1 and mask_unk_2 do ? Maybe they will break something if you don't set them correctly

I figured it out. These are the coordinates of the starting point on the circle(mask.png) In stock watchfaces this coordinates match. in custom for some reason these values ​​do not change anything - the starting point is always on top.