Browse Source

Create initial save

Kristian Polso 9 năm trước cách đây
mục cha
commit
3c136bc1a2

+ 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