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

Issues with transferring a friends file #62

Closed Sylareh closed 7 months ago

Sylareh commented 7 months ago

Hi I was able to make the change for myself and a friend. I am just missing one more friend that does not seem to recognize him just yet.

I already went through the code a second time with no issues as listed below.

PS C:\Users\Sylareh\Desktop\UESAVE> python fix-host-save.py "C:\Users\Sylareh\.cargo\bin\uesave.exe" "C:\Users\Sylareh\Desktop\UESAVE\664259594D1CFA7C0DE0A183E8D5A851" 0CA4CFF0000000000000000000000000 8DD8790E000000000000000000000000
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.
>
File C:\Users\Sylareh\Desktop\UESAVE\664259594D1CFA7C0DE0A183E8D5A851/Level.sav uncompressed successfully
File C:\Users\Sylareh\Desktop\UESAVE\664259594D1CFA7C0DE0A183E8D5A851/Level.sav (type: 50) converted to JSON successfully
File C:\Users\Sylareh\Desktop\UESAVE\664259594D1CFA7C0DE0A183E8D5A851/Players/8DD8790E000000000000000000000000.sav uncompressed successfully
File C:\Users\Sylareh\Desktop\UESAVE\664259594D1CFA7C0DE0A183E8D5A851/Players/8DD8790E000000000000000000000000.sav (type: 49) converted to JSON successfully
Converted save files to JSON
JSON files have been parsed
Changes have been made
JSON files have been exported

Whenever I check the explorer window it looks like it just created the copies with GVAS and JSON, but when my 3rd friend comes in to play/ It still recognizes them as a new character.

image

image

in this pictures it shows what I see in my save folder. Any help appreciated since he is the last one missing to be moved into the game.

Sylareh commented 7 months ago

It seemed to work now but my friend is now in an infinite loading screen when joining me.

Nacixem commented 7 months ago

It seemed to work now but my friend is now in an infinite loading screen when joining me.

I think that happens when you try using the method for your friends new GUID/ old GUID. You are not supposed to do this apparently because Level.dat has all the character info

UlfMitHand commented 7 months ago

afiak your conversion is not done yet. it takes some time. it will give you a message with "have fun" when its really done.

this is how it looks like when its done. image

CannonPhelps commented 7 months ago

I second this issue! Changed the player file and now they as suck in a loading screen

xNul commented 7 months ago

Anyone experiencing this error should reference @UlfMitHand's comment because they are correct, the file hasn't finished applying in the screenshot @Sylareh posted. If you wait for it to finish, hopefully it will work correctly.