Skip to content

Commit

Permalink
Use FactoryServer.sh for daemon execution (#185)
Browse files Browse the repository at this point in the history
FactoryServer.sh sets up a few environment variables and provides the
path to the server binary for launching Satisfactory Dedicated server.

With the migration to UE5 imminent for the experimental channel, this
should handle changes to the game files that may include a new path to
launching the server.
  • Loading branch information
Stealthii authored Jun 9, 2023
1 parent befc216 commit e03ae34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ rm -rf "$GAMESAVESDIR"
ln -sf "/config/saved" "$GAMESAVESDIR"
cp /home/steam/*.ini "${GAMECONFIGDIR}/Config/LinuxServer/"

if [ ! -f "/config/gamefiles/Engine/Binaries/Linux/UE4Server-Linux-Shipping" ]; then
printf "Game binary is missing.\\n"
if [ ! -f "/config/gamefiles/FactoryServer.sh" ]; then
printf "FactoryServer launch script is missing.\\n"
exit 1
fi

cd /config/gamefiles || exit 1

exec ./Engine/Binaries/Linux/UE4Server-Linux-Shipping FactoryGame -log -NoSteamClient -unattended ?listen -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" -multihome="$SERVERIP" "$@"
exec ./FactoryServer.sh -log -NoSteamClient -unattended ?listen -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" -multihome="$SERVERIP" "$@"

0 comments on commit e03ae34

Please sign in to comment.