Last active
September 24, 2024 01:30
-
-
Save robfrawley/03ee6ca35221dbb9d18341c8a5be62f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install software-properties-common | |
sudo add-apt-repository multiverse | |
sudo dpkg --add-architecture i386 | |
sudo apt update | |
sudo apt install zsh steamcmd | |
curl -O https://gist.githubusercontent.com/robfrawley/03ee6ca35221dbb9d18341c8a5be62f9/raw/b95acc872a9f1218caf5409e48abc261ca64b6c0/satisfactory-dedicated-server-startup.zsh | |
zsh satisfactory-dedicated-server-startup.zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
declare -r INSTALL_DIRECTORY="${HOME}/Steam/SatisfactoryDedicatedServer" | |
declare -r STEAM_APPID="1690800" | |
declare -ra STEAM_OPTS=( | |
'-beta' 'public' | |
) | |
while true; do | |
printf 'Attempting to update and start "Satisfactory Dedicated Server" in 20 seconds (use CNTL+C to cancel) ...\n' | |
sleep 20 | |
if ! steamcmd +force_install_dir "${INSTALL_DIRECTORY}" +login anonymous +app_update "${STEAM_APPID}" "${STEAM_OPTS[@]}" validate +quit; then | |
printf 'Steam update encountered an error!\n' | |
continue | |
fi | |
if ! cd "${INSTALL_DIRECTORY}" 2> /dev/null; then | |
printf 'Failed to enter install directory "%s" ...\n' "${INSTALL_DIRECTORY}" | |
continue | |
fi | |
if ! ./FactoryServer.sh -ServerQueryPort=15777 -BeaconPort=15000 -Port=7777; then | |
printf 'Server shutdown unclean! (%s) ...\n' "${?}" | |
exit | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment