cheahjs / palworld-save-tools

Tools for converting Palworld .sav files to JSON and back
MIT License
785 stars 68 forks source link

0.4.1 Error when dragging Level.sav ontop of it #11

Closed PhoenixICE closed 7 months ago

PhoenixICE commented 7 months ago

Python 3.12.1 This will convert the save file "C:\Users\Phoenix\Downloads\palworld-save-tools-windows-v0.4.1\Level.sav" in JSON format in back to .sav format. This will overwrite your existing .sav file! Continue? [Y,N]?Y Loading JSON from C:\Users\Phoenix\Downloads\palworld-save-tools-windows-v0.4.1\Level.sav Traceback (most recent call last): File "C:\Users\Phoenix\Downloads\palworld-save-tools-windows-v0.4.1\convert-single-json-to-sav.py", line 39, in <module> main() File "C:\Users\Phoenix\Downloads\palworld-save-tools-windows-v0.4.1\convert-single-json-to-sav.py", line 28, in main data = json.load(f) ^^^^^^^^^^^^ File "C:\Users\Phoenix\AppData\Local\Programs\Python\Python312\Lib\json\__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "C:\Users\Phoenix\AppData\Local\Programs\Python\Python312\Lib\json\__init__.py", line 341, in loads s = s.decode(detect_encoding(s), 'surrogatepass') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd4 in position 1: invalid continuation byte Press any key to continue . . . Save is from linux if that matters