Dedicated servers/Automatic updates

From Satisfactory Wiki
Jump to navigation Jump to search

It has been suggested that this article or section be merged with Dedicated servers.
  • Reason: Could be incorporated into § How do I update the Dedicated Server?
  • Please discuss this on the Discussion page.

This page describes how to automate dedicated server updates.

Automating Updates

Windows

NSSM

You can use the Non-Sucking Service Manager to automate the update process

Batch file

First, you need to make a batch file to update FactoryServer.exe. Open a text editor of your choice, and paste the below code:

For Early Access:

"C:\Program Files (x86)\Steam\steamcmd.exe" +force_install_dir "C:\GameServers\SatisfactoryServer" +login anonymous +app_update 1690800 -beta public validate +quit
"C:\GameServers\nssm.exe" start SatisfactoryServerService

For Experimental:

"C:\Program Files (x86)\Steam\steamcmd.exe" +force_install_dir "C:\GameServers\SatisfactoryServer" +login anonymous +app_update 1690800 -beta experimental validate +quit
"C:\GameServers\nssm.exe" start SatisfactoryServerService

Where the first path is to SteamCMD, the second path is to the folder with FactoryServer.exe, and the third path is to the folder with nssm.exe.

Now press Ctrl+S, and save the file to the directory with FactoryServer.exe (in our case, C:\GameServers\SatisfactoryServer) as "update.bat"

Automating

Once you've downloaded and installed NSSM, navigate to the directory containing nssm.exe and run the below command:

nssm.exe install SatisfactoryServerUpdate

This will pull up a GUI for configuration. Set the "Path" to the location of update.bat. Then, go to "Details", change "Startup Type" to "Automatic", and then click "install". Next, run this command:

nssm.exe edit SatisfactoryServerService

Now, Go to "Details" and change "Startup Type" to "Manual". When finished, click "Edit Service".

Finally, run this command:

nssm.exe start SatisfactoryServerUpdate

This will start the update process, and then start the server once finished.

Other useful nssm commands:

nssm.exe status SatisfactoryServerUpdate # Checks the status of the Service

See also