Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support migrate from existing data #96

Closed
Ericwww opened this issue Jan 24, 2024 · 1 comment · Fixed by #114
Closed

Support migrate from existing data #96

Ericwww opened this issue Jan 24, 2024 · 1 comment · Fixed by #114

Comments

@Ericwww
Copy link
Contributor

Ericwww commented Jan 24, 2024

Thank you for providing the docker image and compose file.

I migrated my existing server to use docker deployment today.
Recovering from existing data requires some manual operations. I think this operation can be integrated into the docker image to facilitate users to migrate servers.

I saw a migration solution from a game forum in China like this:

cp -r oldServer:steamapps/common/PalServer/Pal/Saved/SaveGames/0/{SERVER_NAME}/ newServer:steamapps/common/PalServer/Pal/Saved/SaveGames/0/{SERVER_NAME}/

And then

sed -i "s/DedicatedServerName=[A-Z0-9]*/DedicatedServerName={SERVER_NAME}/" /palworld/Pal/Saved/Config/LinuxServer/GameUserSettings.ini

Now I'm not sure if the GameUserSettings.ini file is generated before starting the game server.
If so this problem would be much simpler.
If not, I have no idea how to solve this problem.

I can't test it because I'm with Apple Silicon.

If anyone has ideas, welcome to discuss.

@Jortana
Copy link

Jortana commented Jan 25, 2024

I used to run the server directly on Windows, but later I migrated it to a Docker environment.

My approach was to first enter the new server and create a character, in order to let my new server generate some necessary files.

Then, I would change the DedicatedServerName in the GameUserSettings.ini file of the new server. Also, I deleted the steamapps/common/PalServer/Pal/Saved/SaveGames/0/{SERVER_NAME}/ folder in the new server and replace it with the folder from the old server.

By doing this and restarting the server, All players could play normally.

@thijsvanloef thijsvanloef linked a pull request Jan 26, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants