mib2-toolbox
mib2-toolbox copied to clipboard
compress-mcf.py - struct.error: 'i' format requires -2147483648 <= number <= 2147483647
Hi, i'm trying to re-compress my just extracted skin1 folder without any changes and getting this error with Python 3.12:
compress-mcf.py .\skin1\images.mcf .\skin1\images_new.mcf .\skin1\Unsorted\
original-file incorrect magic!
size of TOC: 42880
number of files: 2680
data start: 42936
IMG ;1;8;12;4;1;1606336533;1;1;4356;1;420932218
IMG ;2;8;12;4;1;4028075487;1;1;4356;1;3052432344
Traceback (most recent call last):
File "compress-mcf.py", line 118, in <module>
struct_data = struct_data + struct.pack('<4siiiiiihhhh', type.encode("UTF-8"), file_id, always_8, zsize,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: 'i' format requires -2147483648 <= number <= 2147483647
any advices how to fix?