Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- ::==============================================================================================================
- :: Replace the appropriate entries below to suit your installation (Default install example shown)
- ::==============================================================================================================
- set FactorioExeLocation=C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\
- set SaveFileName=Server.zip
- set SaveLocation=C:\Users\USER\AppData\Roaming\Factorio\saves\
- set ServerSettingsFileName=server-settings.json
- set ServerMapSettingsFileName=map-settings.json
- set ServerSettingsLocation=C:\Program Files (x86)\Steam\steamapps\common\Factorio\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 Server Map Settings to load:
- echo %ServerSettingsLocation%%ServerMapSettingsFileName%
- echo.
- echo *** Do not close this window, use Control+C to exit ***
- echo.
- echo.
- pause 3
- ::==============================================================================================================
- :: ***NOTE: The line below launches factorio in headless mode with desired server settings, add any other
- :: desired arguments to end of the line. Use "factorio.exe --help" for a list of all supported arguments.
- ::==============================================================================================================
- factorio.exe --start-server "%SaveLocation%%SaveFileName%" --server-settings "%ServerSettingsLocation%%ServerSettingsFileName%" --map-settings "%ServerSettingsLocation%%ServerMapSettingsFileName%"
Advertisement
Add Comment
Please, Sign In to add comment