-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathentrypoint.sh
More file actions
33 lines (29 loc) · 1.14 KB
/
Copy pathentrypoint.sh
File metadata and controls
33 lines (29 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SetUsePerfThreads="-useperfthreads "
if [[ $UsePerfThreads == "false" ]]; then
SetUsePerfThreads=""
fi
SetNoAsyncLoadingThread="-NoAsyncLoadingThread "
if [[ $NoAsyncLoadingThread == "false" ]]; then
SetNoAsyncLoadingThread=""
fi
MaxServerPlayers="${MaxServerPlayers:-6}"
Port="${Port:-7777}"
QueryPort="${QueryPort:-27015}"
ServerPassword="${ServerPassword:-password}"
SteamServerName="${SteamServerName:-LinuxServer}"
WorldSaveName="${WorldSaveName:-Cascade}"
AdditionalArgs="${AdditionalArgs:-}"
# Check for updates/perform initial installation
if [ ! -d "/server/AbioticFactor/Binaries/Win64" ] || [[ $AutoUpdate == "true" ]]; then
steamcmd \
+@sSteamCmdForcePlatformType windows \
+force_install_dir /server \
+login anonymous \
+app_update 2857200 validate \
+quit
fi
pushd /server/AbioticFactor/Binaries/Win64 > /dev/null
wine AbioticFactorServer-Win64-Shipping.exe $SetUsePerfThreads$SetNoAsyncLoadingThread-MaxServerPlayers=$MaxServerPlayers \
-PORT=$Port -QueryPort=$QueryPort -ServerPassword=$ServerPassword \
-SteamServerName="$SteamServerName" -WorldSaveName="$WorldSaveName" -tcp $AdditionalArgs
popd > /dev/null