Unable to convert .sav into .json
stellaris2046 opened this issue · 0 comments
Common issues before reporting
NO
Have you modified the save files
NO
Have you tried the latest release
YES
Describe the bug
Can‘t convert level.sav into level.sav.json with the code below.
PS D:\desktop\pal fix kit> python3 convert.py "C:\Users\13922\Documents\Tencent Files\1584137228\FileRecv\Level.sav"
Converting C:\Users\13922\Documents\Tencent Files\1584137228\FileRecv\Level.sav to JSON, saving to C:\Users\13922\Documents\Tencent Files\1584137228\FileRecv\Level.sav.json
Decompressing sav file
Traceback (most recent call last):
File "D:\desktop\pal fix kit\convert.py", line 160, in
main()
File "D:\desktop\pal fix kit\convert.py", line 71, in main
convert_sav_to_json(
File "D:\desktop\pal fix kit\convert.py", line 105, in convert_sav_to_json
raw_gvas, _ = decompress_sav_to_gvas(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\desktop\pal fix kit\palworld_save_tools\palsav.py", line 35, in decompress_sav_to_gvas
uncompressed_data = zlib.decompress(data[12:])
^^^^^^^^^^^^^^^^^^^^^^^^^^
zlib.error: Error -3 while decompressing data: invalid block type
Copy of .sav or .sav.json files
Level.zip