Browse Source

fix(st): update st settings to get it working again

pull/4254/head
Daniel Gibbs 2 years ago
parent
commit
7d958ea222
  1. 16
      lgsm/config-default/config-lgsm/stserver/_default.cfg
  2. 2
      lgsm/data/almalinux-8.csv
  3. 2
      lgsm/data/almalinux-9.csv
  4. 2
      lgsm/data/centos-7.csv
  5. 2
      lgsm/data/centos-8.csv
  6. 2
      lgsm/data/centos-9.csv
  7. 2
      lgsm/data/debian-10.csv
  8. 2
      lgsm/data/debian-11.csv
  9. 2
      lgsm/data/debian-12.csv
  10. 2
      lgsm/data/debian-9.csv
  11. 2
      lgsm/data/rhel-7.csv
  12. 2
      lgsm/data/rhel-8.csv
  13. 2
      lgsm/data/rhel-9.csv
  14. 2
      lgsm/data/rocky-8.csv
  15. 2
      lgsm/data/rocky-9.csv
  16. 2
      lgsm/data/ubuntu-16.04.csv
  17. 2
      lgsm/data/ubuntu-18.04.csv
  18. 2
      lgsm/data/ubuntu-20.04.csv
  19. 2
      lgsm/data/ubuntu-21.04.csv
  20. 2
      lgsm/data/ubuntu-21.10.csv
  21. 2
      lgsm/data/ubuntu-22.04.csv
  22. 2
      lgsm/data/ubuntu-23.04.csv
  23. 25
      lgsm/modules/info_game.sh
  24. 7
      lgsm/modules/info_messages.sh
  25. 7
      lgsm/modules/install_config.sh

16
lgsm/config-default/config-lgsm/stserver/_default.cfg

@ -9,18 +9,12 @@
#### Game Server Settings ####
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
ip="0.0.0.0"
maxplayers="10"
port="27500"
queryport="27015"
saveinterval="300"
servername="LinuxGSM"
worldname="moon_save"
worldtype="Moon"
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
# Edit with care
startparameters="-LOADLATEST ${worldname} ${worldtype} -settings ServerName ${servername} StartLocalHost true ServerVisible true ServerMaxPlayers ${maxplayers} GamePort ${port} UpdatePort ${queryport} UPNPEnabled true AutoSave true SaveInterval ${saveinterval}"
startparameters="-LOADLATEST ${worldname} ${worldtype}"
#### LinuxGSM Settings ####
@ -148,18 +142,18 @@ stopmode="3"
# 3: gamedig
# 4: gsquery
# 5: tcp
querymode="2"
querytype="protocol-valve"
querymode="1"
querytype=""
## Console type
consoleverbose="yes"
consoleinteract="vo"
consoleinteract="yes"
## Game Server Details
# Do not edit
gamename="Stationeers"
engine="unity3d"
glibc="2.15"
glibc="2.34"
#### Directories ####
# Edit with care

2
lgsm/data/almalinux-8.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/almalinux-9.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/centos-7.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/centos-8.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/centos-9.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/debian-10.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/debian-11.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/debian-12.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl3:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/debian-9.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/rhel-7.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/rhel-8.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/rhel-9.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/rocky-8.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/rocky-9.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2
sol
squad
st
st,libxml2
stn
sven
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/ubuntu-16.04.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/ubuntu-18.04.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/ubuntu-20.04.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/ubuntu-21.04.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/ubuntu-21.10.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/ubuntu-22.04.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

2
lgsm/data/ubuntu-23.04.csv

@ -107,7 +107,7 @@ sfc,libtinfo5:i386
sof2
sol
squad
st
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
terraria

Can't render this file because it has a wrong number of fields in line 2.

25
lgsm/modules/info_game.sh

@ -613,30 +613,29 @@ fn_info_game_pz() {
worldname="${worldname:-"NOT SET"}"
}
# Config Type: ini
# Parameters: true
# Comment: ; or #
# Example: SERVERNAME=SERVERNAME
# Filetype: ini
# Config Type: xml
# Comment: <!-- -->
# Example: <ServerName>SERVERNAME</ServerName>
# Filetype: xml
fn_info_game_st() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "maxplayers" "MAXPLAYER"
fn_info_game_ini "rconpassword" "RCONPASSWORD"
fn_info_game_ini "servername" "SERVERNAME"
fn_info_game_ini "serverpassword" "PASSWORD"
fn_info_game_xml "adminpassword" "/SettingData/AdminPassword"
fn_info_game_xml "maxplayers" "/SettingData/ServerMaxPlayers"
fn_info_game_xml "port" "/SettingData/GamePort"
fn_info_game_xml "queryport" "/SettingData/UpdatePort"
fn_info_game_xml "saveinterval" "/SettingData/SaveInterval"
fn_info_game_xml "servername" "/SettingData/ServerName"
fn_info_game_xml "serverpassword" "/SettingData/ServerPassword"
fi
clearinterval="${clearinterval:-"0"}"
httpport="${port:-"0"}"
adminpassword="${adminpassword:-"NOT SET"}"
maxplayers="${maxplayers:-"0"}"
port="${port:-"0"}"
queryport="${queryport:-"0"}"
rconpassword="${rconpassword:-"NOT SET"}"
saveinterval="${saveinterval:-"0"}"
servername="${servername:-"NOT SET"}"
serverpassword="${serverpassword:-"NOT SET"}"
worldname="${worldname:-"NOT SET"}"
worldtype="${worldtype:-"NOT SET"}"
}
# Config Type: ini

7
lgsm/modules/info_messages.sh

@ -1504,13 +1504,6 @@ fn_info_message_st() {
fn_port "header"
fn_port "Game" port udp
fn_port "Query" queryport udp
fn_port "Web Interface" httpport tcp
} | column -s $'\t' -t
echo -e ""
echo -e "${lightgreen}${gamename} Web Interface${default}"
fn_messages_separator
{
echo -e "${lightblue}Web Interface url:\t${default}http://${httpip}:${httpport}"
} | column -s $'\t' -t
}

7
lgsm/modules/install_config.sh

@ -791,13 +791,6 @@ elif [ "${shortname}" == "sb" ]; then
fn_default_config_remote
fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "st" ]; then
gamedirname="Stationeers"
array_configs+=(default.ini)
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "stn" ]; then
gamedirname="SurvivetheNights"
array_configs+=(ServerConfig.txt ServerUsers.txt TpPresets.json UserPermissions.json)

Loading…
Cancel
Save