@ -18,13 +18,13 @@ fn_info_config_avalanche(){
if [ ! -f " ${ servercfgfullpath } " ] ; then
servername = " ${ unavailable } "
serverpassword = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
port = " ${ zero } "
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]*$//' )
serverpassword = $( grep "Password" " ${ servercfgfullpath } " | sed -e 's/^ *//g' -e '/^--/d' -e 's/Password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slot s= $( grep "MaxPlayers" " ${ servercfgfullpath } " | grep -v "\--" | tr -cd '[:digit:]' )
maxplayer s= $( grep "MaxPlayers" " ${ servercfgfullpath } " | grep -v "\--" | tr -cd '[:digit:]' )
port = $( grep "BindPort" " ${ servercfgfullpath } " | grep -v "\--" | tr -cd '[:digit:]' )
ip = $( grep "BindIP" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^--/d' -e 's/BindIP//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
@ -34,7 +34,7 @@ fn_info_config_avalanche(){
# Not Set
servername = ${ servername :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
port = ${ port :- "0" }
fi
}
@ -43,14 +43,14 @@ fn_info_config_bf1942(){
if [ ! -f " ${ servercfgfullpath } " ] ; then
servername = " ${ unavailable } "
serverpassword = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
port = " ${ zero } "
queryport = " ${ zero } "
else
servername = $( grep "game.serverName " " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^--/d' -e 's/game.serverName //g' | tr -d '=\";,:' | xargs)
serverpassword = $( grep "game.serverPassword" " ${ servercfgfullpath } " | sed -e 's/^ *//g' -e '/^--/d' -e 's/game.serverPassword//g' | tr -d '=\";,:' | xargs)
slot s= $( grep "game.serverMaxPlayers" " ${ servercfgfullpath } " | grep -v "\--" | tr -cd '[:digit:]' )
maxplayer s= $( grep "game.serverMaxPlayers" " ${ servercfgfullpath } " | grep -v "\--" | tr -cd '[:digit:]' )
port = $( grep "game.serverPort" " ${ servercfgfullpath } " | grep -v "\--" | tr -cd '[:digit:]' )
queryport = "22000"
@ -61,7 +61,7 @@ fn_info_config_bf1942(){
# Not Set
servername = ${ servername :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
port = ${ port :- "0" }
fi
}
@ -94,29 +94,62 @@ fn_info_config_cod2(){
fi
}
fn_info_config_dontstarve ( ) {
fn_info_config_codwaw ( ) {
if [ ! -f " ${ servercfgfullpath } " ] ; then
servername = " ${ unavailable } "
rconpassword = " ${ unavailable } "
else
servername = $( grep "sv_hostname " " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set sv_hostname //g' | tr -d '=\";,:' | xargs)
rconpassword = $( grep "rconpassword" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set rconpassword //g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
# Not Set
servername = ${ servername :- "NOT SET" }
rconpassword = ${ rconpassword = :- "NOT SET" }
fi
}
fn_info_config_dontstarve( ) {
if [ ! -f " ${ clustercfgfullpath } " ] ; then
servername = " ${ unavailable } "
serverpassword = " ${ unavailable } "
slots = " ${ zero } "
maxplayer s= " ${ zero } "
gamemode = " ${ unavailable } "
tickrate = " ${ zero } "
port = " ${ zero } "
master port= " ${ zero } "
else
servername = $( grep "default_server_name" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/default_server_name//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
serverpassword = $( grep "server_password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/server_password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slots = $( grep "max_players" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
gamemode = $( grep "game_mode" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/game_mode//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
tickrate = $( grep "tick_rate" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
port = $( grep "server_port" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
servername = $( grep "cluster_name" " ${ clustercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/cluster_name//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
serverpassword = $( grep "cluster_password" " ${ clustercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/cluster_password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
maxplayers = $( grep "max_players" " ${ clustercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
gamemode = $( grep "game_mode" " ${ clustercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/game_mode//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
tickrate = $( grep "tick_rate" " ${ clustercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
masterport = $( grep "master_port" " ${ clustercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
ip = $( grep "bind_ip" " ${ clustercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/bind_ip//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
ipsetinconfig = 1
ipinconfigvar = "bind_ip"
# Not Set
servername = ${ servername :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
gamemode = ${ gamemode :- "NOT SET" }
tickrate = ${ tickrate :- "0" }
masterport = ${ masterport :- "0" }
fi
if [ ! -f " ${ servercfgfullpath } " ] ; then
port = " ${ zero } "
steamauthenticationport = " ${ zero } "
steammasterserverport = " ${ zero } "
else
port = $( grep "server_port" " ${ servercfgfullpath } " | grep "^server_port" | grep -v "#" | tr -cd '[:digit:]' )
steamauthenticationport = $( grep "authentication_port" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
steammasterserverport = $( grep "master_server_port" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
# Not Set
port = ${ port :- "0" }
steamauthenticationport = ${ steamauthenticationport :- "0" }
steammasterserverport = ${ steammasterserverport :- "0" }
fi
}
@ -125,7 +158,7 @@ fn_info_config_minecraft(){
servername = " ${ unavailable } "
rconpassword = " ${ unavailable } "
rconport = " ${ zero } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
port = " ${ zero } "
gamemode = " ${ unavailable } "
gameworld = " ${ unavailable } "
@ -133,7 +166,7 @@ fn_info_config_minecraft(){
servername = $( grep "motd" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/motd//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
rconpassword = $( grep "rcon.password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/rcon.password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
rconport = $( grep "rcon.port" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
slot s= $( grep "max-players" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
maxplayer s= $( grep "max-players" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
port = $( grep "server-port" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
gamemode = $( grep "gamemode" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
gameworld = $( grep "level-name" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/level-name//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
@ -146,7 +179,7 @@ fn_info_config_minecraft(){
servername = ${ servername :- "NOT SET" }
rconpassword = ${ rconpassword :- "NOT SET" }
rconport = ${ rconport :- "NOT SET" }
slots = ${ slot s:- "NOT SET" }
maxplayers = ${ maxplayer s:- "NOT SET" }
port = ${ port :- "NOT SET" }
gamemode = ${ gamemode :- "NOT SET" }
gameworld = ${ gameworld :- "NOT SET" }
@ -159,14 +192,14 @@ fn_info_config_projectzomboid(){
servername = " ${ unavailable } "
serverpassword = " ${ unavailable } "
rconpassword = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
port = " ${ zero } "
gameworld = " ${ unavailable } "
else
servername = $( grep "PublicName" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/PublicName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
serverpassword = $( grep "Password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' | grep "^Password" | sed -e '/^#/d' -e 's/Password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
rconpassword = $( grep "RCONPassword" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/RCONPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slot s= $( grep "MaxPlayers" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
maxplayer s= $( grep "MaxPlayers" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
port = $( grep "DefaultPort" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
gameworld = $( grep "Map" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' | grep "^Map" | sed -e '/^#/d' -e 's/Map//g' | tr -d '=\";' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
@ -174,7 +207,7 @@ fn_info_config_projectzomboid(){
servername = ${ servername :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
rconpassword = ${ rconpassword :- "NOT SET" }
slots = ${ slot s:- "NOT SET" }
maxplayers = ${ maxplayer s:- "NOT SET" }
port = ${ port :- "NOT SET" }
gameworld = ${ gameworld :- "NOT SET" }
fi
@ -185,16 +218,16 @@ fn_info_config_quake2(){
rconpassword = " ${ unavailable } "
servername = " ${ unavailable } "
serverpassword = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
else
rconpassword = $( grep "rcon_password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set rcon_password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
servername = $( grep "hostname" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set hostname//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slot s= $( grep "maxclients" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
maxplayer s= $( grep "maxclients" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
# Not Set
rconpassword = ${ rconpassword :- "NOT SET" }
servername = ${ servername :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
fi
}
@ -203,18 +236,18 @@ fn_info_config_quake3(){
rconpassword = " ${ unavailable } "
servername = " ${ unavailable } "
serverpassword = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
else
rconpassword = $( grep "zmq_rcon_password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set zmq_rcon_password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
servername = $( grep "sv_hostname" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set sv_hostname//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
serverpassword = $( grep "rconpassword" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set rconpassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slot s= $( grep "sv_maxclients" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
maxplayer s= $( grep "sv_maxclients" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
# Not Set
rconpassword = ${ rconpassword :- "NOT SET" }
servername = ${ servername :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
fi
}
@ -223,12 +256,12 @@ fn_info_config_quakelive(){
rconpassword = " ${ unavailable } "
servername = " ${ unavailable } "
serverpassword = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
else
rconpassword = $( grep "zmq_rcon_password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set zmq_rcon_password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
servername = $( grep "sv_hostname" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set sv_hostname//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
serverpassword = $( grep "g_password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set g_password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slot s= $( grep "sv_maxClients" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
maxplayer s= $( grep "sv_maxClients" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
ip = $( grep "set net_ip" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set net_ip//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
ipsetinconfig = 1
@ -238,7 +271,7 @@ fn_info_config_quakelive(){
rconpassword = ${ rconpassword :- "NOT SET" }
servername = ${ servername :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
fi
}
@ -247,14 +280,14 @@ fn_info_config_wolfensteinenemyterritory(){
rconpassword = " ${ unavailable } "
servername = " ${ unavailable } "
serverpassword = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
port = " ${ zero } "
else
port = $( grep "set net_port" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
rconpassword = $( grep "set zmq_rcon_password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set zmq_rcon_password //g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//g' -e '/^\//d' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
servername = $( grep "set sv_hostname" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set sv_hostname //g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
serverpassword = $( grep "set g_password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set g_password //g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slot s= $( grep "set sv_maxclients" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
maxplayer s= $( grep "set sv_maxclients" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
ip = $( grep "set net_ip" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/set net_ip//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
ipsetinconfig = 1
@ -264,7 +297,7 @@ fn_info_config_wolfensteinenemyterritory(){
rconpassword = ${ rconpassword :- "NOT SET" }
servername = ${ servername :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
port = ${ port :- "27960" }
fi
}
@ -274,18 +307,18 @@ fn_info_config_realvirtuality(){
servername = " ${ unavailable } "
adminpassword = " ${ unavailable } "
serverpassword = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
else
servername = $( grep "hostname" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/hostname//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
adminpassword = $( grep "passwordAdmin" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/passwordAdmin//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]*$//' )
slot s= $( grep "maxPlayers" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
maxplayer s= $( grep "maxPlayers" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
# Not Set
servername = ${ servername :- "NOT SET" }
adminpassword = ${ adminpassword :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
fi
}
@ -294,20 +327,20 @@ fn_info_config_seriousengine35(){
servername = " ${ unavailable } "
rconpassword = " ${ unavailable } "
gamemode = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
port = " ${ zero } "
else
servername = $( grep "prj_strMultiplayerSessionName" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/prj_strMultiplayerSessionName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
rconpassword = $( grep "rcts_strAdminPassword" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/rcts_strAdminPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
gamemode = $( grep "gam_idGameMode" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/gam_idGameMode//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slot s= $( grep "gam_ctMaxPlayers" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
maxplayer s= $( grep "gam_ctMaxPlayers" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
port = $( grep "prj_uwPort" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
# Not Set
servername = ${ servername :- "NOT SET" }
rconpassword = ${ rconpassword :- "NOT SET" }
gamemode = ${ gamemode :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
port = ${ port :- "0" }
fi
}
@ -336,14 +369,14 @@ fn_info_config_starbound(){
port = "21025"
queryport = "21025"
rconport = "21026"
slot s= "8"
maxplayer s= "8"
else
servername = $( grep "serverName" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e 's/serverName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
rconpassword = $( grep "rconServerPassword" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e 's/rconServerPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
port = $( grep "gameServerPort" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
queryport = $( grep "queryServerPort" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
rconport = $( grep "rconServerPort" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
slot s= $( grep "maxPlayers" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
maxplayer s= $( grep "maxPlayers" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
# Not Set
servername = ${ servername :- "NOT SET" }
@ -351,7 +384,7 @@ fn_info_config_starbound(){
port = ${ port :- "21025" }
queryport = ${ queryport :- "21025" }
rconport = ${ rconport :- "21026" }
slots = ${ slot s:- "8" }
maxplayers = ${ maxplayer s:- "8" }
fi
}
@ -404,20 +437,20 @@ fn_info_config_teeworlds(){
serverpassword = " ${ unavailable } "
rconpassword = " ${ unavailable } "
port = "8303"
slot s= "12"
maxplayer s= "12"
else
servername = $( grep "sv_name" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/^sv_name//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
serverpassword = $( grep "password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' | grep "^password" | sed -e '/^#/d' -e 's/^password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
rconpassword = $( grep "sv_rcon_password" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/^sv_rcon_password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
port = $( grep "sv_port" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
slot s= $( grep "sv_max_clients" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
maxplayer s= $( grep "sv_max_clients" " ${ servercfgfullpath } " | grep -v "#" | tr -cd '[:digit:]' )
# Not Set
servername = ${ servername :- "NOT SET" }
serverpassword = ${ serverpassword :- "NOT SET" }
rconpassword = ${ rconpassword :- "NOT SET" }
port = ${ port :- "8303" }
slots = ${ slot s:- "12" }
maxplayers = ${ maxplayer s:- "12" }
fi
}
@ -426,18 +459,18 @@ fn_info_config_terraria(){
servername = " ${ unavailable } "
port = " ${ zero } "
gameworld = " ${ unavailable } "
slot s= " ${ zero } "
maxplayer s= " ${ zero } "
else
servername = $( grep "worldname" " ${ servercfgfullpath } " | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/worldname//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
port = $( grep "port" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
gameworld = $( grep "world=" " ${ servercfgfullpath } " | grep -v "//" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/world=//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' )
slot s= $( grep "maxplayers" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
maxplayer s= $( grep "maxplayers" " ${ servercfgfullpath } " | grep -v "//" | tr -cd '[:digit:]' )
# Not Set
servername = ${ servername :- "NOT SET" }
port = ${ port :- "0" }
gameworld = ${ gameworld :- "NOT SET" }
slots = ${ slot s:- "0" }
maxplayers = ${ maxplayer s:- "0" }
fi
}
@ -493,7 +526,7 @@ fn_info_config_sdtd(){
telnetenabled = " ${ unavailable } "
telnetport = " ${ zero } "
telnetpass = " ${ unavailable } "
slot s= " ${ unavailable } "
maxplayer s= " ${ unavailable } "
gamemode = " ${ unavailable } "
gameworld = " ${ unavailable } "
else
@ -509,7 +542,7 @@ fn_info_config_sdtd(){
telnetport = $( grep "TelnetPort" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
telnetpass = $( grep "TelnetPassword" " ${ servercfgfullpath } " | sed 's/^.*value="//' | cut -f1 -d"\"" )
slot s= $( grep "ServerMaxPlayerCount" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
maxplayer s= $( grep "ServerMaxPlayerCount" " ${ servercfgfullpath } " | tr -cd '[:digit:]' )
gamemode = $( grep "GameMode" " ${ servercfgfullpath } " | sed 's/^.*value="//' | cut -f1 -d"\"" )
gameworld = $( grep "GameWorld" " ${ servercfgfullpath } " | sed 's/^.*value="//' | cut -f1 -d"\"" )
@ -524,7 +557,7 @@ fn_info_config_sdtd(){
telnetenabled = ${ telnetenabled :- "NOT SET" }
telnetport = ${ telnetport :- "0" }
telnetpass = ${ telnetpass :- "NOT SET" }
slots = ${ slot s:- "NOT SET" }
maxplayers = ${ maxplayer s:- "NOT SET" }
gamemode = ${ gamemode :- "NOT SET" }
gameworld = ${ gameworld :- "NOT SET" }
fi
@ -542,6 +575,9 @@ elif [ "${gamename}" == "Call of Duty" ]||[ "${gamename}" == "Call of Duty: Unit
# Call of Duty 2
elif [ " ${ gamename } " = = "Call of Duty 2" ] ; then
fn_info_config_cod2
# Call of Duty: World at War
elif [ " ${ gamename } " = = "Call of Duty: World at War" ] ; then
fn_info_config_codwaw
# Dont Starve Together
elif [ " ${ engine } " = = "dontstarve" ] ; then
fn_info_config_dontstarve