Kristian Polso преди 9 години
родител
ревизия
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