Factorio Headless Server for Windows

I just spent a few minutes setting up a Factorio Headless Server on my VPS Window Server and I saw that the script on their Wiki is formatted wrong. Below is my modified version of their script. Make sure each statement is on it own line and move all the x64 binary folder to c:\factorio\0.14.22\ and run the .bat from the root of 0.14.22.

I like to launch it from the .bat [link to file] because I can track the saves easier and change the configuration quicker. You will also need to forward port 34197 to that server and any other port that your going to use.


@echo off
set FactorioExeLocation=C:\factorio\0.14.22\bin\x64\
set SaveFileName=game1-save.zip
set SaveLocation=C:\factorio\0.14.22\saves\game1-saves\
set ServerSettingsFileName=server-setting-server-1.json
set ServerSettingsLocation=C:\factorio\0.14.22\data\
cd %FactorioExeLocation% echo.
echo.
echo.PREPARING TO LAUNCH FACTORIO SERVER...
echo.
echo Save to be loaded: echo %SaveLocation%%SaveFileName%
echo.
echo. Server Settings to load: echo %ServerSettingsLocation%%ServerSettingsFileName%
echo.
echo.
echo *** Remember to use Ctrl+C to ensure saving when finished instead of simply closing this window ***
echo.
echo.
pause 3
factorio.exe --start-server "%SaveLocation%%SaveFileName%" --server-settings "%ServerSettingsLocation%%ServerSettingsFileName%" pause 3

You should get the output similar to below.

Factorio!

Leave a Reply

Your email address will not be published. Required fields are marked *