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. 31
      lgsm/modules/info_game.sh
  24. 13
      lgsm/modules/info_messages.sh
  25. 9
      lgsm/modules/install_config.sh

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

@ -9,18 +9,12 @@
#### Game Server Settings #### #### Game Server Settings ####
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters ## 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" worldname="moon_save"
worldtype="Moon" worldtype="Moon"
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
# Edit with care # 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 #### #### LinuxGSM Settings ####
@ -148,18 +142,18 @@ stopmode="3"
# 3: gamedig # 3: gamedig
# 4: gsquery # 4: gsquery
# 5: tcp # 5: tcp
querymode="2" querymode="1"
querytype="protocol-valve" querytype=""
## Console type ## Console type
consoleverbose="yes" consoleverbose="yes"
consoleinteract="vo" consoleinteract="yes"
## Game Server Details ## Game Server Details
# Do not edit # Do not edit
gamename="Stationeers" gamename="Stationeers"
engine="unity3d" engine="unity3d"
glibc="2.15" glibc="2.34"
#### Directories #### #### Directories ####
# Edit with care # Edit with care

2
lgsm/data/almalinux-8.csv

@ -107,7 +107,7 @@ sfc,ncurses-libs.i686
sof2 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl3:i386,zlib1g:i386 sven,libssl3:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2
stn stn
sven sven
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria 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 sof2
sol sol
squad squad
st st,libxml2-utils
stn stn
sven,libssl1.1:i386,zlib1g:i386 sven,libssl1.1:i386,zlib1g:i386
terraria terraria

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

31
lgsm/modules/info_game.sh

@ -613,30 +613,29 @@ fn_info_game_pz() {
worldname="${worldname:-"NOT SET"}" worldname="${worldname:-"NOT SET"}"
} }
# Config Type: ini # Config Type: xml
# Parameters: true # Comment: <!-- -->
# Comment: ; or # # Example: <ServerName>SERVERNAME</ServerName>
# Example: SERVERNAME=SERVERNAME # Filetype: xml
# Filetype: ini
fn_info_game_st() { fn_info_game_st() {
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "maxplayers" "MAXPLAYER" fn_info_game_xml "adminpassword" "/SettingData/AdminPassword"
fn_info_game_ini "rconpassword" "RCONPASSWORD" fn_info_game_xml "maxplayers" "/SettingData/ServerMaxPlayers"
fn_info_game_ini "servername" "SERVERNAME" fn_info_game_xml "port" "/SettingData/GamePort"
fn_info_game_ini "serverpassword" "PASSWORD" 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 fi
clearinterval="${clearinterval:-"0"}" adminpassword="${adminpassword:-"NOT SET"}"
httpport="${port:-"0"}"
maxplayers="${maxplayers:-"0"}" maxplayers="${maxplayers:-"0"}"
port="${port:-"0"}" port="${port:-"0"}"
queryport="${queryport:-"0"}" queryport="${queryport:-"0"}"
rconpassword="${rconpassword:-"NOT SET"}"
saveinterval="${saveinterval:-"0"}" saveinterval="${saveinterval:-"0"}"
servername="${servername:-"NOT SET"}" servername="${servername:-"NOT SET"}"
serverpassword="${serverpassword:-"NOT SET"}" serverpassword="${serverpassword:-"NOT SET"}"
worldname="${worldname:-"NOT SET"}" worldname="${worldname:-"NOT SET"}"
worldtype="${worldtype:-"NOT SET"}" worldtype="${worldtype:-"NOT SET"}"
} }
# Config Type: ini # Config Type: ini
@ -911,7 +910,7 @@ fn_info_game_bf1942() {
# Comment: ; or # # Comment: ; or #
# Example: ServerName=SERVERNAME # Example: ServerName=SERVERNAME
# Filetype: ini # Filetype: ini
fn_info_game_ct(){ fn_info_game_ct() {
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "configip" "bindAddress" fn_info_game_ini "configip" "bindAddress"
fn_info_game_ini "gamemode" "gameMode" fn_info_game_ini "gamemode" "gameMode"
@ -1240,7 +1239,7 @@ fn_info_game_hw() {
port="${port:-"0"}" port="${port:-"0"}"
queryport="${queryport:-"0"}" queryport="${queryport:-"0"}"
maxplayers="${maxplayers:-"0"}" maxplayers="${maxplayers:-"0"}"
# #4189 option setting can be blank # #4189 option setting can be blank
# defaultmap="${defaultmap:-"NOT SET"}" # defaultmap="${defaultmap:-"NOT SET"}"
creativemode="${creativemode:-"NOT SET"}" creativemode="${creativemode:-"NOT SET"}"
} }
@ -1482,7 +1481,7 @@ fn_info_game_nec() {
# Comment: ; or # # Comment: ; or #
# Example: ServerName=SERVERNAME # Example: ServerName=SERVERNAME
# Filetype: ini # Filetype: ini
fn_info_game_ohd(){ fn_info_game_ohd() {
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini rconenabled "bEnabled" fn_info_game_ini rconenabled "bEnabled"
fn_info_game_ini rconport "ListenPort" fn_info_game_ini rconport "ListenPort"

13
lgsm/modules/info_messages.sh

@ -969,7 +969,7 @@ fn_info_message_csgo() {
} | column -s $'\t' -t } | column -s $'\t' -t
} }
fn_info_message_ct(){ fn_info_message_ct() {
fn_info_message_password_strip fn_info_message_password_strip
{ {
fn_port "header" fn_port "header"
@ -977,7 +977,7 @@ fn_info_message_ct(){
} | column -s $'\t' -t } | column -s $'\t' -t
} }
fn_info_message_dayz(){ fn_info_message_dayz() {
{ {
fn_port "header" fn_port "header"
fn_port "Game" port udp fn_port "Game" port udp
@ -1037,7 +1037,7 @@ fn_info_message_goldsrc() {
} | column -s $'\t' -t } | column -s $'\t' -t
} }
fn_info_message_hcu(){ fn_info_message_hcu() {
{ {
fn_port "header" fn_port "header"
fn_port "Game" port udp fn_port "Game" port udp
@ -1504,13 +1504,6 @@ fn_info_message_st() {
fn_port "header" fn_port "header"
fn_port "Game" port udp fn_port "Game" port udp
fn_port "Query" queryport 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 } | column -s $'\t' -t
} }

9
lgsm/modules/install_config.sh

@ -383,7 +383,7 @@ elif [ "${shortname}" == "css" ]; then
fn_list_config_locations fn_list_config_locations
elif [ "${shortname}" == "ct" ]; then elif [ "${shortname}" == "ct" ]; then
gamedirname="Craftopia" gamedirname="Craftopia"
array_configs+=( ServerSetting.ini ) array_configs+=(ServerSetting.ini)
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
@ -791,13 +791,6 @@ elif [ "${shortname}" == "sb" ]; then
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations 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 elif [ "${shortname}" == "stn" ]; then
gamedirname="SurvivetheNights" gamedirname="SurvivetheNights"
array_configs+=(ServerConfig.txt ServerUsers.txt TpPresets.json UserPermissions.json) array_configs+=(ServerConfig.txt ServerUsers.txt TpPresets.json UserPermissions.json)

Loading…
Cancel
Save