docker-vrising icon indicating copy to clipboard operation
docker-vrising copied to clipboard

Saving progress before restarting the server

Open DervilRus opened this issue 1 year ago • 6 comments

Please tell me how to force save server progress before server restart?

On Windows, you could press CTRL-C for the server to save the current state, how can I do this? I just don’t want to set automatic saving very often.

DervilRus avatar May 14 '24 07:05 DervilRus

For now, it's autosaving

  • when the last player disconnects,
  • every 15 minutes.

I'm testing if I can do an rcon instruction via bash. If that's possible, this request is doable.

TrueOsiris avatar May 14 '24 14:05 TrueOsiris

rcon instruction via bash. If that's possible, this request is doable.

we could need to do a web socket connection so we could call rcon directly. We would need to use python or some other language as this is a bit out of reach of bash

https://github.com/conqp/rcon

We could write something up with this module pretty easily. We would need to include it into our build along with py 3.10.

njhughes-01 avatar May 15 '24 20:05 njhughes-01

https://github.com/Diyagi/vrising-server-docker

This person looks to have a much cleaner way of doing this. @TrueOsiris what do you think?

njhughes-01 avatar May 16 '24 17:05 njhughes-01

  1. that he is a better coder
  2. that I could add
ARG GORCON_VERSION="0.10.3"
ARG GORCON_MD5SUM="8601c70dcab2f90cd842c127f700e398"

# Install GoRcon
RUN curl -fsSL -o rconcli.tar.gz https://github.com/gorcon/rcon-cli/releases/download/v${GORCON_VERSION}/rcon-${GORCON_VERSION}-amd64_linux.tar.gz \
    && echo "${GORCON_MD5SUM}" rconcli.tar.gz | md5sum -c - \
    && tar -xf rconcli.tar.gz --strip-components=1 --transform 's/rcon/rcon-cli/g' -C /usr/bin/ rcon-${GORCON_VERSION}-amd64_linux/rcon

to the Dockerfile, like he does. I could also use that to make a proper container healthcheck. Interesting.

TrueOsiris avatar May 17 '24 22:05 TrueOsiris

  1. that he is a better coder
  2. that I could add
ARG GORCON_VERSION="0.10.3"
ARG GORCON_MD5SUM="8601c70dcab2f90cd842c127f700e398"

# Install GoRcon
RUN curl -fsSL -o rconcli.tar.gz https://github.com/gorcon/rcon-cli/releases/download/v${GORCON_VERSION}/rcon-${GORCON_VERSION}-amd64_linux.tar.gz \
    && echo "${GORCON_MD5SUM}" rconcli.tar.gz | md5sum -c - \
    && tar -xf rconcli.tar.gz --strip-components=1 --transform 's/rcon/rcon-cli/g' -C /usr/bin/ rcon-${GORCON_VERSION}-amd64_linux/rcon

to the Dockerfile, like he does. I could also use that to make a proper container healthcheck. Interesting.

Yeah stumbled on it and figured I would atleast share

njhughes-01 avatar May 17 '24 23:05 njhughes-01

Hi,

I lost progress because of this. I was assuming that the server will save whenever the server (or docker image) is stopped as it seems like a basic feature, however this is not the case.

Also, I noticed this:

For now, it's autosaving

  • when the last player disconnects,

But this is not happening for some reason. So I'm experiencing the same issue as #88. Combined, these issues mean it is really easy to lose progress.

Is there a workaround a user could do at the moment?

WildPenquin avatar Mar 13 '25 22:03 WildPenquin