Skip to content

Commit

Permalink
Attempting to support workshop mods too...
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVidler committed Oct 11, 2024
1 parent 0db18eb commit 5c0cc65
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
23 changes: 19 additions & 4 deletions launch.d/00-update
Original file line number Diff line number Diff line change
@@ -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 <modlist.txt
fi

echo "Using modline: ${MOD_LIST_ARGS}"

popd

pushd ${STEAMCMDDIR}
./steamcmd.sh \
+force_install_dir "${STEAM_APP_PATH}" \
+login anonymous \
+app_update ${STEAM_APP_ID} validate \
+quit
+force_install_dir "${STEAM_APP_PATH}" \
+login anonymous \
+app_update ${STEAM_APP_ID} validate \
${MOD_LIST_ARGS} \
+quit
popd
1 change: 1 addition & 0 deletions launch.d/99-start
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

pushd "${STEAM_APP_PATH}"

chmod +x run_bepinex.sh
printf '%s\n' A | run_bepinex.sh \
-batchmode \
-nographics \
Expand Down
2 changes: 2 additions & 0 deletions modlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Put your workshop mod IDs between these two comments
# EOF - The parser needs a blank line at the end

0 comments on commit 5c0cc65

Please sign in to comment.