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

Game progress is lost after server restart #105

Closed
chenjx56 opened this issue Jan 25, 2024 · 10 comments
Closed

Game progress is lost after server restart #105

chenjx56 opened this issue Jan 25, 2024 · 10 comments

Comments

@chenjx56
Copy link

Game progress is lost after server restart

I update my steamcmd today and my game save is rolled back to the last time the server was started.
Strangely enough, my in-game technology was kept up to date.

To Reproduce

Steps to reproduce the behavior:

  1. ``docker restart container_id'' to restart the server
  2. connect to the server

Expected behavior

Go back to the game progress before restarting the server.

Screenshots

image
image

Desktop (please complete the following information)

  • OS: Ubuntu
  • Browser chrome
  • Version 22

docker-compose.yml contents

I do not change anything, and build the docker with this command: "docker build --tag pal_server"

Container/Host Logs

everything is ok.

Additional context

Nothing.

@raimannma
Copy link
Contributor

Did you mounted a volume to the container?

@fryfrog
Copy link
Contributor

fryfrog commented Jan 25, 2024

Show your compose or docker run.

@Dashboy1998
Copy link
Contributor

What version of this were you running?

@chenjx56
Copy link
Author

Did you mounted a volume to the container?

yes, i use the docker run command in the readMe file.

@chenjx56
Copy link
Author

Show your compose or docker run.

i use the docker run command which is same with the readme

@chenjx56
Copy link
Author

What version of this were you running?

0.13.0

@Dashboy1998
Copy link
Contributor

Dashboy1998 commented Jan 26, 2024

I update my steamcmd today and my game save is rolled back to the last time the server was started.
Strangely enough, my in-game technology was kept up to date.

This is because the game appears to constantly save player data but periodically (Not sure how often) save world data.

This was fixed by #98 if rcon is enabled. Otherwise you have to run the save command manually. If you do not have rcon enabled I recommend stopping the server (and container) by issuing the save command the shutdown command in game. That merge is in version 0.14.0.

Note currently backups do not run the save command, I added a fix in #118.

@chenjx56
Copy link
Author

I update my steamcmd today and my game save is rolled back to the last time the server was started.
Strangely enough, my in-game technology was kept up to date.

This is because the game appears to constantly save player data but periodically (Not sure how often) save world data.

This was fixed by #98 if rcon is enabled. Otherwise you have to run the save command manually. If you do not have rcon enabled I recommend stopping the server (and container) by issuing the save command the shutdown command in game. That merge is in version 0.14.0.

Note currently backups do not run the save command, I added a fix in #118.

thank you so much, I can not reproduce this issue, but I will use the save command in the game.

@thijsvanloef
Copy link
Owner

@chenjx56 has your issue been resolved?

@chenjx56
Copy link
Author

@chenjx56 has your issue been resolved?

Yes, thank you very much, I will close the issue.

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

No branches or pull requests

5 participants