Kristian Polso 9 лет назад
Родитель
Сommit
3c136bc1a2
2 измененных файлов с 15 добавлено и 0 удалено
  1. 14 0
      lgsm/functions/install_factorio_save.sh
  2. 1 0
      lgsm/functions/install_server_files.sh

+ 14 - 0
lgsm/functions/install_factorio_save.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+# LGSM install_factorio_save.sh function
+# Author: Kristian Polso
+# Website: https://gameservermanagers.com
+# Description: Creates the initial save file for Factorio
+
+local commandname="INSTALL"
+local commandaction="Install"
+
+echo ""
+echo "Creating initial Factorio savefile"
+echo "================================="
+sleep 1
+${filesdir}/bin/x64/factorio --create-save ${filesdir}/save1

+ 1 - 0
lgsm/functions/install_server_files.sh

@@ -114,6 +114,7 @@ elif [ "${gamename}" == "Mumble" ]; then
 	update_mumble.sh
 elif [ "${gamename}" == "Factorio" ]; then
   update_factorio.sh
+  install_factorio_save.sh
 elif [ -z "${appid}" ]||[ "${gamename}" == "GoldenEye: Source" ]; then
 	fn_install_server_files
 fi