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

Server is laggy after fixing host save #97

Closed phc-11 closed 5 months ago

phc-11 commented 5 months ago

I used this tool with the intentions of moving my coop world to a dedicated linux server. I have gotten my server to function properly and all players have their equipment, levels, pals, etc. In the process of getting the server to this state I copied my coop world directly to the server, when I did this all players except for the host (me) had all of their data successfully brought over. At this point I wanted to try to stress test the server to see if it would be effective hosting. We had great results with the host having no data from the prior gameplay, very little lag and an overall good experience. I then used the tool to save the host save and ever since fixing the save there has been a large amount of lag and weird issues. For instance a lucky pal that was in the Pal base now acts as if it is wild, shines and twinkles and refuses to work. Just wondering if anyone has experienced anything similar.

Could I move the .sav for the host to the original world .../Players/ and remove the 000001.sav/00000.sav?

funkymango221 commented 5 months ago

were you able to fix this? I'm having the same problem now

phc-11 commented 5 months ago

Not yet however I had the same issue when I reverted to a different world that didn't have the host save fixed. Thinking it may be a resource shortage or the container I am using to host the server. May swap my server to Proxmox to get the most out of my hardware and edit my docker config for resource management and see what I can come up with.

Have you had lag on the world prior to fixing the host data?

funkymango221 commented 5 months ago

No prior lag when the server was made with a fresh world. I had 40 ping and 60 fps pretty consistently but after migrating my world save, I had 100+ ping and an average 12 server fps.

xNul commented 5 months ago

I highly doubt this script is the cause. We don't change anything performance related, just metadata. Unless we edited the save to spawn thousands of objects, I don't see how this could be the case. We simply reassign GUIDs. I think if our changes made as large of a difference as you're experiencing, we'd see a lot more people mentioning it. Let me know if you can find something definitive and I'll reopen but for now I'm going to close this.

wcdfilll commented 5 months ago

This problem is clearly happening, why did you close it? This error is noticed by only a few people who open the server or have knowledge