Browse Source

add fix for ballistic overkill

add fix for ballistic overkill
pull/3040/head
Daniel Gibbs 5 years ago
parent
commit
d81176b14e
  1. 5
      lgsm/functions/core_functions.sh
  2. 2
      lgsm/functions/fix.sh
  3. 35
      lgsm/functions/fix_bo.sh

5
lgsm/functions/core_functions.sh

@ -320,6 +320,11 @@ functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
fix_bo.sh(){
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
fix_cmw.sh(){
functionfile="${FUNCNAME[0]}"
fn_fetch_function

2
lgsm/functions/fix.sh

@ -40,6 +40,8 @@ if [ "${commandname}" != "INSTALL" ]&&[ -z "${fixbypass}" ]; then
fix_arma3.sh
elif [ "${shortname}" == "ark" ]; then
fix_ark.sh
elif [ "${shortname}" == "bo" ]; then
fix_bo.sh
elif [ "${shortname}" == "cs" ]; then
fix_cs.sh
elif [ "${shortname}" == "csgo" ]; then

35
lgsm/functions/fix_bo.sh

@ -0,0 +1,35 @@
#!/bin/bash
# LinuxGSM fix_hw.sh function
# Author: Daniel Gibbs
# Website: https://linuxgsm.com
# Description: Resolves various issues with Ballistic Overkill.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/BODS_Data/Plugins/x86_64:${serverfiles}/BODS_Data/Plugins/x86"
# steamclient.so x86 fix for unity3d game server
if [ ! -f "${serverfiles}/BODS_Data/Plugins/x86/steamclient.so" ]; then
fixname="steamclient.so x86"
fn_fix_msg_start
mkdir -p "${serverfiles}/BODS_Data/Plugins/x86"
if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then
cp "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${serverfiles}/BODS_Data/Plugins/x86/steamclient.so"
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/BODS_Data/Plugins/x86/steamclient.so"
fi
fn_fix_msg_end
fi
# steamclient.so x86_64 fix for unity3d game server
if [ ! -f "${serverfiles}/BODS_Data/Plugins/x86_64/steamclient.so" ]; then
fixname="steamclient.so x86_64"
fn_fix_msg_start
mkdir -p "${serverfiles}/BODS_Data/Plugins/x86_64"
if [ -f "${HOME}/.steam/steamcmd/linux64/steamclient.so" ]; then
cp "${HOME}/.steam/steamcmd/linux64/steamclient.so" "${serverfiles}/BODS_Data/Plugins/x86_64/steamclient.so"
elif [ -f "${steamcmddir}/linux64/steamclient.so" ]; then
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/BODS_Data/Plugins/x86_64/steamclient.so"
fi
fn_fix_msg_end
fi
Loading…
Cancel
Save