Jump to content

Help trying to update a Vintage story Server from version 1.20.12 to version 1.21.1?


Recommended Posts

Posted

Trying to update a self hosted Vintage story Server from version 1.20.12 to version 1.21.1
Can anyone give some advice or helpful instructions in how to update a server in general to a newer version?

Do I need to fully replace all files in in server folder with the ones i downloaded from vs_server_win-x64_1.21.1? or do I just replace certain files and folders for example?

Posted

Generally you can copy all files, just backup your server.sh if you're running Linux! I have a script that can help you update your server if you are running linux. Otherwise it's just a simple copy and paste for Windows.

Script:

#!/bin/bash

# Check if a URL was provided
if [ -z "$1" ]; then
  echo "Usage: $0 <URL>"
  exit 1
fi

URL="$1"
OUTPUT_FILE="vs.tar.gz"
ASSETS_DIR="assets"

# First backup server.sh file
mv server.sh server.sh.old

# Download the contents of the URL into vs.tar.gz
curl -o "$OUTPUT_FILE" "$URL"

# Check if the download was successful
if [ $? -ne 0 ]; then
  echo "Error: Failed to download $URL"
  exit 1
fi

# Remove the local assets folder if it exists
if [ -d "$ASSETS_DIR" ]; then
  rm -rf "$ASSETS_DIR"
  echo "Deleted existing $ASSETS_DIR folder."
fi

# Unpack vs.tar.gz into the current directory
# Overwriting all contents if necessary
tar -xzf "$OUTPUT_FILE" --overwrite

# Check if the extraction was successful
if [ $? -ne 0 ]; then
  echo "Error: Failed to extract $OUTPUT_FILE"
  exit 1
fi

# Restore server.sh file
rm server.sh
mv server.sh.old server.sh

# Notify completion
echo "Successfully downloaded and updated Vintage Story."

Here's how it looks when you don't run it correctly

image.png.d4363b32c13aa1e2e32caf1d8f8dc22a.png

and when you do:

image.thumb.png.15e718ca3c35aa921ac229134ab3ace9.png

Good luck and happy Vintarianeering!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.