From c0f0ed5b57e5d8c9fd8f40a07db9b8527aadf261 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 10 May 2015 12:25:39 +0100 Subject: [PATCH] Arma 3 updated Port Requirement --- Arma3/arma3server | 3 +-- functions/fn_details_config | 6 ++---- functions/fn_start | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Arma3/arma3server b/Arma3/arma3server index cf39d25d1..feab9e5d1 100644 --- a/Arma3/arma3server +++ b/Arma3/arma3server @@ -18,12 +18,11 @@ steamuser="username" steampass="password" # Start Variables -port="2302" ip="0.0.0.0" updateonstart="no" fn_parms(){ -parms="-netlog -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}" +parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}" } #### Advanced Variables #### diff --git a/functions/fn_details_config b/functions/fn_details_config index 59bcd6aa5..f63a0a548 100644 --- a/functions/fn_details_config +++ b/functions/fn_details_config @@ -2,7 +2,7 @@ # LGSM fn_details_config function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +# Version: 160415 # Description: Gets specific details from config files. @@ -15,9 +15,7 @@ elif [ "${engine}" == "projectzomboid" ]; then elif [ "${engine}" == "realvirtuality" ]; then servername=$(grep -s hostname "${servercfgfullpath}"| grep -v //|sed -e 's/\//g'| tr -d '=\"; ') - if [ -z "${port}" ]; then - port=$(grep -s serverport= "${servercfgfullpath}"|grep -v //|tr -d '\r'|tr -cd [:digit:]) - fi + port=$(grep -s serverport= "${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:]) diff --git a/functions/fn_start b/functions/fn_start index d679d2e6d..7bed76b69 100644 --- a/functions/fn_start +++ b/functions/fn_start @@ -191,4 +191,4 @@ if [ "${gamename}" == "Teamspeak 3" ]; then fn_start_teamspeak3 else fn_start_tmux -fi \ No newline at end of file +fi