Procházet zdrojové kódy

Setting consistent behavior for arma3server for running under
tmux and on the console with debug

cedarlug před 9 roky
rodič
revize
53bcf40789
2 změnil soubory, kde provedl 10 přidání a 5 odebrání
  1. 4 4
      Arma3/arma3server
  2. 6 1
      lgsm/functions/command_debug.sh

+ 4 - 4
Arma3/arma3server

@@ -42,10 +42,10 @@ parms="-netlog -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${serv
 
 # ARMA 3 Modules
 # add mods with relative paths:
-# mods/\@CBA_A3\;
-# or several mods as:
-# mods/\@CBA_A3\;mods/\@task_force_radio
-# and chmod modules directories to 775
+# mods/@cba_a3
+# to load the "Community Base Addons v3" module found in the
+# directory serverfiles/mods/@cba_a3.  Load several mods as:
+# mods="mods/@ace\;mods/@acex\;mods/@cba_a3"
 mods=""
 
 # Server-side Mods

+ 6 - 1
lgsm/functions/command_debug.sh

@@ -94,10 +94,15 @@ trap fn_lockfile_trap INT
 cd "${executabledir}"
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 	${executable} ${parms} -debug
+elif [ "${engine}" == "realvirtuality" ]; then
+	# Arma3 requires semicolons in the module list, which need to
+	# be escaped for regular (tmux) loading, but need to be
+	# stripped when loading straight from the console.
+	${executable} ${parms//\\;/;}
 else
 	${executable} ${parms}
 fi
 
 # remove trap.
 trap - INT
-core_exit.sh
+core_exit.sh