Mino260806 / miwtool

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

RuntimeError: Unkown header #9

Closed Domenick90 closed 1 year ago

Domenick90 commented 1 year ago

PS C:\Temp\RedmiWatch2SOFT\miwtool-main> python.exe main.py --decode C:\Temp\RedmiWatch2SOFT\miwtool-main\Multifunction_Date.bin --output C:\Temp\RedmiWatch2SOFT!WacthFaces\output\Multi Traceback (most recent call last): File "main.py", line 53, in decoder = WatchFaceDecoder(input_file) File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 19, in init self.parse_file() File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 29, in parse_file raise RuntimeError("Unkown header") RuntimeError: Unkown header

Multifunction_Date.bin.zip

Mino260806 commented 1 year ago

Why is the header 0 in this file ? Where did you get it from ? Did you edit anything manually ? The header should indicate the file format and it has to be the same for all watchfaces.

Domenick90 commented 1 year ago

Why is the header 0 in this file ? Where did you get it from ? Did you edit anything manually ? The header should indicate the file format and it has to be the same for all watchfaces.

Sorry, im found original WatchFace. It is ok. Its my mistake.

Mino260806 commented 1 year ago

Can you please clarify ? If this is an original unmodified WatchFace I will reopen the issue

Domenick90 commented 1 year ago

Can you please clarify ? If this is an original unmodified WatchFace I will reopen the issue

In the Multifunction_Date.bin.zip watchface attached, the header has been modified. (I forgot that I modified it) In the original file, everything is fine.