From 001b13002e1ecb3fe3232e4f43533ecbdb6c6040 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sat, 8 Aug 2020 05:12:01 +0300 Subject: [PATCH] fix: include conf, extended conf --- SOURCES/config/kf2-srv.conf | 11 ++++++++++- SOURCES/main/lib/instance.lib | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/SOURCES/config/kf2-srv.conf b/SOURCES/config/kf2-srv.conf index be4df80..dcbb93f 100644 --- a/SOURCES/config/kf2-srv.conf +++ b/SOURCES/config/kf2-srv.conf @@ -13,13 +13,22 @@ ModeNames['KFGameContent.KFGameInfo_Endless']='Endless' ModeNames['KFGameContent.KFGameInfo_Objective']='Objective' ModeNames['KFGameContent.KFGameInfo_VersusSurvival']='Versus' +# Custom gamemodes: +ModeNames['ControlledDifficulty_Endless.CD_Endless']='CD-E_Endless' +ModeNames['ControlledDifficulty_Eternal.CD_Survival']='CD-E_Survival' +ModeNames['ControlledDifficulty_Blackout.CD_Survival']='CD-B_Survival' + # Add mutators to the end of the list, similar to what is already there: MutNames['ServerExtMut.ServerExtMut']='RPG' +MutNames['FriendlyHUD.FriendlyHUDMutator']='FriendlyHUD' +MutNames['KFMutator.KFMutator_MaxPlayersV2']='MaxPlayers' +MutNames['ClassicScoreboard.ClassicSCMut']='ClassicSC' +MutNames['ZedCustom.ZedCustomMut']='ZedVarients' # These parameters are used when creating new instances. # In order for the parameters to be applied to the files that the working server creates, the "kf2-srv-force-attr.service" must be active. ForceIniPermissions=664 -ForceLogPermissions=640 +ForceLogPermissions=644 ForceIniGroup=steam ForceLogGroup=steam diff --git a/SOURCES/main/lib/instance.lib b/SOURCES/main/lib/instance.lib index dd218cb..5b46a5a 100644 --- a/SOURCES/main/lib/instance.lib +++ b/SOURCES/main/lib/instance.lib @@ -265,6 +265,8 @@ function instance_list () # $*: [InstanceName[s]] function instance_status () # $1: InstanceName { + include /etc/kf2-srv/kf2-srv.conf + local Instance="$1" if ! instance_exists "$Instance"; then return 1; fi if systemctl -q is-enabled $(service_name "$Instance"); then