Browse Source

change bf1942 query

pull/2932/head
Daniel Gibbs 5 years ago
parent
commit
b58e08c584
  1. 2
      lgsm/config-default/config-lgsm/bf1942server/_default.cfg
  2. 4
      lgsm/functions/info_config.sh

2
lgsm/config-default/config-lgsm/bf1942server/_default.cfg

@ -119,7 +119,7 @@ stopmode="2"
# 4: gsquery
# 5: tcp
querymode="2"
querytype="protocol-valve"
querytype="protocol-gamespy1"
## Game Server Details
# Do not edit

4
lgsm/functions/info_config.sh

@ -181,7 +181,7 @@ fn_info_config_bf1942(){
queryport="${zero}"
else
servername=$(grep "game.serverName " "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^--/d' -e 's/game.serverName //g' | tr -d '=\";,:' | xargs)
servername=$(grep "game.serverName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^--/d' -e 's/game.serverName //g' | tr -d '=\";,:' | xargs)
serverpassword=$(grep "game.serverPassword" "${servercfgfullpath}" | sed -e 's/^ *//g' -e '/^--/d' -e 's/game.serverPassword//g' | tr -d '=\";,:' | xargs)
maxplayers=$(grep "game.serverMaxPlayers" "${servercfgfullpath}" | grep -v "\--" | tr -cd '[:digit:]')
port=$(grep "game.serverPort" "${servercfgfullpath}" | grep -v "\--" | tr -cd '[:digit:]')
@ -1501,7 +1501,7 @@ elif [ "${shortname}" == "bf1942" ]; then
fn_info_config_bf1942
# Battlefield: Vietnam
elif [ "${shortname}" == "bfv" ]; then
fn_info_config_bfv
fn_info_config_bfv
# Chivalry: Medieval Warfare
elif [ "${shortname}" == "cmw" ]; then
fn_info_config_chivalry

Loading…
Cancel
Save