Browse Source

feat: add soulmask to config & info functions

pull/4590/head
Intel44 1 year ago
parent
commit
632f34f052
  1. 22
      lgsm/modules/info_game.sh
  2. 19
      lgsm/modules/info_messages.sh
  3. 6
      lgsm/modules/install_config.sh

22
lgsm/modules/info_game.sh

@ -2006,6 +2006,26 @@ fn_info_game_sf() {
beaconport="${beaconport:-"0"}"
}
# Config Type: Parameters (with an ini)
fn_info_game_sm() {
servername="${servername:-"NOT SET"}"
adminpassword="${adminpassword:-"NOT SET"}"
serverpassword="${serverpassword:-"NOT SET"}"
port="${port:-"0"}"
queryport="${queryport:-"0"}"
maxplayers="${maxplayers:-"0"}"
# telnet config
telnetenabled=true
telnetport="${telnetport:-"0"}"
# Telnet IP will be localhost if no password is set
# check_ip will set the IP first. This will overwrite it.
if [ -z "${telnetpass}" ]; then
telnetip="127.0.0.1"
fi
telnetpass="${telnetpass:-"NOT SET"}"
telnetport="${telnetport:-"0"}"
}
# Config Type: QuakeC
# Comment: // or /* */
# Example: set sv_hostname "SERVERNAME"
@ -2427,6 +2447,8 @@ elif [ "${shortname}" == "sdtd" ]; then
fn_info_game_sdtd
elif [ "${shortname}" == "sf" ]; then
fn_info_game_sf
elif [ "${shortname}" == "sm" ]; then
fn_info_game_sm
elif [ "${shortname}" == "sof2" ]; then
fn_info_game_sof2
elif [ "${shortname}" == "sol" ]; then

19
lgsm/modules/info_messages.sh

@ -1456,6 +1456,23 @@ fn_info_messages_sf() {
} | column -s $'\t' -t
}
fn_info_messages_sm() {
fn_info_messages_password_strip
{
fn_port "header"
fn_port "Game" port udp
fn_port "Query" queryport udp
fn_port "Telnet" telnetport tcp
} | column -s $'\t' -t
echo -e ""
echo -e "${bold}${lightgreen}${gamename} Telnet${default}"
fn_messages_separator
{
echo -e "${lightblue}Telnet enabled:\t${default}${telnetenabled}"
echo -e "${lightblue}Telnet address:\t${default}${telnetip} ${telnetport}"
} | column -s $'\t' -t
}
fn_info_messages_sof2() {
{
fn_port "header"
@ -1852,6 +1869,8 @@ fn_info_messages_select_engine() {
fn_info_messages_sdtd
elif [ "${shortname}" == "sf" ]; then
fn_info_messages_sf
elif [ "${shortname}" == "sm" ]; then
fn_info_messages_sm
elif [ "${shortname}" == "sof2" ]; then
fn_info_messages_sof2
elif [ "${shortname}" == "sol" ]; then

6
lgsm/modules/install_config.sh

@ -701,6 +701,12 @@ elif [ "${shortname}" == "sf" ]; then
fn_default_config_remote
fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "sm" ]; then
array_configs+=(Engine.ini)
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "sol" ]; then
array_configs+=(soldat.ini)
fn_fetch_default_config

Loading…
Cancel
Save