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
84 stars 6 forks source link

Only want to delete duplicated guilds #5

Open buweiyuqi opened 5 months ago

buweiyuqi commented 5 months ago

In my case, save migration has been done. And I don't want to migrate saves again because of the "cannot pick up pals" bug. I just want to delete the duplicated guilds and keep the only guild that contains me and my friends.

What should I do?

JannikBirn commented 5 months ago

The problem is that the script is currently dependent on a "instance" guid that was in the old player.sav file. I might take a look at it in the future if, the current version of the script is working without bugs. For now i will only support running the script on a save state before any migration happened. Sorry for the inconvenience.

sososun commented 5 months ago

@buweiyuqi 你可以参考下 https://github.com/cheahjs/palworld-save-tools/ 这个帖子,他提供了sav和json互转的工具,你可以转成json,手动删除多余的公会信息,然后再转成sav。我测试过三个存档,其中有两个是有效的。失效的那个存档问题在于我在json文件中并没有找到多余的公会信息,所以无法抓住帕鲁

buweiyuqi commented 5 months ago

@buweiyuqi 你可以参考下 https://github.com/cheahjs/palworld-save-tools/ 这个帖子,他提供了sav和json互转的工具,你可以转成json,手动删除多余的公会信息,然后再转成sav。我测试过三个存档,其中有两个是有效的。失效的那个存档问题在于我在json文件中并没有找到多余的公会信息,所以无法抓住帕鲁

我用https://github.com/xNul/palworld-host-save-fix 这个也可以转成json。我也是没有在json中找到多余的工会信息,或者也可能是我不知道应该删掉哪个字段。

buweiyuqi commented 5 months ago

The problem is that the script is currently dependent on a "instance" guid that was in the old player.sav file. I might take a look at it in the future if, the current version of the script is working without bugs. For now i will only support running the script on a save state before any migration happened. Sorry for the inconvenience.

Cool. Really appreciate your work. I think, a temporary solution might be manually deleting those duplicated duild data from the level.sav file. However, I just don't know which fields I should delete, even after converting it to json file.

JannikBirn commented 5 months ago

@buweiyuqi make sure to use this tool to convert the sav to json: https://github.com/cheahjs/palworld-save-tools/ The script from xNul will keep some fields as binary data thus making it harder to find the duplicated guild and edit it. Using the tool from cheahjs and searching for "guild" should give you more results.