Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- ::==============================================================================================================
- :: Replace the appropriate entries below to suit your installation (OldVamp's Tutorial example shown)
- ::==============================================================================================================
- set FactorioExeLocation=C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\
- set SaveFileName=wearebestfriens.zip
- set SaveLocation=C:\Users\bcfnj\AppData\Roaming\Factorio\multiplayerserver\
- set ServerSettingsFileName=server-settings.json
- set ServerSettingsLocation=C:\Users\bcfnj\AppData\Roaming\Factorio\multiplayerserver\
- set ServerConfigFileName=configserver.ini
- set ServerConfigLocation=C:\Users\bcfnj\AppData\Roaming\Factorio\multiplayerserver\
- set MapConfigFileName=map-gen-settings.json
- set MapConfigLocation=C:\Users\bcfnj\AppData\Roaming\Factorio\multiplayerserver\
- ::==============================================================================================================
- 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 close the server and save instead of simply closing this window ***
- echo *** If asked to terminate the batch job, type y (yes) ***
- 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%" -c "%ServerConfigLocation%%ServerConfigFileName%"
- pause 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement