Daniel Gibbs 8 лет назад
Родитель
Сommit
5bde4f3861
3 измененных файлов с 25 добавлено и 13 удалено
  1. 5 0
      lgsm/functions/core_functions.sh
  2. 1 13
      lgsm/functions/fix.sh
  3. 19 0
      lgsm/functions/fix_kf2.sh

+ 5 - 0
lgsm/functions/core_functions.sh

@@ -326,6 +326,11 @@ functionfile="${FUNCNAME}"
 fn_fetch_function
 }
 
+fix_kf2.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
+
 fix_ut2k4.sh(){
 functionfile="${FUNCNAME}"
 fn_fetch_function

+ 1 - 13
lgsm/functions/fix.sh

@@ -63,29 +63,17 @@ fi
 
 # Fixes that are run on install only.
 if [ "${function_selfname}" == "command_install.sh" ]; then
-	if [ "${gamename}" == "Killing Floor" ]; then
 		echo ""
 		echo "Applying ${gamename} Server Fixes"
 		echo "================================="
 		sleep 1
+	if [ "${gamename}" == "Killing Floor" ]; then
 		fix_kf.sh
 	elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then
-		echo ""
-		echo "Applying ${gamename} Server Fixes"
-		echo "================================="
-		sleep 1
 		fix_ro.sh
 	elif [ "${gamename}" == "Unreal Tournament 2004" ]; then
-		echo ""
-		echo "Applying ${gamename} Server Fixes"
-		echo "================================="
-		sleep 1
 		fix_ut2k4.sh
 	elif [ "${gamename}" == "Unreal Tournament" ]; then
-		echo ""
-		echo "Applying ${gamename} Server Fixes"
-		echo "================================="
-		sleep 1
 		fix_ut.sh
 	fi
 fi

+ 19 - 0
lgsm/functions/fix_kf2.sh

@@ -0,0 +1,19 @@
+#!/bin/bash
+# LinuxGSM fix_kf3.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Resolves various issues with Killing Floor 2.
+
+local commandname="FIX"
+local commandaction="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
+fn_parms(){
+parms="\"${defaultmap}?Game=KFGameContent.KFGameInfo_VersusSurvival\""
+}
+
+fn_print_information "starting Killing Floor 2 server to generate configs."
+sleep 1
+command_start.sh
+sleep 10
+command_stop.sh