From 5c0cc6582f6276329888c199164a3cc9f5beac62 Mon Sep 17 00:00:00 2001 From: Dr John Vidler Date: Fri, 11 Oct 2024 23:23:01 +0100 Subject: [PATCH] Attempting to support workshop mods too... --- docker-compose.yml | 6 ++++-- launch.d/00-update | 23 +++++++++++++++++++---- launch.d/99-start | 1 + modlist.txt | 2 ++ 4 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 modlist.txt diff --git a/docker-compose.yml b/docker-compose.yml index c80d738..c916148 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,13 @@ services: stationeers: - image: docker-stationeers:main + #image: docker-stationeers:bepinex build: . stdin_open: true tty: true restart: unless-stopped environment: SV_VISIBLE: true - SV_NAME: "Docker Stationeers" + SV_NAME: "Docker Stationeers - EVIL THIS ONE" SV_DEFAULT_WORLD: "Moon" SV_PASSWORD: "private" SV_MAX_PLAYERS: 10 @@ -20,3 +20,5 @@ services: volumes: - ./data:/home/steam/stationeers/saves - ./BepInEx:/home/steam/stationeers/BepInEx + - ./modlist.txt:/home/steam/stationeers/modlist.txt + - ./mods:/home/steam/stationeers/mods diff --git a/launch.d/00-update b/launch.d/00-update index d063410..2801340 100644 --- a/launch.d/00-update +++ b/launch.d/00-update @@ -1,9 +1,24 @@ #!/bin/bash +pushd ${STEAM_APP_PATH} + +MOD_LIST_ARGS="" +if [ -f modlist.txt ]; then + while read line; do + [[ "$line" =~ ^#.*$ ]] && continue + MOD_LIST_ARGS="${MOD_LIST_ARGS} +app_set_config ${STEAM_APP_ID} mod ${line}" + done