Tutorial MB4 Resource pack/unpack

MagicalUnicorn

Moderator
Staff member
Moderator
Developer
Joined
Jul 4, 2018
Messages
4,712
Likes
4,122
Points
248
#21
mb4_resource_tool.exe looks on the header of the file, so extension doesn`t matter.
Oh ok :) !
mb4_resource_tool.exe looks on the header of the file, so extension doesn`t matter.

but I was able to reproduce the error described by r755:
if you use mb4_resource_tool.exe on a *.res file, you`ll get the *.res.res output file.
and if both of these files (*. res and * .res.res) are in the same directory, WatchFace.exe seems to have problems locaiting the file.
to fix this, you need to rename either of the two files to make their names different.
It's why I was thinking extension was important ^^.
 
Joined
Jul 21, 2018
Messages
74
Likes
31
Points
23
#22
send me the reources, you are trying to unpack, and/or the log file. otherwise i can`t help you.
i tested this tool on official resources v56-68 and on some custom resources - didn`t face any problems or errors.
sorry but how do i send the log file if there's no folder generated after drag the ~3.5mb of unpacked res onto watchface.exe?
im sorry, it generated .res file not .bin and i was tried to unpack original res v62
 

AdrianoA3

New member
Joined
Oct 21, 2019
Messages
11
Likes
4
Points
3
#29
Fatal|System.ArgumentException: File 'header.json' or 'version' should exists in the folder with unpacked images. Res-file couldn't be created
em WatchFace.Program.PackResources(String inputDirectory) na C:\Users\??\Desktop\mi4\valeronm-amazfitbiptools_mi4_res\WatchFace\Program.cs:linha 247
em WatchFace.Program.Main(String[] args) na C:\Users\??\Desktop\mi4\valeronm-amazfitbiptools_mi4_res\WatchFace\Program.cs:linha 130

And this is what I get when try to repack any theme path
 

NiTroGen

Active member
Joined
Jun 29, 2019
Messages
91
Likes
105
Points
43
#32
Try moving the folder to your root directory, eg. C:\mi4\res or any other folder without any special (non latin) characters in the path name, not ever underscore _
 
Last edited:

AdrianoA3

New member
Joined
Oct 21, 2019
Messages
11
Likes
4
Points
3
#33
Try moving the folder to your root directory, eg. C:\mi4\res or any other folder without any special (non latin) characters in the path name, not ever underscore _
Didn't work
There is no special characters on path name, even no spaces. Only common letters and numbers.
 
Joined
Oct 29, 2019
Messages
71
Likes
45
Points
23
#37
Made a small program for packing/unpacking resource files. You need .Net to run it

How to unpack:
1. Drag and drop the packed resource file with .bin extension (~ 1mb) onto mb4_resource_tool.exe
2. Next to the packed resource file, the unpacked file with .res extension (~ 3.5-4mb) should appear
3. Drag and drop the .res file onto WatchFace.exe

How to pack:
1. Drag and drop the resource folder onto WatchFace.exe
2. Drag and drop the file with .res extension (~ 3.5-4mb) onto mb4_resource_tool.exe
3. A ready-to-flash packed file with the extension .bin (~ 1mb) should appear

I do not bear responsibility for possible damaged devices!

Hello sir,
I 've been using your tool and it works flawlessly but when I apply the packed .bin resource files on my Mi Band 4 , everything remains the same , the images I had replaced are not showing up instead the older resource icons are there
Please assist ,

When i drag my folder to watchface.exe there is something written in red in the last
When i opened the text document it says something like this :
Fatal image (image number) is 9bits/pixel more than header allows

But i am sure i changed the PNG to PNG8 with 256 colors,

Please help
 
Last edited:
Joined
Aug 26, 2018
Messages
84
Likes
51
Points
23
#38
I have problem with unpacking v83 resource

The file mb4_resource_tool.exe can create the 4mb file but WatchFace.exe can't unpack the 4mb file to folders and pics

does it need updates ?
 

isaacbala

New member
Joined
Nov 5, 2019
Messages
1
Likes
0
Points
1
#40
The firmware I download is supposedly Chinese / global version but the files have an Avengers watch face and some other icons I have never seen before on my Mi Band 4 including the Xiao AI logo and everything. Is that normal? Will my Mi Band 4 become bricked if I flash firmware that has other files not meant for my particular version?
 

Trusted Store

Members online

No members online now.

Our Telegram Channel

Which color of official strap would you like to buy for your Mi Band 3?

  • Black

    Votes: 2,156 52.8%
  • Deep Blue

    Votes: 1,198 29.3%
  • Redish Orange

    Votes: 729 17.9%

Forum statistics

Threads
2,454
Messages
40,621
Members
211,996
Latest member
Truttster
Top