Browse Source
* add new details to queryraw
* fix httpport ac server
* correct info bug for bt1944server
* added bt1944 to info_parms
update info messages
bt1944ports
* steamport
* raw port
raw
* message display
* check_root bug
* add more ports
merge
words
* arma 3 improvements
* master port
* add arma3 ports
* portnames
* strip ./ from executable
* exec
* integrate ss
* replace netstat with ss
* port header
headerr
* remove inbound outbound
* ark
* shorten executable
* change to port display
* add info_distro
* response
* acserver improvements
acserver
ac
* add assettocorsa query
* ss
* rawport
* update av server exec
merge
av changes
* av ports
* av ss
bug
* av
* avserver
* remove port
* port changes
* listen
* col
* bt1944
* cmw
cmw
* cmw
* changes
* etl
* add servers
* hw
* inss
ins
* add rcon to insserver
* rcon
* jc
* jc3 minecraft
* mcb
* onset
* Memories of mars
* mumble
* changes
* steamport
* tcp query
* udp
* fix
* steamport
* info_distro now required before parms
* srcdslinuxopid
* srcds_linux
* hlds_linux
* ins
* date
* ns2
* rising world
rising world query port
rising world javaram
rising world
a
* rising world ports
* portipv6
* add ports to query raw
* add Rising World Query
* fix rising world game mode
* update 7 Days to Die
* port3
* increased sdtd glibc to 2.27
* corrected starbound ports location
* starbound
* added new SteamCMD error code
* Master server check if query raw
* Stationeers
* stationeers
* webadmin
* added extra query ports for ts3
a
* add teamspeak3 query
* add ts3 query details
* ts3 version
* queryport reverts back once gamedig finished
* added telnetport to ts3
* fix TS3 bug causing shutdown when starting debug
the fix was running and killing a running server
* show start parameters for ts3
* tower unite
* terraria
* terraria
* ss command in dev-query-raw
info_messages.sh
* ut4 and others
* more updates
* soldat
* col vint
* pvr query port
tab
* pvr query type tcp
* pvr gameport+400
* changed to shortname
* unreal99
* ut99 beacon
* httpport
* ut2k4
* kf
* kf
* bug
* httpport
* httpport
* more kf ports
* lan port
* steammasterport
* kf
* ports
* ports
* ut2k4
* ut2k4
* lanport
* lanport
* ro
* ro
* kf2
* httpport
* update naming
* ut3
* ut3
* ut3
* mom
* mom
* reshuffle
* sort list
* function re-shuffle
* merge info_parms and info_config into info_game.sh
a
* updated source filters
* added ac to edit ports array
* Revert "updated source filters"
This reverts commit e8621eaed6
.
* spaces
* fix typo
* tidy
* re ordered ports edit array
* added java
* add bf1942
* Added Last Oasis
* corrected pc function name
* re ordered in alpha
* space
* remove space
pull/3563/head
committed by
GitHub
33 changed files with 2190 additions and 1869 deletions
|
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,332 +0,0 @@ |
|||
#!/bin/bash |
|||
# LinuxGSM info_parms.sh module |
|||
# Author: Daniel Gibbs |
|||
# Contributors: http://linuxgsm.com/contrib |
|||
# Website: https://linuxgsm.com |
|||
# Description: If specific parms are not set then this will be displayed in details. |
|||
|
|||
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|||
|
|||
## Examples of filtering to get info from config files |
|||
# sed 's/foo//g' - remove foo |
|||
# tr -cd '[:digit:]' leave only digits |
|||
# tr -d '=\"; ' remove selected charectors =\"; |
|||
# grep -v "foo" filter out lines that contain foo |
|||
|
|||
unavailable="${red}UNAVAILABLE${default}" |
|||
zero="${red}0${default}" |
|||
|
|||
fn_info_parms_ark(){ |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
rconport=${rconport:-"0"} |
|||
maxplayers=${maxplayers:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_barotrauma(){ |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_cod(){ |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
maxplayers=${maxplayers:-"0"} |
|||
port=${port:-"0"} |
|||
queryport=${port:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_dst(){ |
|||
sharding=${sharding:-"NOT SET"} |
|||
master=${master:-"NOT SET"} |
|||
shard=${shard:-"NOT SET"} |
|||
cluster=${cluster:-"NOT SET"} |
|||
cave=${cave:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_factorio(){ |
|||
port=${port:-"0"} |
|||
rconport=${rconport:-"0"} |
|||
rconpassword=${rconpassword:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_hurtworld(){ |
|||
servername=${servername:-"NOT SET"} |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
maxplayers=${maxplayers:-"0"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
creativemode=${creativemode:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_inss(){ |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
servername=${servername:-"NOT SET"} |
|||
serverpassword=${serverpassword:-"NOT SET"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
defaultscenario=${defaultscenario:-"NOT SET"} |
|||
maxplayers=${maxplayers:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_jk2(){ |
|||
queryport=${port} |
|||
} |
|||
|
|||
fn_info_parms_kf2(){ |
|||
queryport=${queryport:-"0"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_lo(){ |
|||
servername=${servername:-"NOT SET"} |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_mordhau(){ |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
beaconport=${beaconport:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_mohaa(){ |
|||
port=${port:-"0"} |
|||
queryport=${port:-"0"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_mom(){ |
|||
port=${port:-"7777"} |
|||
beaconport=${queryport:-"15000"} |
|||
} |
|||
|
|||
fn_info_parms_mta(){ |
|||
queryport=$((port + 123)) |
|||
} |
|||
|
|||
fn_info_parms_projectzomboid(){ |
|||
adminpassword=${adminpassword:-"NOT SET"} |
|||
queryport=${port:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_quakeworld(){ |
|||
port=${port:-"0"} |
|||
queryport=${port:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_quake2(){ |
|||
port=${port:-"0"} |
|||
queryport=${port:-"0"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_realvirtuality(){ |
|||
port=${port:-"0"} |
|||
queryport=$((port + 1)) |
|||
} |
|||
|
|||
fn_info_parms_risingworld(){ |
|||
servername=${servername:-"NOT SET"} |
|||
port=${port:-"0"} |
|||
httpqueryport=$((port - 1)) |
|||
} |
|||
|
|||
fn_info_parms_rtcw(){ |
|||
port=${port:-"0"} |
|||
queryport="${port:-"0"}" |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_rust(){ |
|||
servername=${servername:-"NOT SET"} |
|||
port=${port:-"0"} |
|||
queryport=${port:-"0"} |
|||
appport=${appport:-"0"} |
|||
rconport=${rconport:-"0"} |
|||
gamemode=${gamemode:-"NOT SET"} |
|||
maxplayers=${maxplayers:-"0"} |
|||
rconpassword=${rconpassword:-"NOT SET"} |
|||
rconweb=${rconweb:-"NOT SET"} |
|||
tickrate=${tickrate:-"0"} |
|||
saveinterval=${saveinterval:-"0"} |
|||
serverlevel=${serverlevel:-"NOT SET"} |
|||
worldsize=${worldsize:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_samp(){ |
|||
queryport=${port:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_sof2(){ |
|||
port=${port:-"0"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_source(){ |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
maxplayers=${maxplayers:-"0"} |
|||
port=${port:-"0"} |
|||
queryport=${port:-"0"} |
|||
clientport=${clientport:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_spark(){ |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
maxplayers=${maxplayers:-"0"} |
|||
port=${port:-"0"} |
|||
queryport=$((port + 1)) |
|||
servername=${servername:-"NOT SET"} |
|||
serverpassword=${serverpassword:-"NOT SET"} |
|||
webadminuser=${webadminuser:-"NOT SET"} |
|||
webadminpass=${webadminpass:-"NOT SET"} |
|||
webadminport=${webadminport:-"0"} |
|||
mods=${mods:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_stickybots(){ |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
servername=${servername:-"NOT SET"} |
|||
serverpassword=${serverpassword:-"NOT SET"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
maxplayers=${maxplayers:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_sof2(){ |
|||
port=${port:-"0"} |
|||
queryport=${port:-"0"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_towerunite(){ |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_teeworlds(){ |
|||
queryport=${port:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_pavlovvr(){ |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_unreal(){ |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
queryport=$((port + 1)) |
|||
} |
|||
|
|||
fn_info_parms_unreal2(){ |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
queryport=$((port + 1)) |
|||
} |
|||
|
|||
fn_info_parms_unreal3(){ |
|||
port=${port:-"0"} |
|||
queryport=${queryport:-"0"} |
|||
defaultmap=${defaultmap:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_unturned(){ |
|||
servername=${selfname:-"NOT SET"} |
|||
port=${port:-"0"} |
|||
queryport=$((port + 1)) |
|||
} |
|||
|
|||
fn_info_parms_ut(){ |
|||
port=${port:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_vh(){ |
|||
port=${port:-"0"} |
|||
if [ "${public}" != "0" ]; then |
|||
queryport=$((port + 1)) |
|||
else |
|||
querymode="1" |
|||
fi |
|||
gameworld=${gameworld:-"NOT SET"} |
|||
serverpassword=${serverpassword:-"NOT SET"} |
|||
servername=${servername:-"NOT SET"} |
|||
} |
|||
|
|||
fn_info_parms_wf(){ |
|||
port=${port:-"0"} |
|||
queryport="${port:-"0"}" |
|||
webadminport=${webadminport:-"0"} |
|||
} |
|||
|
|||
fn_info_parms_queryport(){ |
|||
queryport="${port:-"0"}" |
|||
} |
|||
|
|||
if [ "${shortname}" == "ark" ]; then |
|||
fn_info_parms_ark |
|||
elif [ "${shortname}" == "arma3" ]; then |
|||
fn_info_parms_realvirtuality |
|||
elif [ "${shortname}" == "bt" ]; then |
|||
fn_info_parms_barotrauma |
|||
elif [ "${shortname}" == "cod" ]||[ "${shortname}" == "coduo" ]||[ "${engine}" == "iw2.0" ]||[ "${engine}" == "iw3.0" ]; then |
|||
fn_info_parms_cod |
|||
elif [ "${shortname}" == "fctr" ]; then |
|||
fn_info_parms_factorio |
|||
elif [ "${shortname}" == "inss" ]; then |
|||
fn_info_parms_inss |
|||
elif [ "${shortname}" == "jk2" ]; then |
|||
fn_info_parms_jk2 |
|||
elif [ "${shortname}" == "kf2" ]; then |
|||
fn_info_parms_kf2 |
|||
elif [ "${shortname}" == "lo" ]; then |
|||
fn_info_parms_lo |
|||
elif [ "${shortname}" == "mohaa" ]; then |
|||
fn_info_parms_mohaa |
|||
elif [ "${shortname}" == "mom" ]; then |
|||
fn_info_parms_mom |
|||
elif [ "${shortname}" == "pz" ]; then |
|||
fn_info_parms_projectzomboid |
|||
elif [ "${shortname}" == "pvr" ]; then |
|||
fn_info_parms_pavlovvr |
|||
elif [ "${shortname}" == "qw" ]; then |
|||
fn_info_parms_quakeworld |
|||
elif [ "${shortname}" == "q2" ]||[ "${shortname}" == "q3" ]; then |
|||
fn_info_parms_quake2 |
|||
elif [ "${shortname}" == "rtcw" ]; then |
|||
fn_info_parms_rtcw |
|||
elif [ "${shortname}" == "rust" ]; then |
|||
fn_info_parms_rust |
|||
elif [ "${shortname}" == "samp" ]; then |
|||
fn_info_parms_samp |
|||
elif [ "${shortname}" == "rw" ]; then |
|||
fn_info_parms_risingworld |
|||
elif [ "${shortname}" == "sof2" ]; then |
|||
fn_info_parms_sof2 |
|||
elif [ "${shortname}" == "sbots" ]; then |
|||
fn_info_parms_stickybots |
|||
elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then |
|||
fn_info_parms_source |
|||
elif [ "${engine}" == "spark" ]; then |
|||
fn_info_parms_spark |
|||
elif [ "${shortname}" == "tu" ]; then |
|||
fn_info_parms_towerunite |
|||
elif [ "${shortname}" == "tw" ]; then |
|||
fn_info_parms_teeworlds |
|||
elif [ "${shortname}" == "vh" ]; then |
|||
fn_info_parms_vh |
|||
elif [ "${shortname}" == "mh" ]; then |
|||
fn_info_parms_mordhau |
|||
elif [ "${shortname}" == "mta" ]; then |
|||
fn_info_parms_mta |
|||
elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then |
|||
fn_info_parms_unreal |
|||
elif [ "${engine}" == "unreal3" ]; then |
|||
fn_info_parms_unreal3 |
|||
elif [ "${shortname}" == "unt" ]; then |
|||
fn_info_parms_unturned |
|||
elif [ "${shortname}" == "ut" ]; then |
|||
fn_info_parms_ut |
|||
elif [ "${shortname}" == "wf" ]; then |
|||
fn_info_parms_wf |
|||
# for servers that have a missing queryport from the config |
|||
elif [ "${shortname}" == "scpsl" ]||[ "${shortname}" == "scpslsm" ]; then |
|||
fn_info_parms_queryport |
|||
fi |
Loading…
Reference in new issue