• Amministratore
  •  
    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.

Moderatori: asoo, Watchmens

Regole del forum
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.
Rispondi
SPLESHER
Messaggi: 29
Iscritto il: 08 dic 2020, 12:11
Località: Poland
Has thanked: 1 time
Contatta:

Watchface unpacking

Messaggio da 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
Immagine

Immagine
Avatar utente
SashaCX75
Messaggi: 820
Iscritto il: 26 ott 2019, 15:18
Località: Ukraine
Has thanked: 13 times
Been thanked: 1030 times
Contatta:

Messaggio da 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
Messaggi: 29
Iscritto il: 08 dic 2020, 12:11
Località: Poland
Has thanked: 1 time
Contatta:

Messaggio da SPLESHER »

SashaCX75 ha scritto: 15 set 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?
Avatar utente
SashaCX75
Messaggi: 820
Iscritto il: 26 ott 2019, 15:18
Località: Ukraine
Has thanked: 13 times
Been thanked: 1030 times
Contatta:

Messaggio da 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
Messaggi: 29
Iscritto il: 08 dic 2020, 12:11
Località: Poland
Has thanked: 1 time
Contatta:

Messaggio da SPLESHER »

SashaCX75 ha scritto: 16 set 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
Avatar utente
SashaCX75
Messaggi: 820
Iscritto il: 26 ott 2019, 15:18
Località: Ukraine
Has thanked: 13 times
Been thanked: 1030 times
Contatta:

Messaggio da 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
Messaggi: 10
Iscritto il: 02 lug 2019, 01:16
Località: unknown
Contatta:

Messaggio da 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?
Avatar utente
SashaCX75
Messaggi: 820
Iscritto il: 26 ott 2019, 15:18
Località: Ukraine
Has thanked: 13 times
Been thanked: 1030 times
Contatta:

Messaggio da 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
Messaggi: 10
Iscritto il: 02 lug 2019, 01:16
Località: unknown
Contatta:

Messaggio da u6gljnuj4l »

Thanks for the tip. I'll check the editor for examples.
Rispondi

Torna a “Watchfaces discussion”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite