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
886 stars 65 forks source link

Unicodeescape Error #151

Closed jat0rz closed 4 months ago

jat0rz commented 5 months ago

python fix-host-save.py "C:\Program Files\uesave\uesave.exe" "C:\Temp\973569E445D6C70B5497E7A80B2D83F3" A3C50D3D000000000000000000000000 24DEFDD9000000000000000000000000 True

That is the command I am entering into Python 3.12 Command Prompt.

This is what I get in return:

Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

python fix-host-save.py "C:\Program Files\uesave\uesave.exe" "C:\Temp\973569E445D6C70B5497E7A80B2D83F3" A3C50D3D000000000000000000000000 24DEFDD9000000000000000000000000 True File "", line 1 python fix-host-save.py "C:\Program Files\uesave\uesave.exe" "C:\Temp\973569E445D6C70B5497E7A80B2D83F3" A3C50D3D000000000000000000000000 24DEFDD9000000000000000000000000 True ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 16-18: truncated \uXXXX escape

Any idea what I am doing wrong?

image

jat0rz commented 5 months ago

Sorry, realized I forgot the bin folder, but same results.

image

jat0rz commented 5 months ago

I also tried both 3.10 and 3.12 of Python. They both give the same errors.

jat0rz commented 5 months ago

Found a UI tool that does the conversion for you. No need to worry about this post anymore. Thanks!

xNul commented 4 months ago

fyi the problem you were having was you were entering the command in the Python interpreter instead of Command Prompt, but I'm glad you were able to find a solution anyway!