Skip to content

Commit 65e3a93

Browse files
committed
fix(unt): config is auto generated
1 parent 8a9f343 commit 65e3a93

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lgsm/config-default/config-lgsm/untserver/_default.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ ip="0.0.0.0"
1313
port="27015"
1414
maxplayers="20"
1515
defaultmap="PEI"
16-
16+
servername="LinuxGSM"
17+
perspective="first" # Values: first, third, vehicle, Both.
18+
gamemode="normal" # Values: normal, easy, gold.
1719
## Game Server Login Token (GSLT): Required
1820
# GSLT is required for running a public server.
1921
# More info: https://docs.linuxgsm.com/steamcmd/gslt
2022
gslt=""
2123

2224
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
23-
startparameters="-nographics -batchmode -bind ${ip} -port ${port} -maxplayers ${maxplayers} -map ${defaultmap} -gslt ${gslt} +InternetServer/${selfname}"
25+
startparameters="-nographics -batchmode -bind ${ip} -port ${port} -maxplayers ${maxplayers} -perspective ${perspective} -mode ${gamemode} -name ${servername} -map ${defaultmap} -gslt ${gslt} +InternetServer/${selfname}"
2426

2527
#### LinuxGSM Settings ####
2628

lgsm/modules/install_config.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -781,11 +781,8 @@ elif [ "${shortname}" == "ut99" ]; then
781781
fn_set_config_vars
782782
fn_list_config_locations
783783
elif [ "${shortname}" == "unt" ]; then
784-
array_configs+=(Config.json)
785-
fn_fetch_default_config
786-
fn_default_config_remote
787-
fn_set_config_vars
788-
fn_list_config_locations
784+
# Config is generated on first run
785+
:
789786
elif [ "${shortname}" == "vints" ]; then
790787
# Config is generated on first run
791788
:

0 commit comments

Comments
 (0)