|
@@ -627,7 +627,21 @@ fn_info_config_unreal3(){
|
|
|
webadminpass="${unavailable}"
|
|
webadminpass="${unavailable}"
|
|
|
else
|
|
else
|
|
|
servername=$(grep "ServerName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/ServerName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
servername=$(grep "ServerName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/ServerName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
|
- webadminpass=$(grep grep "AdminPassword" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/AdminPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
|
|
|
|
|
+ webadminpass=$(grep "AdminPassword" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/AdminPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
|
|
|
+
|
|
|
|
|
+ # Not Set
|
|
|
|
|
+ servername=${servername:-"NOT SET"}
|
|
|
|
|
+ webadminpass=${webadminpass:-"NOT SET"}
|
|
|
|
|
+ fi
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+fn_info_config_kf2(){
|
|
|
|
|
+ if [ ! -f "${servercfgfullpath}" ]; then
|
|
|
|
|
+ servername="${unavailable}"
|
|
|
|
|
+ webadminpass="${unavailable}"
|
|
|
|
|
+ else
|
|
|
|
|
+ servername=$(grep "ServerName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/ServerName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
|
|
|
+ webadminpass=$(grep "AdminPassword" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/AdminPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
|
|
|
|
|
|
|
|
# Not Set
|
|
# Not Set
|
|
|
servername=${servername:-"NOT SET"}
|
|
servername=${servername:-"NOT SET"}
|
|
@@ -804,6 +818,18 @@ elif [ "${engine}" == "dontstarve" ]; then
|
|
|
# Factorio
|
|
# Factorio
|
|
|
elif [ "${gamename}" == "Factorio" ]; then
|
|
elif [ "${gamename}" == "Factorio" ]; then
|
|
|
fn_info_config_factorio
|
|
fn_info_config_factorio
|
|
|
|
|
+# Killing Floor 2
|
|
|
|
|
+elif [ "${gamename}" == "Killing Floor 2" ]; then
|
|
|
|
|
+ fn_info_config_kf2
|
|
|
|
|
+# Minecraft
|
|
|
|
|
+elif [ "${engine}" == "lwjgl2" ]; then
|
|
|
|
|
+ fn_info_config_minecraft
|
|
|
|
|
+# Project Cars
|
|
|
|
|
+elif [ "${gamename}" == "Project Cars" ]; then
|
|
|
|
|
+ fn_info_config_projectcars
|
|
|
|
|
+# Project Zomboid
|
|
|
|
|
+elif [ "${engine}" == "projectzomboid" ]; then
|
|
|
|
|
+ fn_info_config_projectzomboid
|
|
|
# QuakeWorld
|
|
# QuakeWorld
|
|
|
elif [ "${gamename}" == "QuakeWorld" ]; then
|
|
elif [ "${gamename}" == "QuakeWorld" ]; then
|
|
|
fn_info_config_quakeworld
|
|
fn_info_config_quakeworld
|
|
@@ -816,15 +842,6 @@ elif [ "${gamename}" == "Quake 3: Arena" ]; then
|
|
|
# Quake Live
|
|
# Quake Live
|
|
|
elif [ "${gamename}" == "Quake Live" ]; then
|
|
elif [ "${gamename}" == "Quake Live" ]; then
|
|
|
fn_info_config_quakelive
|
|
fn_info_config_quakelive
|
|
|
-# Minecraft
|
|
|
|
|
-elif [ "${engine}" == "lwjgl2" ]; then
|
|
|
|
|
- fn_info_config_minecraft
|
|
|
|
|
-# Project Cars
|
|
|
|
|
-elif [ "${gamename}" == "Project Cars" ]; then
|
|
|
|
|
- fn_info_config_projectcars
|
|
|
|
|
-# Project Zomboid
|
|
|
|
|
-elif [ "${engine}" == "projectzomboid" ]; then
|
|
|
|
|
- fn_info_config_projectzomboid
|
|
|
|
|
# ARMA 3
|
|
# ARMA 3
|
|
|
elif [ "${engine}" == "realvirtuality" ]; then
|
|
elif [ "${engine}" == "realvirtuality" ]; then
|
|
|
fn_info_config_realvirtuality
|
|
fn_info_config_realvirtuality
|