Created
October 28, 2021 15:09
-
-
Save IntegersOfK/9bdb89f13d101ca5a857f2904e765e36 to your computer and use it in GitHub Desktop.
Satisfactory Dedicated Server on Windows keep alive batch script
This file contains 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
REM This script will check for SatisfactoryDedicatedServer game updates (and install them) | |
REM Then it'll turn on the server. | |
REM If the server closes for any reason (like a crash/game update) it'll restart. | |
REM Note, depending on where dedicated server is installed, you may need to run as Admin. | |
REM TODO: Add a parameter for where the steamcmd folder lives. | |
REM TODO: The game does a good job at auto-saving, but maybe we can add a backup with each loop in-case? | |
REM Bypass "Terminate Batch Job" prompt so it'll continue looping without user prompt | |
if "%~1"=="-FIXED_CTRL_C" ( | |
REM Remove the -FIXED_CTRL_C parameter | |
SHIFT | |
) ELSE ( | |
REM Run the batch with <NUL and -FIXED_CTRL_C | |
CALL <NUL %0 -FIXED_CTRL_C %* | |
GOTO :EOF | |
) | |
REM begin the looping | |
:Start | |
REM run the dedicated server installer to check for and perform game update, wait for it to finish | |
START /WAIT D:\steamcmd\steamcmd.exe +login anonymous +force_install_dir SatisfactoryDedicatedServer +app_update 1690800 +quit | |
REM turn on the server | |
START /WAIT D:\steamcmd\satisfactorydedicatedserver\FactoryServer.exe -log -unattended | |
REM repeat from Start if the server shutdown for any reason | |
GOTO:Start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment