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

Tool to unpack gts 2 mini

This forum is designed to discuss existing tools for creating watch faces.

Moderators: asoo, lvpokka, Internal error, Watchmens

Forum rules
All communication in this branch should only be in English.
Post Reply
Max88
WF maker
Posts: 21
Joined: 30 May 2019, 17:54
Location: Italia
Has thanked: 13 times
Contact:

Tool to unpack gts 2 mini

Post by Max88 »

Hello guys, I need help about gts 2 mini.
It has passed a lot of time since when I did some wf for this watch, and now I totally forgot which tools to use and where to find them.
To start I'd need a tool to unpack wf, but I'm not able to find anything I could use on windows.
Thanks
User avatar
asoo
Posts: 2109
Joined: 03 Jan 2019, 01:48
Location: ͼͽ Thailand ͼͽ
Has thanked: 404 times
Been thanked: 2022 times

Post by asoo »

Max88 wrote: 23 Jan 2024, 14:15
Hello guys, I need help about gts 2 mini.
It has passed a lot of time since when I did some wf for this watch, and now I totally forgot which tools to use and where to find them.
To start I'd need a tool to unpack wf, but I'm not able to find anything I could use on windows.
Thanks
viewtopic.php?p=12537#p12537
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Max88
WF maker
Posts: 21
Joined: 30 May 2019, 17:54
Location: Italia
Has thanked: 13 times
Contact:

Post by Max88 »

asoo wrote: 23 Jan 2024, 14:34
Thank you. I had already seen that post, but that main.exe file doesn't work for me.
It doesn't unpack wf I have downloaded from this site.
Moreover, to be honest I haven't understood exactly how to use it.
I have imagined it was sufficient to download just the main.exe file and drag the bin I'm interested in on top of that exe.
User avatar
asoo
Posts: 2109
Joined: 03 Jan 2019, 01:48
Location: ͼͽ Thailand ͼͽ
Has thanked: 404 times
Been thanked: 2022 times

Post by asoo »

Max88 wrote: 23 Jan 2024, 21:11
asoo wrote: 23 Jan 2024, 14:34
Thank you. I had already seen that post, but that main.exe file doesn't work for me.
It doesn't unpack wf I have downloaded from this site.
Moreover, to be honest I haven't understood exactly how to use it.
I have imagined it was sufficient to download just the main.exe file and drag the bin I'm interested in on top of that exe.
You can view the command line by
Open "CMD" (Dos mode) and type main --help

Code: Select all

usage: main [-h] [--vergelite] [--gtr {42,47}] [--gtr2 {42,47}] [--gts] [--gts2] [--trexpro] [--oldformat]
            [--gts2mini] [--bipu] [--bip3] [--trex] [--x] [--file FILE [FILE ...]] [--to_raw] [--from_raw]
            [--border_alignment]

options:
  -h, --help            show this help message and exit
  --vergelite           force VergeLite watchface
  --gtr {42,47}         force GTR watchface
  --gtr2 {42,47}        force GTR2 watchface
  --gts                 force GTS watchface
  --gts2                force GTS2 watchface
  --trexpro             force TRexPro watchface
  --oldformat           force old json format for GTS2 or GTR2
  --gts2mini            force GTS2 Mini watchface
  --bipu                force Bip U watchface
  --bip3                force Bip 3 watchface
  --trex                force T-REX watchface
  --x                   force AmazfitX watchface
  --file FILE [FILE ...]
                        watchface.bin - unpacks watchface images and config watchface.json - packs config and
                        referenced images to bin file
  --to_raw              save raw header and resources
  --from_raw            generate bin from raw folder
  --border_alignment    draw border around aligned objects in preview
or you can see how to use main.exe in this link.
( in the topic "usage" )
https://github.com/Tnxec2/py_amazfit_to ... e/GTS2mini
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Max88
WF maker
Posts: 21
Joined: 30 May 2019, 17:54
Location: Italia
Has thanked: 13 times
Contact:

Post by Max88 »

asoo wrote: 24 Jan 2024, 02:02
You can view the command line by
Open "CMD" (Dos mode) and type main --help

Code: Select all

usage: main [-h] [--vergelite] [--gtr {42,47}] [--gtr2 {42,47}] [--gts] [--gts2] [--trexpro] [--oldformat]
            [--gts2mini] [--bipu] [--bip3] [--trex] [--x] [--file FILE [FILE ...]] [--to_raw] [--from_raw]
            [--border_alignment]

options:
  -h, --help            show this help message and exit
  --vergelite           force VergeLite watchface
  --gtr {42,47}         force GTR watchface
  --gtr2 {42,47}        force GTR2 watchface
  --gts                 force GTS watchface
  --gts2                force GTS2 watchface
  --trexpro             force TRexPro watchface
  --oldformat           force old json format for GTS2 or GTR2
  --gts2mini            force GTS2 Mini watchface
  --bipu                force Bip U watchface
  --bip3                force Bip 3 watchface
  --trex                force T-REX watchface
  --x                   force AmazfitX watchface
  --file FILE [FILE ...]
                        watchface.bin - unpacks watchface images and config watchface.json - packs config and
                        referenced images to bin file
  --to_raw              save raw header and resources
  --from_raw            generate bin from raw folder
  --border_alignment    draw border around aligned objects in preview
or you can see how to use main.exe in this link.
( in the topic "usage" )
https://github.com/Tnxec2/py_amazfit_to ... e/GTS2mini
Thank you again for help, but where do I have to open CMD and how?
Because if I write cmd in windows task and then I write main --help nothing happens

Edit: oh and I haven't understood how to use that main.exe, sorry.
User avatar
asoo
Posts: 2109
Joined: 03 Jan 2019, 01:48
Location: ͼͽ Thailand ͼͽ
Has thanked: 404 times
Been thanked: 2022 times

Post by asoo »

Max88 wrote: 24 Jan 2024, 08:39

Thank you again for help, but where do I have to open CMD and how?
Because if I write cmd in windows task and then I write main --help nothing happens

Edit: oh and I haven't understood how to use that main.exe, sorry.
Open CMD :
Spoiler
Image
command line for unpack
main --gts2mini --file yourwatchface.bin

command line for pack
main --gts2mini --file yourwatchface.json
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Max88
WF maker
Posts: 21
Joined: 30 May 2019, 17:54
Location: Italia
Has thanked: 13 times
Contact:

Post by Max88 »

asoo wrote: 24 Jan 2024, 09:05
Open CMD :
Spoiler
Image
command line for unpack
main --gts2mini --file yourwatchface.bin

command line for pack
main --gts2mini --file yourwatchface.json
Attachments
Screenshot 2024-01-24 101725.png
Screenshot 2024-01-24 101725.png (23.24 KiB) Viewed 3113 times
User avatar
asoo
Posts: 2109
Joined: 03 Jan 2019, 01:48
Location: ͼͽ Thailand ͼͽ
Has thanked: 404 times
Been thanked: 2022 times

Post by asoo »

if you want to use main.exe , main.exe must be in the same folder as file.bin that you want to unpack.

Or, if you don't want to copy main.exe into the same folder as file.bin, you can copy main.exe into the folder c:\windows or the folder where Windows is installed. Doing this, you can run main.exe anywhere.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Max88
WF maker
Posts: 21
Joined: 30 May 2019, 17:54
Location: Italia
Has thanked: 13 times
Contact:

Post by Max88 »

asoo wrote: 24 Jan 2024, 09:59
if you want to use main.exe , main.exe must be in the same folder as file.bin that you want to unpack.

Or, if you don't want to copy main.exe into the same folder as file.bin, you can copy main.exe into the folder c:\windows or the folder where Windows is installed. Doing this, you can run main.exe anywhere.
Ok, i got it. I have changed the working directory of cmd to the one where main and bin are.
I have given the command you wrote and unpack has worked.
Thank you a million for your kindness and patience
Post Reply

Return to “Watchfaces tools (discussion)”

Who is online

Users browsing this forum: No registered users and 1 guest