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 70 forks source link

Unknown issue for me #1

Closed ow1337 closed 9 months ago

ow1337 commented 9 months ago

WARNING: Running this script WILL change your save files and could potentially corrupt your data. It is HIGHLY recommended that you make a backup of your save folder before continuing. Press enter if you would like to continue.

Traceback (most recent call last): File "C:\Users\owl337\AppData\Local\pal\Saved\SaveGames\76561198000627022\8013B81E42219F64AD1914Ac81822C28\fix-host-save.py", line 197, in main() File "C:\Users\owl337\AppData\Local\pal\Saved\SaveGames\76561198000627022\8013B81E42219F64AD1914Ac81822C28\fix-host-save.py", line 41, in main sav_to_json(uesave_path, level_sav_path) File "C:\Users\owl337\AppData\Local\pal\Saved\SaveGames\76561198000627022\8013B81E42219F64AD1914Ac81822C28\fix-host-save.py", line 90, in sav_to_json with open(file, 'rb') as f: ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\owl337\Desktop\my_pal_save/Level.sav' PS C:\Users\owl337\AppData\Local\pal\Saved\SaveGames\76561198000627022\8013B81E42219F64AD1914Ac81822C28>

skazazes commented 9 months ago

Have not run the script myself but a quick glance at the code makes me think its a problem with assumptions made about the format of the filepath you call the script with, probably an OS thing.

Again I have not run the script myself but I would try replacing the backslashes with forward slashes in the command. It MAY work...

IE: C:/Users/owl337/Desktop/my_pal_save/ instead of C:\Users\owl337\Desktop\my_pal_save/

skazazes commented 9 months ago

Have not run the script myself but a quick glance at the code makes me think its a problem with assumptions made about the format of the filepath you call the script with, probably an OS thing.

Again I have not run the script myself but I would try replacing the backslashes with forward slashes in the command. It MAY work...

IE: C:/Users/owl337/Desktop/my_pal_save/ instead of C:\Users\owl337\Desktop\my_pal_save/

Ran some tests. this does not seem to be the issue.

xNul commented 9 months ago

There are many things going wrong here:

  1. Try setting up and running the dedicated server before you try to run the script. You will want to move your save to your dedicated server and be able to connect to it.
  2. The co-op host must create a new character on the dedicated server.
  3. Shutdown the server, take the dedicated server save which should now have a new .sav file in the Players folder, copy it and back it up somewhere.
  4. Run the script on the dedicated server save after you have obtained all of the three pieces of information you need: the co-op host's GUID, the path to uesave.exe, and the path to your dedicated server save.
  5. Don't use the exact example command I gave, yours will be different
ow1337 commented 9 months ago

How should i run the script on the rented palworld server?

xNul commented 9 months ago

I've never used it before so idk

ow1337 commented 9 months ago

Hmm, so theres no chance? I've my ID what is my palworld server using, but the script just needs to run on my PC and not on the deidcated server?