Browse Source

fix(bf1942server): alter query type to protocol-gamespy1 (#2932)

pull/2947/head
Daniel Gibbs 5 years ago
committed by GitHub
parent
commit
a40bdf3b80
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lgsm/config-default/config-lgsm/bf1942server/_default.cfg
  2. 2
      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

2
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:]')

Loading…
Cancel
Save