Browse Source

arma 3 updated port requirement

See issue
https://github.com/dgibbs64/linuxgsm/issues/325
pull/371/head
Daniel Gibbs 10 years ago
parent
commit
691e137240
  1. 1
      .gitignore
  2. 3
      Arma3/arma3server
  3. 6
      functions/fn_details_config
  4. 2
      functions/fn_start

1
.gitignore

@ -0,0 +1 @@
*.db

3
Arma3/arma3server

@ -18,11 +18,12 @@ steamuser="username"
steampass="password" steampass="password"
# Start Variables # Start Variables
port="2302"
ip="0.0.0.0" ip="0.0.0.0"
updateonstart="no" updateonstart="no"
fn_parms(){ fn_parms(){
parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}" parms="-netlog -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}"
} }
#### Advanced Variables #### #### Advanced Variables ####

6
functions/fn_details_config

@ -2,7 +2,7 @@
# LGSM fn_details_config function # LGSM fn_details_config function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 160415 # Version: 090515
# Description: Gets specific details from config files. # Description: Gets specific details from config files.
@ -15,7 +15,9 @@ elif [ "${engine}" == "projectzomboid" ]; then
elif [ "${engine}" == "realvirtuality" ]; then elif [ "${engine}" == "realvirtuality" ]; then
servername=$(grep -s hostname "${servercfgfullpath}"| grep -v //|sed -e 's/\<hostname\>//g'| tr -d '=\"; ') servername=$(grep -s hostname "${servercfgfullpath}"| grep -v //|sed -e 's/\<hostname\>//g'| tr -d '=\"; ')
port=$(grep -s serverport= "${servercfgfullpath}"|grep -v //|tr -d '\r'|tr -cd [:digit:]) if [ -z "${port}" ]; then
port=$(grep -s serverport= "${servercfgfullpath}"|grep -v //|tr -d '\r'|tr -cd [:digit:])
fi
queryport=$(grep -s steamqueryport= "${servercfgfullpath}"|grep -v //|tr -d '\r'|tr -cd [:digit:]) queryport=$(grep -s steamqueryport= "${servercfgfullpath}"|grep -v //|tr -d '\r'|tr -cd [:digit:])
masterport=$(grep -s steamport= "${servercfgfullpath}"|grep -v //|tr -d '\r'|tr -cd [:digit:]) masterport=$(grep -s steamport= "${servercfgfullpath}"|grep -v //|tr -d '\r'|tr -cd [:digit:])

2
functions/fn_start

@ -191,4 +191,4 @@ if [ "${gamename}" == "Teamspeak 3" ]; then
fn_start_teamspeak3 fn_start_teamspeak3
else else
fn_start_tmux fn_start_tmux
fi fi
Loading…
Cancel
Save