• 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 unpacking

Topics related to the creation, development, and designing of the watch faces.

Moderators: asoo, Watchmens

Forum rules
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [GTR 3 Pro]
All communication in this branch should only be in English.
Post Reply
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Watchface unpacking

Post by SPLESHER »

Hey,
I wanted to edit another watchface/watchfaces, but I'm struggling with unpacking it.
Sasha's editor doesn't work (says unrecognized structure of watchface),
I tried unpacking it via Zmake program I found on net, but seems like colors are changed a bit, also I can't open json file or bin to see positions for everything for at least recreating it in Sasha's editor because it shows null values
These are watchfaces I'd like to unpack and edit:
https://amazfitwatchfaces.com/gtr/view/39798
https://amazfitwatchfaces.com/gtr/view/36289
Spoiler
Image

Image
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

The json file opens fine. But there is nothing useful in it. The bin files cannot be opened. That's why you can't edit this watch face.
The only thing you can do is unpack images from it.
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Post by SPLESHER »

SashaCX75 wrote: 15 Sep 2024, 16:35
The json file opens fine. But there is nothing useful in it. The bin files cannot be opened. That's why you can't edit this watch face.
The only thing you can do is unpack images from it.
How do they build these watchfaces then, if there is no positions or smth in json file?
I would recreate this watchface if there would be positions but there aren't any.
What's about image colors after unpacking with zmake? Is there better tool for unpacking them?
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

The json file is just a manifest. It has never had any widget parameters in it. All widgets are in the js file. But sometimes the js file is encoded in bin and then you can't do anything with it.
I don't know for zmake. In my editor if you select the correct model then the images are extracted. Even if you can't recognise the watch face code, the images will still be extracted to the folder.
You can also just copy the watch face images as from the archive and then convert them with this utility
https://www.dropbox.com/scl/fi/nzw0e873 ... bvlpf&dl=0
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Post by SPLESHER »

SashaCX75 wrote: 16 Sep 2024, 18:05
The json file is just a manifest. It has never had any widget parameters in it. All widgets are in the js file. But sometimes the js file is encoded in bin and then you can't do anything with it.
I don't know for zmake. In my editor if you select the correct model then the images are extracted. Even if you can't recognise the watch face code, the images will still be extracted to the folder.
You can also just copy the watch face images as from the archive and then convert them with this utility
https://www.dropbox.com/scl/fi/nzw0e873 ... bvlpf&dl=0
I see, so best way is to just resize preview and make it myself i guess,
One more question, how do they make numbers following pointer or progress bar? Is it some coding or it can be done somehow in your program? You can see it here, with steps, heartrate or battery levels.
Also what's about sleep? I'm blind or I don't see Sleep element :/ https://amazfitwatchfaces.com/gtr/view/39798
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

No, you can't do that in the editor.
You can make a blank for it in the editor. But then you need to add code to the watch face, which will change the angle of data rotation depending on its value.
There is no sleep widget in the editor and is not expected in the near future.
u6gljnuj4l
WF maker
Posts: 10
Joined: 02 Jul 2019, 01:16
Location: unknown
Contact:

Post by u6gljnuj4l »

Hi, I’m also working on editing Amazfit watchfaces and facing similar problems with unpacking BIN files. SashaCX75, your tip about extracting images and using a utility is helpful. Could you share how to add code for rotating numbers or progress bars?
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

@u6gljnuj4l
If you need to display data at an angle, see how it is done in the editor. Depending on the model and the data to be displayed, the method may differ.
u6gljnuj4l
WF maker
Posts: 10
Joined: 02 Jul 2019, 01:16
Location: unknown
Contact:

Post by u6gljnuj4l »

Thanks for the tip. I'll check the editor for examples.
Post Reply

Return to “Watchfaces discussion”

Who is online

Users browsing this forum: No registered users and 1 guest