cheahjs / palworld-save-tools

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

Unable to Convert .sav to json #33

Closed Newboy37 closed 9 months ago

Newboy37 commented 9 months ago

I'm trying to get a level.sav converted to json, but when I do i get the following error:

Python 3.7.9 This will convert the save file "C:\Users\Rob\AppData\Local\Pal\Saved\SaveGames\76561197968543780\ECFEC12B4F4040CC8369D58C254B6179\Level.sav" to JSON format. Continue? [Y,N]?Y Traceback (most recent call last): File "convert-single-sav-to-json.py", line 7, in from lib.palsav import * File "C:\Users\Rob\OneDrive\Desktop\New folder (2)\lib\palsav.py", line 130, in def uesave_to_json_params(uesave_path: str) -> list[str]: TypeError: 'type' object is not subscriptable Press any key to continue . . .

I'm not savvy with python or coding at all, and unsure how to resolve this issue.

cheahjs commented 9 months ago

Update Python to 3.12, I ended up using features only available in newer versions of Python. Will try and fix this later.

kucinkmiaw commented 9 months ago

do i need to delete the older version of python?

Newboy37 commented 9 months ago

Update Python to 3.12, I ended up using features only available in newer versions of Python. Will try and fix this later.

That resolved the issue. Now I have a massive JSON i don't know how to navigate lol. Always one thing...