Explorar el Código

Added fix for ark

Symlinking the SteamCMD directory into the correct ARK directory so that the mods auto-management will work fine.
Daniel Gibbs hace 8 años
padre
commit
c45f21e566
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  1. 2 0
      lgsm/functions/fix.sh
  2. 10 0
      lgsm/functions/fix_ark.sh

+ 2 - 0
lgsm/functions/fix.sh

@@ -44,6 +44,8 @@ if [ "${function_selfname}" != "command_install.sh" ]; then
 
 
 	if  [ "${gamename}" == "ARMA 3" ]; then
 	if  [ "${gamename}" == "ARMA 3" ]; then
 		fix_arma3.sh
 		fix_arma3.sh
+	elif [ "${shortname}" == "ark" ]; then
+		fix_ark.sh
 	elif [ "${gamename}" == "Counter-Strike: Global Offensive" ]; then
 	elif [ "${gamename}" == "Counter-Strike: Global Offensive" ]; then
 		fix_csgo.sh
 		fix_csgo.sh
 	elif [ "${gamename}" == "Don't Starve Together" ]; then
 	elif [ "${gamename}" == "Don't Starve Together" ]; then

+ 10 - 0
lgsm/functions/fix_ark.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+# LinuxGSM fix_ark.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Resolves various issues with ARK: Survival Evolved.
+
+# Symlinking the SteamCMD directory into the correct ARK directory so that the mods auto-management will work.
+if [ ! -d "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux" ]; then
+	ln -s "${steamcmddir}" "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux"
+fi