From 65e3a93d0dfb12720079cc77061462e933a6f5d8 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 5 Sep 2023 00:01:07 +0100 Subject: [PATCH] fix(unt): config is auto generated --- lgsm/config-default/config-lgsm/untserver/_default.cfg | 6 ++++-- lgsm/modules/install_config.sh | 7 ++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lgsm/config-default/config-lgsm/untserver/_default.cfg b/lgsm/config-default/config-lgsm/untserver/_default.cfg index a7de22b4d..f5aa19e5b 100644 --- a/lgsm/config-default/config-lgsm/untserver/_default.cfg +++ b/lgsm/config-default/config-lgsm/untserver/_default.cfg @@ -13,14 +13,16 @@ ip="0.0.0.0" port="27015" maxplayers="20" defaultmap="PEI" - +servername="LinuxGSM" +perspective="first" # Values: first, third, vehicle, Both. +gamemode="normal" # Values: normal, easy, gold. ## Game Server Login Token (GSLT): Required # GSLT is required for running a public server. # More info: https://docs.linuxgsm.com/steamcmd/gslt gslt="" ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters -startparameters="-nographics -batchmode -bind ${ip} -port ${port} -maxplayers ${maxplayers} -map ${defaultmap} -gslt ${gslt} +InternetServer/${selfname}" +startparameters="-nographics -batchmode -bind ${ip} -port ${port} -maxplayers ${maxplayers} -perspective ${perspective} -mode ${gamemode} -name ${servername} -map ${defaultmap} -gslt ${gslt} +InternetServer/${selfname}" #### LinuxGSM Settings #### diff --git a/lgsm/modules/install_config.sh b/lgsm/modules/install_config.sh index 9a49b821c..9dc0841d5 100644 --- a/lgsm/modules/install_config.sh +++ b/lgsm/modules/install_config.sh @@ -781,11 +781,8 @@ elif [ "${shortname}" == "ut99" ]; then fn_set_config_vars fn_list_config_locations elif [ "${shortname}" == "unt" ]; then - array_configs+=(Config.json) - fn_fetch_default_config - fn_default_config_remote - fn_set_config_vars - fn_list_config_locations + # Config is generated on first run + : elif [ "${shortname}" == "vints" ]; then # Config is generated on first run :