From 9d2b5779bd3f64cc3c909b33e49703ba1fa4dbd2 Mon Sep 17 00:00:00 2001 From: finn Date: Wed, 30 Sep 2026 06:21:29 -0700 Subject: [PATCH] fix crossplay in ss --- README.md | 11 ++++++----- create-linode.sh | 4 +++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a28f412..5b13991 100644 --- a/README.md +++ b/README.md @@ -92,12 +92,12 @@ set -euo pipefail # --------------------------------------------------------------------------- # Server settings - edit these before saving the StackScript. # --------------------------------------------------------------------------- -SERVER_NAME="Valheim Server" -WORLD_NAME="Dedicated" +SERVER_NAME="ServerName" +WORLD_NAME="World Name" # Must be at least 5 characters, otherwise valheim_server.x86_64 refuses to # start. Anything saved here is readable by anyone with access to the # StackScript, so change it. -SERVER_PASS="changeme123" +SERVER_PASS="SomePassword" # true plus crossplay willl list the server in the in-game community browser. SERVER_PUBLIC="true" SERVER_CROSSPLAY="true" @@ -180,14 +180,14 @@ docker run -d \ --cap-add=sys_nice \ --stop-timeout 120 \ --restart unless-stopped \ - -p 2456-2457:2456-2457/udp \ + -p 2456-2458:2456-2458/udp \ -v "${CONFIG_DIR}:/config" \ -v "${DATA_DIR}:/opt/valheim" \ -e SERVER_NAME="$SERVER_NAME" \ -e WORLD_NAME="$WORLD_NAME" \ -e SERVER_PASS="$SERVER_PASS" \ -e SERVER_PUBLIC="$SERVER_PUBLIC" \ - -e SERVER_CROSSPLAY="$SERVER_CROSSPLAY" \ + -e CROSSPLAY="$SERVER_CROSSPLAY" \ -e SERVER_ARGS="-modifier resources more" \ "$IMAGE" @@ -196,3 +196,4 @@ echo "The first start downloads ~1GB from Steam and takes several minutes." echo "Follow progress with: docker logs -f $CONTAINER_NAME" ``` + diff --git a/create-linode.sh b/create-linode.sh index 9efa18e..b1255ba 100755 --- a/create-linode.sh +++ b/create-linode.sh @@ -43,7 +43,9 @@ FIREWALL_ID="165767433" # v2, 1.5 resources: #STACKSCRIPT_ID="2225201" # v3, adds crossplay -STACKSCRIPT_ID="2226356" +#STACKSCRIPT_ID="2226356" +# v4 actually adds crossplay +STACKSCRIPT_ID=2234943 if [[ "$SCRIPT_ACTION" == "" || "$SCRIPT_ACTION" == "--help" || "$SCRIPT_ACTION" == "-?" ]]; then echo "Linode helper script: create-linode.sh