|
@@ -257,12 +257,14 @@ fn_info_config_projectcars(){
|
|
|
maxplayers="${zero}"
|
|
maxplayers="${zero}"
|
|
|
port="${zero}"
|
|
port="${zero}"
|
|
|
queryport="${zero}"
|
|
queryport="${zero}"
|
|
|
|
|
+ steamport="${zero}"
|
|
|
else
|
|
else
|
|
|
servername=$(grep "name" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/name//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
servername=$(grep "name" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/name//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
|
serverpassword=$(grep "password" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
serverpassword=$(grep "password" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
|
maxplayers=$(grep "maxPlayers" "${servercfgfullpath}" | grep -v "//" | tr -cd '[:digit:]')
|
|
maxplayers=$(grep "maxPlayers" "${servercfgfullpath}" | grep -v "//" | tr -cd '[:digit:]')
|
|
|
port=$(grep "hostPort" "${servercfgfullpath}" | grep -v "//" | tr -cd '[:digit:]')
|
|
port=$(grep "hostPort" "${servercfgfullpath}" | grep -v "//" | tr -cd '[:digit:]')
|
|
|
queryport=$(grep "queryPort" "${servercfgfullpath}" | grep -v "//" | tr -cd '[:digit:]')
|
|
queryport=$(grep "queryPort" "${servercfgfullpath}" | grep -v "//" | tr -cd '[:digit:]')
|
|
|
|
|
+ steamport=$(grep "steamPort" "${servercfgfullpath}" | grep -v "//" | tr -cd '[:digit:]')
|
|
|
|
|
|
|
|
# Not Set
|
|
# Not Set
|
|
|
servername=${servername:-"NOT SET"}
|
|
servername=${servername:-"NOT SET"}
|
|
@@ -270,6 +272,7 @@ fn_info_config_projectcars(){
|
|
|
maxplayers=${maxplayers:-"NOT SET"}
|
|
maxplayers=${maxplayers:-"NOT SET"}
|
|
|
port=${port:-"NOT SET"}
|
|
port=${port:-"NOT SET"}
|
|
|
queryport=${queryport:-"NOT SET"}
|
|
queryport=${queryport:-"NOT SET"}
|
|
|
|
|
+ steamport=${steamport:-"NOT SET"}
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
|
|
|