fix crossplay in ss

This commit is contained in:
finn committed 2026-09-30 06:21:29 -07:00
1 parent 09bed31f06
commit 9d2b5779bd
2 files changed
+9 -6

No files matched your search

+6 -5
View File
@@ -92,12 +92,12 @@ set -euo pipefail
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Server settings - edit these before saving the StackScript. # Server settings - edit these before saving the StackScript.
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
SERVER_NAME="Valheim Server" SERVER_NAME="ServerName"
WORLD_NAME="Dedicated" WORLD_NAME="World Name"
# Must be at least 5 characters, otherwise valheim_server.x86_64 refuses to # 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 # start. Anything saved here is readable by anyone with access to the
# StackScript, so change it. # StackScript, so change it.
SERVER_PASS="changeme123" SERVER_PASS="SomePassword"
# true plus crossplay willl list the server in the in-game community browser. # true plus crossplay willl list the server in the in-game community browser.
SERVER_PUBLIC="true" SERVER_PUBLIC="true"
SERVER_CROSSPLAY="true" SERVER_CROSSPLAY="true"
@@ -180,14 +180,14 @@ docker run -d \
--cap-add=sys_nice \ --cap-add=sys_nice \
--stop-timeout 120 \ --stop-timeout 120 \
--restart unless-stopped \ --restart unless-stopped \
-p 2456-2457:2456-2457/udp \ -p 2456-2458:2456-2458/udp \
-v "${CONFIG_DIR}:/config" \ -v "${CONFIG_DIR}:/config" \
-v "${DATA_DIR}:/opt/valheim" \ -v "${DATA_DIR}:/opt/valheim" \
-e SERVER_NAME="$SERVER_NAME" \ -e SERVER_NAME="$SERVER_NAME" \
-e WORLD_NAME="$WORLD_NAME" \ -e WORLD_NAME="$WORLD_NAME" \
-e SERVER_PASS="$SERVER_PASS" \ -e SERVER_PASS="$SERVER_PASS" \
-e SERVER_PUBLIC="$SERVER_PUBLIC" \ -e SERVER_PUBLIC="$SERVER_PUBLIC" \
-e SERVER_CROSSPLAY="$SERVER_CROSSPLAY" \ -e CROSSPLAY="$SERVER_CROSSPLAY" \
-e SERVER_ARGS="-modifier resources more" \ -e SERVER_ARGS="-modifier resources more" \
"$IMAGE" "$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" echo "Follow progress with: docker logs -f $CONTAINER_NAME"
``` ```
+3 -1
View File
@@ -43,7 +43,9 @@ FIREWALL_ID="165767433"
# v2, 1.5 resources: # v2, 1.5 resources:
#STACKSCRIPT_ID="2225201" #STACKSCRIPT_ID="2225201"
# v3, adds crossplay # 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 if [[ "$SCRIPT_ACTION" == "" || "$SCRIPT_ACTION" == "--help" || "$SCRIPT_ACTION" == "-?" ]]; then
echo "Linode helper script: create-linode.sh <action> <label> [args]" echo "Linode helper script: create-linode.sh <action> <label> [args]"