diff --git a/lgsm/functions/info_parms.sh b/lgsm/functions/info_parms.sh index 84c4810db..e0b63e585 100644 --- a/lgsm/functions/info_parms.sh +++ b/lgsm/functions/info_parms.sh @@ -28,8 +28,14 @@ fn_info_config_idtech3(){ } fn_info_config_realvirtuality(){ + port=$(grep "^serverport=" "${servercfgfullpath}" | tr -cd '[:digit:]') + queryport=$(grep "^steamqueryport=" "${servercfgfullpath}" | tr -cd '[:digit:]') + masterport=$(grep "^steamport=" "${servercfgfullpath}" | tr -cd '[:digit:]') + # Not Set - port=${rconport:-"0"} + port=${port:-"2302"} + queryport=${queryport:-"2303"} + masterport=${masterport:-"2304"} } fn_info_config_source(){ @@ -168,4 +174,4 @@ elif [ "${engine}" == "terraria" ]; then # Unreal/Unreal 2 engine elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then fn_info_config_unreal -fi \ No newline at end of file +fi