From 35be754990b48c01969f8f180a94336d4b5d3374 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 20 Dec 2015 21:22:56 +0000 Subject: [PATCH] New feature: Dev debug I useful feature for developers. This will enable a log to be created of everything that ran when executing a command. It uses the set command. When you run a command a file dev-debug.log is created and will output set -x --- 7DaysToDie/sdtdserver | 6 ++++++ ARKSurvivalEvolved/arkserver | 6 ++++++ Arma3/arma3server | 6 ++++++ BlackMesa/bmdmserver | 6 ++++++ BladeSymphony/bsserver | 6 ++++++ CounterStrike/csserver | 6 ++++++ CounterStrikeConditionZero/csczserver | 6 ++++++ CounterStrikeGlobalOffensive/csgoserver | 6 ++++++ CounterStrikeSource/cssserver | 6 ++++++ DayOfDefeat/dodserver | 6 ++++++ DayOfDefeatSource/dodsserver | 6 ++++++ DeathmatchClassic/dmcserver | 6 ++++++ DontStarveTogether/dstserver | 6 ++++++ DoubleActionBoogaloo/dabserver | 6 ++++++ FistfulOfFrags/fofserver | 6 ++++++ GarrysMod/gmodserver | 6 ++++++ HalfLife2Deathmatch/hl2dmserver | 6 ++++++ HalfLifeDeathmatch/hldmserver | 6 ++++++ HalfLifeDeathmatchSource/hldmsserver | 6 ++++++ Insurgency/insserver | 6 ++++++ JustCause2/jc2server | 6 ++++++ KillingFloor/kfserver | 6 ++++++ Left4Dead/l4dserver | 6 ++++++ Left4Dead2/l4d2server | 6 ++++++ Mumble/mumbleserver | 6 ++++++ NS2Combat/ns2cserver | 6 ++++++ NaturalSelection2/ns2server | 6 ++++++ NoMoreRoomInHell/nmrihserver | 6 ++++++ OpposingForce/opforserver | 6 ++++++ PiratesVikingandKnightsII/pvkiiserver | 6 ++++++ ProjectZomboid/pzserver | 6 ++++++ RedOrchestra/roserver | 6 ++++++ Ricochet/ricochetserver | 6 ++++++ SeriousSam3BFE/ss3sserver | 6 ++++++ StarBound/sbserver | 6 ++++++ TeamFortress2/tf2server | 6 ++++++ TeamFortressClassic/tfcserver | 6 ++++++ TeamSpeak3/ts3server | 6 ++++++ Teeworlds/twserver | 6 ++++++ Terraria/terrariaserver | 6 ++++++ UnrealTournament2004/ut2k4server | 6 ++++++ UnrealTournament99/ut99server | 6 ++++++ functions/fn_debug_dev | 13 +++++++++++++ functions/fn_functions | 7 ++++++- functions/fn_getopt | 14 ++++++++++++++ 45 files changed, 285 insertions(+), 1 deletion(-) create mode 100644 functions/fn_debug_dev diff --git a/7DaysToDie/sdtdserver b/7DaysToDie/sdtdserver index 000b668cc..44848ee9c 100644 --- a/7DaysToDie/sdtdserver +++ b/7DaysToDie/sdtdserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/ARKSurvivalEvolved/arkserver b/ARKSurvivalEvolved/arkserver index ad3809cde..3cd841131 100644 --- a/ARKSurvivalEvolved/arkserver +++ b/ARKSurvivalEvolved/arkserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/Arma3/arma3server b/Arma3/arma3server index d2e7cc34b..93a4256c8 100644 --- a/Arma3/arma3server +++ b/Arma3/arma3server @@ -4,6 +4,12 @@ # Author: Daniel Gibbs # Contributor: Scarsz # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/BlackMesa/bmdmserver b/BlackMesa/bmdmserver index 870e3e574..74825317a 100644 --- a/BlackMesa/bmdmserver +++ b/BlackMesa/bmdmserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/BladeSymphony/bsserver b/BladeSymphony/bsserver index 388bcdaa5..a0a65b8e6 100644 --- a/BladeSymphony/bsserver +++ b/BladeSymphony/bsserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/CounterStrike/csserver b/CounterStrike/csserver index a27e04bb2..83dcc0b47 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/CounterStrikeConditionZero/csczserver b/CounterStrikeConditionZero/csczserver index 804f713b9..0c700f370 100644 --- a/CounterStrikeConditionZero/csczserver +++ b/CounterStrikeConditionZero/csczserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index 359fcc28a..1a06e28bf 100755 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index 3eb8f2d69..9bd6001e3 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/DayOfDefeat/dodserver b/DayOfDefeat/dodserver index c45f85279..b73a99c6e 100644 --- a/DayOfDefeat/dodserver +++ b/DayOfDefeat/dodserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index 438a09330..03788b07c 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/DeathmatchClassic/dmcserver b/DeathmatchClassic/dmcserver index 2b1d248c3..863296f07 100644 --- a/DeathmatchClassic/dmcserver +++ b/DeathmatchClassic/dmcserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/DontStarveTogether/dstserver b/DontStarveTogether/dstserver index d11cd3182..029735e52 100644 --- a/DontStarveTogether/dstserver +++ b/DontStarveTogether/dstserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/DoubleActionBoogaloo/dabserver b/DoubleActionBoogaloo/dabserver index 41bed53da..b6bc46ac2 100644 --- a/DoubleActionBoogaloo/dabserver +++ b/DoubleActionBoogaloo/dabserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/FistfulOfFrags/fofserver b/FistfulOfFrags/fofserver index 778b2a924..42b16cd55 100644 --- a/FistfulOfFrags/fofserver +++ b/FistfulOfFrags/fofserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/GarrysMod/gmodserver b/GarrysMod/gmodserver index ed553c99a..455671cab 100644 --- a/GarrysMod/gmodserver +++ b/GarrysMod/gmodserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index c58428de3..530cdfbff 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/HalfLifeDeathmatch/hldmserver b/HalfLifeDeathmatch/hldmserver index c0a0b396e..bf3e13dba 100644 --- a/HalfLifeDeathmatch/hldmserver +++ b/HalfLifeDeathmatch/hldmserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/HalfLifeDeathmatchSource/hldmsserver b/HalfLifeDeathmatchSource/hldmsserver index a44ad150a..0b6473e71 100644 --- a/HalfLifeDeathmatchSource/hldmsserver +++ b/HalfLifeDeathmatchSource/hldmsserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/Insurgency/insserver b/Insurgency/insserver index fa31d90d5..85f9fafa9 100644 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/JustCause2/jc2server b/JustCause2/jc2server index 1bf4a2ebf..a60af82cd 100644 --- a/JustCause2/jc2server +++ b/JustCause2/jc2server @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/KillingFloor/kfserver b/KillingFloor/kfserver index 6a7a8743b..e24d6e2be 100644 --- a/KillingFloor/kfserver +++ b/KillingFloor/kfserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/Left4Dead/l4dserver b/Left4Dead/l4dserver index f69e3148a..c11d7f5f7 100644 --- a/Left4Dead/l4dserver +++ b/Left4Dead/l4dserver @@ -4,6 +4,12 @@ # Author: Daniel Gibbs # Contributor: Summit Singh Thakur # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index f0d4788c5..238e958a5 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/Mumble/mumbleserver b/Mumble/mumbleserver index 1177aa8a8..10c284dab 100644 --- a/Mumble/mumbleserver +++ b/Mumble/mumbleserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/NS2Combat/ns2cserver b/NS2Combat/ns2cserver index 777502136..df2e5644f 100644 --- a/NS2Combat/ns2cserver +++ b/NS2Combat/ns2cserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/NaturalSelection2/ns2server b/NaturalSelection2/ns2server index 92ab4a717..3e8654da0 100644 --- a/NaturalSelection2/ns2server +++ b/NaturalSelection2/ns2server @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/NoMoreRoomInHell/nmrihserver b/NoMoreRoomInHell/nmrihserver index 3bc4ecda6..8081dcee4 100644 --- a/NoMoreRoomInHell/nmrihserver +++ b/NoMoreRoomInHell/nmrihserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/OpposingForce/opforserver b/OpposingForce/opforserver index f09424975..7cffd927f 100644 --- a/OpposingForce/opforserver +++ b/OpposingForce/opforserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/PiratesVikingandKnightsII/pvkiiserver b/PiratesVikingandKnightsII/pvkiiserver index c17281dc6..d589170f7 100644 --- a/PiratesVikingandKnightsII/pvkiiserver +++ b/PiratesVikingandKnightsII/pvkiiserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/ProjectZomboid/pzserver b/ProjectZomboid/pzserver index 2a7792597..c1c1c884d 100644 --- a/ProjectZomboid/pzserver +++ b/ProjectZomboid/pzserver @@ -4,6 +4,12 @@ # Author: Daniel Gibbs # Contributions: Bryce Van Dyk (SingingTree) # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/RedOrchestra/roserver b/RedOrchestra/roserver index 68ad33b47..83696e4ed 100644 --- a/RedOrchestra/roserver +++ b/RedOrchestra/roserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/Ricochet/ricochetserver b/Ricochet/ricochetserver index 7c5d8c93c..1da3738b9 100644 --- a/Ricochet/ricochetserver +++ b/Ricochet/ricochetserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/SeriousSam3BFE/ss3sserver b/SeriousSam3BFE/ss3sserver index e83937f83..27fed4bd2 100644 --- a/SeriousSam3BFE/ss3sserver +++ b/SeriousSam3BFE/ss3sserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="121215" #### Variables #### diff --git a/StarBound/sbserver b/StarBound/sbserver index 27cd544f7..770570fa2 100644 --- a/StarBound/sbserver +++ b/StarBound/sbserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index f6596bfb9..a1c407e6b 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/TeamFortressClassic/tfcserver b/TeamFortressClassic/tfcserver index 49abcf2b7..dc172a425 100644 --- a/TeamFortressClassic/tfcserver +++ b/TeamFortressClassic/tfcserver @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/TeamSpeak3/ts3server b/TeamSpeak3/ts3server index 2fbdd2915..215cb2866 100644 --- a/TeamSpeak3/ts3server +++ b/TeamSpeak3/ts3server @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/Teeworlds/twserver b/Teeworlds/twserver index 49527b8d1..8414ae06c 100644 --- a/Teeworlds/twserver +++ b/Teeworlds/twserver @@ -4,6 +4,12 @@ # Author: Daniel Gibbs # Contributor: Bryce Van Dyk (SingingTree) # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/Terraria/terrariaserver b/Terraria/terrariaserver index 47020ed4c..e2da26348 100644 --- a/Terraria/terrariaserver +++ b/Terraria/terrariaserver @@ -4,6 +4,12 @@ # Author: Daniel Gibbs # Contributor: Bryce Van Dyk (SingingTree) # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/UnrealTournament2004/ut2k4server b/UnrealTournament2004/ut2k4server index 868b99047..d8b7a1512 100644 --- a/UnrealTournament2004/ut2k4server +++ b/UnrealTournament2004/ut2k4server @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="201215" #### Variables #### diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index c43971195..c89ce2406 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -3,6 +3,12 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com +if [ -f ".dev-debug" ]; then + exec 5>dev-debug.log + BASH_XTRACEFD="5" + set -x +fi + version="121215" #### Variables #### diff --git a/functions/fn_debug_dev b/functions/fn_debug_dev new file mode 100644 index 000000000..3e4b14d8c --- /dev/null +++ b/functions/fn_debug_dev @@ -0,0 +1,13 @@ +#!/bin/bash +# LGSM fn_debug_dev function +# Author: Daniel Gibbs +# Website: http://gameservermanagers.com +lgsm_version="061115" + +if [ -f ".dev-debug" ]; then + rm .dev-debug + fn_printoknl "Disabled dev-debug" +else + date > .dev-debug + fn_printoknl "Enabled dev-debug" +fi \ No newline at end of file diff --git a/functions/fn_functions b/functions/fn_functions index c477ede05..39e3220d6 100644 --- a/functions/fn_functions +++ b/functions/fn_functions @@ -2,7 +2,7 @@ # LGSM fn_functions function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -lgsm_version="061115" +lgsm_version="201215" # Description: Defines all functions to allow download and execution of functions using fn_runfunction. # This function is called first before any other function. Without this file other functions would not load. @@ -102,6 +102,11 @@ functionfile="${FUNCNAME}" fn_runfunction } +fn_debug_dev(){ +functionfile="${FUNCNAME}" +fn_runfunction +} + fn_deps_detect(){ functionfile="${FUNCNAME}" fn_runfunction diff --git a/functions/fn_getopt b/functions/fn_getopt index d5ef85dfc..8c6f93fb1 100644 --- a/functions/fn_getopt +++ b/functions/fn_getopt @@ -35,6 +35,8 @@ case "$getopt" in fn_console;; d|debug) fn_debug;; + dev|dev-debug) + fn_debug_dev;; i|install) fn_install;; ai|auto-install) @@ -88,6 +90,8 @@ case "$getopt" in fn_details;; b|backup) fn_backup;; + dev|dev-debug) + fn_debug_dev;; i|install) fn_install;; ai|auto-install) @@ -133,6 +137,8 @@ case "$getopt" in fn_email_test;; b|backup) fn_backup;; + dev|dev-debug) + fn_debug_dev;; console) fn_console;; d|debug) @@ -189,6 +195,8 @@ case "$getopt" in fn_console;; d|debug) fn_debug;; + dev|dev-debug) + fn_debug_dev;; i|install) fn_install;; ai|auto-install) @@ -247,6 +255,8 @@ case "$getopt" in fn_console;; d|debug) fn_debug;; + dev|dev-debug) + fn_debug_dev;; i|install) fn_install;; mc|map-compressor) @@ -307,6 +317,8 @@ case "$getopt" in fn_console;; d|debug) fn_debug;; + dev|dev-debug) + fn_debug_dev;; i|install) fn_install;; ai|auto-install) @@ -366,6 +378,8 @@ case "$getopt" in fn_console;; d|debug) fn_debug;; + dev|dev-debug) + fn_debug_dev;; i|install) fn_install;; mc|map-compressor)