install_factorio_save.sh 588 B

12345678910111213141516
  1. #!/bin/bash
  2. # LinuxGSM install_factorio_save.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Creates the initial save file for Factorio.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. echo -e ""
  9. echo -e "${bold}${lightyellow}Creating initial Factorio savefile${default}"
  10. fn_messages_separator
  11. check_glibc.sh
  12. # Create the save in the saves directory so --start-server-load-latest can find it.
  13. mkdir -p "${serverfiles}/saves"
  14. "${executabledir}"/factorio --create "${serverfiles}/saves/save1"