xNul / palworld-host-save-fix

Fixes the bug which forces a player to create a new character when they already have a save. Useful for migrating maps from co-op to dedicated servers and from one dedicated server to another.
MIT License
887 stars 68 forks source link

(unicode error) 'unicodeescape' #122

Closed ToxsinCode closed 5 months ago

ToxsinCode commented 5 months ago

python fix-host-save.py "C:\Program Files\uesave\bin\uesave.exe" "C:\Users\HBGTR\Documents\Temporary Server File Folder\A46C11A882E540EFACA48F3F29BD1383" 7873A33F000000000000000000000000 D48F1DF40000000000000000 File "", line 1 python fix-host-save.py "C:\Program Files\uesave\bin\uesave.exe" "C:\Users\HBGTR\Documents\Temporary Server File Folder\A46C11A882E540EFACA48F3F29BD1383" 7873A33F000000000000000000000000 D48F1DF40000000000000000 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 16-18: truncated \uXXXX escape

I'm not particularly familiar with python, so I apologize if this is very simple

ToxsinCode commented 5 months ago

I have also tried a suggestion I found online, changing it to

python fix-host-save.py "C:\Program Files\uesave\bin\uesave.exe" "C:\Users\HBGTR\Documents\Temporary Server File Folder\A46C11A882E540EFACA48F3F29BD1383" 7873A33F000000000000000000000000 D48F1DF40000000000000000

But then I get this

python fix-host-save.py "C:\Program Files\uesave\bin\uesave.exe" "C:\Users\HBGTR\Documents\Temporary Server File Folder\A46C11A882E540EFACA48F3F29BD1383" 7873A33F000000000000000000000000 D48F1DF40000000000000000 File "", line 1 python fix-host-save.py "C:\Program Files\uesave\bin\uesave.exe" "C:\Users\HBGTR\Documents\Temporary Server File Folder\A46C11A882E540EFACA48F3F29BD1383" 7873A33F000000000000000000000000 D48F1DF40000000000000000

xNul commented 5 months ago

Could you provide a screenshot of your window with the whole error? It looks like you're trying to run the code in a very weird way

xNul commented 5 months ago

It looks like you were trying to run the python command while already in the Python interpreter. The command was supposed to be run in Command Prompt.