Daniel Gibbs 10 лет назад
Родитель
Сommit
46a812604f
5 измененных файлов с 28 добавлено и 3 удалено
  1. 11 0
      functions/fn_arma3fix
  2. 6 1
      functions/fn_debug
  3. 5 0
      functions/fn_functions
  4. 4 2
      functions/fn_insfix
  5. 2 0
      functions/fn_start

+ 11 - 0
functions/fn_arma3fix

@@ -0,0 +1,11 @@
+#!/bin/bash
+# LGSM fn_arma3fix function
+# Author: Daniel Gibbs
+# Website: http://gameservermanagers.com
+lgsm_version="201215"
+
+# Fixes line 63: 20150 Segmentation fault (core dumped) #488
+
+if [ -d "${rootdir}/.local/share/Arma\ 3"]; then
+	mkdir -p "${rootdir}/.local/share/Arma\ 3"
+fi

+ 6 - 1
functions/fn_debug

@@ -54,8 +54,13 @@ sleep 1
 echo -en "\n"
 echo -en "\n"
 cd "${executabledir}"
 cd "${executabledir}"
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
-	if [ "${gamename}" == "Insurgency" ]; then
+	if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
+		startfix=1
+		fn_csgofix
+	elif [ "${gamename}" == "Insurgency" ]; then
 		fn_insfix
 		fn_insfix
+	elif [ "${gamename}" == "ARMA 3" ]; then
+		fn_arma3fix	
 	fi
 	fi
 	${executable} ${parms} -debug
 	${executable} ${parms} -debug
 else
 else

+ 5 - 0
functions/fn_functions

@@ -7,6 +7,11 @@ lgsm_version="061115"
 # Description: Defines all functions to allow download and execution of functions using fn_runfunction.
 # 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.
 # This function is called first before any other function. Without this file other functions would not load.
 
 
+fn_arma3fix(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
 fn_backup(){
 fn_backup(){
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction

+ 4 - 2
functions/fn_insfix

@@ -2,9 +2,11 @@
 # LGSM fn_insfix function
 # LGSM fn_insfix function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="110415"
+lgsm_version="201215"
 
 
-# Description: Resolves ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory
+# Description: Resolves various issues with Insurgency.
+
+# Resolves ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory
 
 
 export LD_LIBRARY_PATH=:${filesdir}:${filesdir}/bin:{$LD_LIBRARY_PATH}
 export LD_LIBRARY_PATH=:${filesdir}:${filesdir}/bin:{$LD_LIBRARY_PATH}
 
 

+ 2 - 0
functions/fn_start

@@ -82,6 +82,8 @@ if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 	fn_csgofix
 	fn_csgofix
 elif [ "${gamename}" == "Insurgency" ]; then
 elif [ "${gamename}" == "Insurgency" ]; then
 	fn_insfix
 	fn_insfix
+elif [ "${gamename}" == "ARMA 3" ]; then
+	fn_arma3fix	
 fi
 fi
 
 
 fn_details_config
 fn_details_config