Advertisement
burdoto

startserver_factorio

May 27th, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # NOTE:
  4. # Before you use, you need to replace the Steam LogIn-Data for yours, or LogIn once with steamcmd.sh and then only provide a username.
  5.  
  6. betaname=${1}
  7. savegame="/home/steam/savegames/factorio/"${2}".zip"
  8.  
  9. echo "Updating Factorio Beta "$betaname
  10. ./Steam/steamcmd.sh +login [USERNAME] <[PASSWORD] <STEAMGUARD-CODE>> +app_update 427520 -beta $betaname validate +quit
  11. echo "Starting Factorio Server with Savegame at "$savegame" in Screen: factorio"
  12. screen -dmS factorio ./Steam/steamapps/common/Factorio/bin/x64/factorio --start-server $savegame
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement