Browse Source

info things

pull/2911/head
scott 5 years ago
parent
commit
ad55c7a4b3
  1. 4
      lgsm/config-default/config-lgsm/mofmserver/_default.cfg
  2. 2
      lgsm/functions/info_messages.sh
  3. 8
      lgsm/functions/info_parms.sh

4
lgsm/config-default/config-lgsm/mofmserver/_default.cfg

@ -14,7 +14,7 @@
port="7777"
# The port used for beacons for initial connection. Make sure that this port is open in order for players to connect over the internet. Defaults to 15000.
queryport="15000"
beaconport="15000"
# Overrides the IP address the server is running on. The server will use one of the available IP addresses but will not ascertain that this is a publicly reachable IP address. Used in Multi-IP environments.
ip="0.0.0.0"
@ -24,7 +24,7 @@ maxplayers="32"
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){
parms="-port=${port} -BeaconPort=${queryport} -MULTIHOME="${ip}" -maxplayers=${maxplayers}"
parms="-port=${port} -BeaconPort=${beaconport} -MULTIHOME="${ip}" -maxplayers=${maxplayers}"
}
#### LinuxGSM Settings ####

2
lgsm/functions/info_messages.sh

@ -877,7 +877,7 @@ fn_info_message_mofm(){
{
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
echo -e "> Game\tINBOUND\t${port}\tudp"
echo -e "> ServerQuery\tINBOUND\t${port}\tudp"
echo -e "> BeaconPort\tINBOUND\t${port}\tudp"
} | column -s $'\t' -t
}

8
lgsm/functions/info_parms.sh

@ -85,6 +85,11 @@ fn_info_parms_mohaa(){
}
fn_info_parms_mofm(){
port=${port:-"7777"}
beaconport=${queryport:-"15000"}
}
fn_info_parms_mta(){
queryport=$((port + 123))
}
@ -245,6 +250,9 @@ elif [ "${shortname}" == "kf2" ]; then
fn_info_parms_kf2
elif [ "${shortname}" == "mohaa" ]; then
fn_info_parms_mohaa
#Memories of Mars
elif [ "${shortname}" == "mofm" ]; then
fn_info_parms_mofm
# Project Zomboid
elif [ "${shortname}" == "pz" ]; then
fn_info_parms_projectzomboid

Loading…
Cancel
Save