From ad55c7a4b3444ab81ea7ac1f60dff3b2d9437cf2 Mon Sep 17 00:00:00 2001 From: scott Date: Sat, 30 May 2020 10:48:16 +0900 Subject: [PATCH] info things --- lgsm/config-default/config-lgsm/mofmserver/_default.cfg | 4 ++-- lgsm/functions/info_messages.sh | 2 +- lgsm/functions/info_parms.sh | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lgsm/config-default/config-lgsm/mofmserver/_default.cfg b/lgsm/config-default/config-lgsm/mofmserver/_default.cfg index 4eb5c0678..29c00d57d 100644 --- a/lgsm/config-default/config-lgsm/mofmserver/_default.cfg +++ b/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 #### diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index d5f07baa8..c6be35e32 100644 --- a/lgsm/functions/info_messages.sh +++ b/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 } diff --git a/lgsm/functions/info_parms.sh b/lgsm/functions/info_parms.sh index 49b0dd590..f41e953e9 100644 --- a/lgsm/functions/info_parms.sh +++ b/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