Guest User

Untitled

a guest
Oct 14th, 2020
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. @echo off
  2. ::==============================================================================================================
  3. :: Replace the appropriate entries below to suit your installation (Default install example shown)
  4. ::==============================================================================================================
  5.  
  6. set FactorioExeLocation=C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\
  7.  
  8. set SaveFileName=Server.zip
  9. set SaveLocation=C:\Users\USER\AppData\Roaming\Factorio\saves\
  10.  
  11. set ServerSettingsFileName=server-settings.json
  12. set ServerMapSettingsFileName=map-settings.json
  13. set ServerSettingsLocation=C:\Program Files (x86)\Steam\steamapps\common\Factorio\data\
  14. ::==============================================================================================================
  15.  
  16. cd %FactorioExeLocation%
  17.  
  18. echo.
  19. echo.
  20. echo PREPARING TO LAUNCH FACTORIO SERVER...
  21. echo.
  22. echo Save to be loaded:
  23. echo %SaveLocation%%SaveFileName%
  24. echo.
  25. echo Server Settings to load:
  26. echo %ServerSettingsLocation%%ServerSettingsFileName%
  27. echo.
  28. echo Server Map Settings to load:
  29. echo %ServerSettingsLocation%%ServerMapSettingsFileName%
  30. echo.
  31. echo *** Do not close this window, use Control+C to exit ***
  32. echo.
  33. echo.
  34. pause 3
  35.  
  36. ::==============================================================================================================
  37. :: ***NOTE: The line below launches factorio in headless mode with desired server settings, add any other
  38. :: desired arguments to end of the line. Use "factorio.exe --help" for a list of all supported arguments.
  39. ::==============================================================================================================
  40. factorio.exe --start-server "%SaveLocation%%SaveFileName%" --server-settings "%ServerSettingsLocation%%ServerSettingsFileName%" --map-settings "%ServerSettingsLocation%%ServerMapSettingsFileName%"
Advertisement
Add Comment
Please, Sign In to add comment