|
@@ -2,7 +2,7 @@
|
|
|
# LGSM info_config.sh function
|
|
# LGSM info_config.sh function
|
|
|
# Author: Daniel Gibbs
|
|
# Author: Daniel Gibbs
|
|
|
# Website: http://gameservermanagers.com
|
|
# Website: http://gameservermanagers.com
|
|
|
-lgsm_version="271215"
|
|
|
|
|
|
|
+lgsm_version="060116"
|
|
|
|
|
|
|
|
# Description: Gets specific details from config files.
|
|
# Description: Gets specific details from config files.
|
|
|
|
|
|
|
@@ -12,12 +12,6 @@ lgsm_version="271215"
|
|
|
# tr -d '=\"; ' remove selected charectors =\";
|
|
# tr -d '=\"; ' remove selected charectors =\";
|
|
|
# grep -v "foo" filter out lines that contain foo
|
|
# grep -v "foo" filter out lines that contain foo
|
|
|
|
|
|
|
|
-fn_servercfgfullpath(){
|
|
|
|
|
-if [ ! -f "${servercfgfullpath}" ]; then
|
|
|
|
|
- servercfgfullpath="\e[0;31mMISSING!\e[0m ${servercfgfullpath}"
|
|
|
|
|
-fi
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
## Just Cause 2
|
|
## Just Cause 2
|
|
|
if [ "${engine}" == "avalanche" ]; then
|
|
if [ "${engine}" == "avalanche" ]; then
|
|
|
|
|
|
|
@@ -68,8 +62,6 @@ if [ "${engine}" == "avalanche" ]; then
|
|
|
port="0"
|
|
port="0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
## Dont Starve Together
|
|
## Dont Starve Together
|
|
|
elif [ "${engine}" == "dontstarve" ]; then
|
|
elif [ "${engine}" == "dontstarve" ]; then
|
|
|
|
|
|
|
@@ -131,8 +123,6 @@ elif [ "${engine}" == "dontstarve" ]; then
|
|
|
port="0"
|
|
port="0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
## Project Zomboid
|
|
## Project Zomboid
|
|
|
elif [ "${engine}" == "projectzomboid" ]; then
|
|
elif [ "${engine}" == "projectzomboid" ]; then
|
|
|
|
|
|
|
@@ -164,8 +154,6 @@ elif [ "${engine}" == "projectzomboid" ]; then
|
|
|
port="0"
|
|
port="0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# ARMA 3
|
|
# ARMA 3
|
|
|
elif [ "${engine}" == "realvirtuality" ]; then
|
|
elif [ "${engine}" == "realvirtuality" ]; then
|
|
|
|
|
|
|
@@ -233,8 +221,6 @@ elif [ "${engine}" == "realvirtuality" ]; then
|
|
|
masterport="0"
|
|
masterport="0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# Serious Sam
|
|
# Serious Sam
|
|
|
elif [ "${engine}" == "seriousengine35" ]; then
|
|
elif [ "${engine}" == "seriousengine35" ]; then
|
|
|
|
|
|
|
@@ -294,8 +280,6 @@ elif [ "${engine}" == "seriousengine35" ]; then
|
|
|
queryport="0"
|
|
queryport="0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# Source Engine Games
|
|
# Source Engine Games
|
|
|
elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
|
|
elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
|
|
|
|
|
|
|
@@ -329,8 +313,6 @@ elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
|
|
|
rconpassword="\e[0;31mUNAVAILABLE\e[0m"
|
|
rconpassword="\e[0;31mUNAVAILABLE\e[0m"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# Spark (NS2: Combat)
|
|
# Spark (NS2: Combat)
|
|
|
elif [ "${engine}" == "spark" ]; then
|
|
elif [ "${engine}" == "spark" ]; then
|
|
|
|
|
|
|
@@ -342,8 +324,6 @@ elif [ "${engine}" == "spark" ]; then
|
|
|
queryport="0"
|
|
queryport="0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# Teamspeak 3
|
|
# Teamspeak 3
|
|
|
elif [ "${gamename}" == "Teamspeak 3" ]; then
|
|
elif [ "${gamename}" == "Teamspeak 3" ]; then
|
|
|
|
|
|
|
@@ -390,8 +370,6 @@ elif [ "${gamename}" == "Teamspeak 3" ]; then
|
|
|
fileport="30033"
|
|
fileport="30033"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# Teeworlds
|
|
# Teeworlds
|
|
|
elif [ "${engine}" == "teeworlds" ]; then
|
|
elif [ "${engine}" == "teeworlds" ]; then
|
|
|
|
|
|
|
@@ -443,8 +421,6 @@ elif [ "${engine}" == "teeworlds" ]; then
|
|
|
slots="12"
|
|
slots="12"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# Terraria
|
|
# Terraria
|
|
|
elif [ "${engine}" == "terraria" ]; then
|
|
elif [ "${engine}" == "terraria" ]; then
|
|
|
|
|
|
|
@@ -591,8 +567,6 @@ elif [ "${gamename}" == "7 Days To Die" ]; then
|
|
|
queryport="0"
|
|
queryport="0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# Hurtworld (unity3d)
|
|
# Hurtworld (unity3d)
|
|
|
elif [ "${gamename}" == "Hurtworld" ]; then
|
|
elif [ "${gamename}" == "Hurtworld" ]; then
|
|
|
|
|
|
|
@@ -763,8 +737,6 @@ elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
|
|
|
|
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
# ARK: Survivaial Evolved
|
|
# ARK: Survivaial Evolved
|
|
|
elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
|
|
elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
|
|
|
|
|
|
|
@@ -832,6 +804,4 @@ elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
|
|
|
queryport="0"
|
|
queryport="0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fn_servercfgfullpath
|
|
|
|
|
-
|
|
|
|
|
fi
|
|
fi
|