Просмотр исходного кода

enhanced mod-support

added parameters. descriptions taken from: https://community.bistudio.com/wiki/Arma_3_Startup_Parameters

-servermod
Loads the specified sub-folders for different server-side (not broadcasted to clients) mods. Separated by semi-colons. Absolute path and multiple stacked folders are possible. 

-autoinit:
Automatically initialize mission just like first client does. Note: Server config file (server.cfg) must contain Persistent=1; , if it's 0 autoInit skips. 

-loadmissiontomemory: 
Server will load mission into memory on first client downloading it. Then it keeps it pre-processed pre-cached in memory for next clients, saving some server CPU cycles
Phil 10 лет назад
Родитель
Сommit
7471a59754
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Arma3/arma3server

+ 2 - 1
Arma3/arma3server

@@ -28,7 +28,7 @@ ip="0.0.0.0"
 updateonstart="off"
 
 fn_parms(){
-parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}"
+parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -autoinit -loadmissiontomemory"
 }
 
 # ARMA 3 Modules
@@ -38,6 +38,7 @@ parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath}
 # mods/\@CBA_A3\;mods/\@task_force_radio
 # and chmod modules directories to 775
 mods=""
+servermods=""
 
 #### Advanced Variables ####