JannikBirn / palworld-host-save-fix

A variation of the Palworld Host Save Fix from xNul with additional bug fixes. This script can be used in a similar way to convert co-op games to dedicated server and vice versa.
Other
85 stars 7 forks source link

Game is still forcing me into creating a new character #12

Open wowbanhbao opened 9 months ago

wowbanhbao commented 9 months ago

10 tried using the application and whenever it was used there would be an error saying there wasn't a json file for the save or a NameError saying "name 'exit' is not defined" and it gave a code of [5388] failed to execute script 'gui' due to unhandled exception. And on the rare occasion that the file would work and it gave me the confirmation that the data was transferred, whenever I logged on it would still tell me to create a new character.

Kazuma18 commented 9 months ago

bug

JannikBirn commented 9 months ago

I just pushed a potential fix, please try again with this release: https://github.com/JannikBirn/palworld-host-save-fix/releases/tag/v.0.1.2 Please use a backup of the save state before you ran the script.

wowbanhbao commented 9 months ago

How do I use one of my backups? Do I just copy the files from the save into the folder with the server name?

JannikBirn commented 9 months ago

Well, in the best case you made a copy of your whole save folder before you applied the script. If not you can try to copy the files out of the backup folder and replace the current files, but I highly recommend that you make a backup before you do that (a copy of the folder and put it somewhere save)

wowbanhbao commented 9 months ago

After I installed this version, I used it and it said it migrated the character data, but when logging back on I still didn't have my old data and it prompted me to make a new character. After trying to do it again its giving me the same error as before where it says something about 'gui' not being executed then closing the application.

wowbanhbao commented 9 months ago

image

SplexArts commented 9 months ago

same issue friday it worked and today sunday i get the same error

JannikBirn commented 9 months ago

The exception is thrown inside the part of the https://github.com/cheahjs/palworld-save-tools so it would be interesting if you can try to use this tool to convert your Level.sav to JSON and if you get the same error. If so, you can open an issue on the https://github.com/cheahjs/palworld-save-tools repository, maybe the author is able to fix it.

SplexArts commented 9 months ago

nope dont worked i wrote now to the authors

Astreo80 commented 9 months ago

nope dont worked i wrote now to the authors

Did you get any sort of reply?

SplexArts commented 9 months ago

Got the answer image

Astreo80 commented 9 months ago

Got the answer image

Thanks! Were you able to find a way to fix it? I have save files from before the crash and error backed up as well

SplexArts commented 9 months ago

I dont have a fix at the moment

JannikBirn commented 9 months ago

Got the answer image

Did you actually used xNul's script as well or was it just mine?

SplexArts commented 9 months ago

the last days i used your script and now i tested the xNuls script so far it worked but the next error do i get is this here image

JannikBirn commented 9 months ago

Yeah sounds like your save file somehow got corrupted by the scripts. You probably have to rollback to a backup.

sparkbugz commented 9 months ago

I also have this issue for PlayerCharacterHandle.

nsguan commented 9 months ago

So ive been playing around with the tool, figured some stuff out. I have three players A: player with corrupted file (all null bytes) B: normal player C: lvl 0 player So we were trying this fix for our dedicated server and followed the video guide by Phyrex Techs. We have 3 player A's on our server and the fix would give us a FileNotFound error like the one above. I tried migrating a player B to a player C and it worked perfectly however. Does anyone have any idea why certain player.sav are being filled with null bytes? I can't convert them into json either using cheahjs's converter (for obvious reasons).

nsguan commented 9 months ago

So ive been playing around with the tool, figured some stuff out. I have three players A: player with corrupted file (all null bytes) B: normal player C: lvl 0 player So we were trying this fix for our dedicated server and followed the video guide by Phyrex Techs. We have 3 player A's on our server and the fix would give us a FileNotFound error like the one above. I tried migrating a player B to a player C and it worked perfectly however. Does anyone have any idea why certain player.sav are being filled with null bytes? I can't convert them into json either using cheahjs's converter (for obvious reasons).

Also I'd like to note that Player A is still showing up in the GUI even though the actual .sav file is filled with null bytes, im guessing it got that data (name and level) from the level.sav and not the playeruid.sav

SplexArts commented 9 months ago

Yeah sounds like your save file somehow got corrupted by the scripts. You probably have to rollback to a backup.

I done it but get the same error

sparkbugz commented 9 months ago

the last days i used your script and now i tested the xNuls script so far it worked but the next error do i get is this here image

The reason the handle error happens is that you may not have uploaded the new Level.sav that gets made with the tool. That's what I was doing wrong.

JannikBirn commented 9 months ago

Ok at least some progress here. So the problem is that the player is still inside your Level.sav but the .sav corresponding to the player inside the players folder is missing. This might happen if you used xNuls script before mine and is a sign of a "corrupted" save state. If possible role back to a previous backup since a correct save state is currently necessary for the script to execute properly.

Axsgranted commented 9 months ago

Ok at least some progress here. So the problem is that the player is still inside your Level.sav but the .sav corresponding to the player inside the players folder is missing. This might happen if you used xNuls script before mine and is a sign of a "corrupted" save state. If possible role back to a previous backup since a correct save state is currently necessary for the script to execute properly.

Ya I actually deleted my comment after i realized what the issue was. I got the right player save file and it worked fine. I uploaded everything, started server and it works!

wjvanpatten commented 3 months ago

Hi Jannik, just tried this fix again in August 2024. I'm getting a different error (see screen shot below). Have confirmed that the save file isn't corrupted.

Basically trying to move a friend invite code server (i.e., "Join Multiplayer Game (Invite Code)" which I think these are hosted on steam's own servers) to my own fully dedicated server. When I launch my dedicated server, the original host's character is inaccessible, while non host characters are ported in fine to the dedicated server. I get the following error (see below). Maybe the source code needs to be updated to account for new character/file properties?

palworld error

Dennijr commented 2 months ago

i have the same problem as @wjvanpatten sadly

EDIT: looking at palworld-save-tools (used by this tool), their tool was updated 2 months ago to support UInt32Property, so theres a possibility that no changes are necessary and a new EXE just needs to be compiled

of note; the latest EXE fails windows defender virus check, the second latest does not