Browse Source

Create initial save

pull/1133/head
Kristian Polso 9 years ago
parent
commit
3c136bc1a2
  1. 14
      lgsm/functions/install_factorio_save.sh
  2. 1
      lgsm/functions/install_server_files.sh

14
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
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

Loading…
Cancel
Save