From 3c136bc1a265d01a1d8a61869fb467fca4e00ddb Mon Sep 17 00:00:00 2001 From: Kristian Polso Date: Wed, 19 Oct 2016 12:44:41 +0300 Subject: [PATCH] Create initial save --- lgsm/functions/install_factorio_save.sh | 14 ++++++++++++++ lgsm/functions/install_server_files.sh | 1 + 2 files changed, 15 insertions(+) create mode 100644 lgsm/functions/install_factorio_save.sh diff --git a/lgsm/functions/install_factorio_save.sh b/lgsm/functions/install_factorio_save.sh new file mode 100644 index 000000000..ed71fe166 --- /dev/null +++ b/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 diff --git a/lgsm/functions/install_server_files.sh b/lgsm/functions/install_server_files.sh index 30216d7d0..b4a6fa22d 100644 --- a/lgsm/functions/install_server_files.sh +++ b/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