Rimworld Together
GamesA community driven multiplayer mod, for Rimworld.
README
Docker Images (1)
| Name | Image |
|---|---|
ghcr.io/ptero-eggs/yolks:dotnet_7 | ghcr.io/ptero-eggs/yolks:dotnet_7 |
Startup Command
./GameServer Variables (3)
Version
- Environment:
VERSION- Default:
latest- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string|max:20
Max Players
The maximum amount of players that can join. Default: 100
- Environment:
MAX_PLAYERS- Default:
100- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|numeric|between:1,150
Verbose
If the console output should be verbose or not.
- Environment:
VERBOSE- Default:
false- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string|in:false,true
Installation Script
Container:
ghcr.io/ptero-eggs/installers:debianEntrypoint:
bash#!/bin/bash
## get release info and download links
LATEST_JSON=$(curl -L --silent "https://api.github.com/repos/RimworldTogether/Rimworld-Together/releases/latest")
RELEASES=$(curl -L --silent "https://api.github.com/repos/RimworldTogether/Rimworld-Together/releases")
MATCH=$([[ "$(uname -m)" == "x86_64" ]] && echo "Linux-x64 " || echo "Linux-ARM-x64")
if [ -z "${VERSION}" ] || [ "${VERSION}" == "latest" ]; then
DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})
else
VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .tag_name')
if [ "${VERSION}" == "${VERSION_CHECK}" ]; then
DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})
else
echo -e "defaulting to latest release"
DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)
fi
fi
mkdir -p /mnt/server
cd /mnt/server
curl -sSL -o server.zip ${DOWNLOAD_URL}
unzip -o server.zip
rm server.zip
chmod +x GameServer
if [ -f "/mnt/server/Core/ServerConfig.json" ]; then
echo "Config file exits"
else
mkdir -p /mnt/server/Core
echo "{\"IP\":\"0.0.0.0\",\"Port\":$SERVER_PORT,\"MaxPlayers\":$MAX_PLAYERS,\"verboseLogs\":$VERBOSE}" | jq . > /mnt/server/Core/ServerConfig.json
fi
## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"