Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Yrgen

SARGE AI для DayZ Epoch 1.0.4.2 как?

Доброго времени суток!! У меня вот какой вопрос..... Хочу поставить SAR AI но некоторые вещи непонятны  в этой версии сервера в файл server_cleanup.fsm  изменился в его коде нет срок  которые нужно редактировать и что делать? как установить аддон?

надеюсь мне ктонибудь поможет с этим разобраться))наверника не я один туплю))

 

желательно по русски пошагово очень прошу) 

 

Зарание благодарен!!!

 

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts




  • 0

Ищи строки в файле server_function.sqf

Спасибо буду копать

Share this post


Link to post
Share on other sites
  • 0

Вобще туплю что куда ((( DZAI ,WAI ,EMS без проблем устанавливал а  с SAR-AI затык полный ( строк в указаных файлах ваще не нахожу (....

      Это всё для dayz_server.pbo ?

пример: 

              1) UnPBO your missions.pbo

2) create a folder named ADDONS in there

3) copy SHK_POS, SARGE and UPSMON into that directory

A) check out the init.sqf file as an example, you will need to add to the end of your init.sqf file the following lines:

Ну это понятно..

                         // UPSMON

                call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";

              // SHK
               call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";

             // run SAR_AI
             [] execVM "addons\SARGE\SAR_AI_init.sqf";

 

A1) Adjust your description.ext, add the following line at the end:

           #include "addons\SARGE\SAR_define.hpp" 

 

А вот дальше не фига нет строк :-(

 

A2) Adjust your server_cleanup.fsm file for group cleanups

Check out the server_cleanup.fsm file that is part of this repository. Take it as an EXAMPLE (might differ based on server package that you use)how to adjust yours.

Look for (around line 290)

" if ((count units _x==0) ) then {" \n
" diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n


and change the FIRST line to to:

" if ((count units _x==0) && !(_x getVariable[""SAR_protect"",false])) then {" \n
" diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n


A2) Adjust your server_cleanup.fsm file for "Killed a hacker" fix

Depends which DayZ version you are running.

The line you are looking for is either:

" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") ) then {" \n


Change to / add as shown:

" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable [""Sarge"",0] != 1) ) then {" \n


Or the line looks like

if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n


Change that to

if(vehicle _x != _x && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n


B) While debugging and testing, set

// Shows extra debug info in .rpt
SAR_DEBUG = true;

SAR_EXTREME_DEBUG = true;

//1=Enable or 0=disable debug. In debug could see a mark positioning de leader and another mark of the destination of movement, very useful for editing mission
KRON_UPS_Debug = 1;


in SAR_config.sqf.

SWITCH ALL OF THESE OFF WHEN YOU GO LIVE!

C) Test WITHOUT battleeye enabled! If you are confident that your tests were ok, locate the following lines in your scripts.txt file:

1 setFuel !"\"setFuel\"," !"z\addons\dayz_code\compile\local_setFuel.sqf" !"\"dayzSetFuel\"" !"if (_fuel >= 1.0) then { _fuel = 1.0; };\n\n_target setFuel _fuel;" !


change this to

1 setFuel !"\"setFuel\"," !"z\addons\dayz_code\compile\local_setFuel.sqf" !"\"dayzSetFuel\"" !"if (_fuel >= 1.0) then { _fuel = 1.0; };\n\n_target setFuel _fuel;" !"_vehicle setFuel 1;\nif (SAR_EXTREME_DEBUG) then {diag_log "SAR_EXTREME_DEBUG: Vehicle refueled";};"


locate this line:

5 setVehicleAmmo !"\"setVehicleAmmo\","


change to

5 setVehicleAmmo !"\"setVehicleAmmo\"," !"_vehicle setVehicleAmmo 1;\nif (SAR_EXTREME_DEBUG) then {diag_log "SAR EXTREME DEBUG: Vehicle new ammo";};"


this might vary with your DayzMap and might get updated by Battleye, i recommend to UNDERSTAND how battleeye filters work, so in case you need to adjust them, you are able to.

Помогите с Гайдом прошу !!!!

 

 

 

 

 

 

Share this post


Link to post
Share on other sites
  • 0

Уж извините не могу понять куда ставить в (dayz_server \missions\DayZ_Epoch_11.Chernarus)  или  (MPMission\DayZ_Epoch_11.Chernarus)  ?

Share this post


Link to post
Share on other sites
  • 0

Вопрос решон))вообще не искать и не вписывать эти строки не server_cleanup.fsm  ни в server_function.sqf

Share this post


Link to post
Share on other sites
  • 0

&& (vehicle _x getVariable [""Sarge"",0] != 1)


Это как бэ надо вписывать для админки.


 


 


МММ что всётаки искать эти строки всёже придёться ?????

Share this post


Link to post
Share on other sites
  • 0

Подскажите пожалуйста где прописывать кол-во человек ,групп и т.д

 

// Kamenka, 0 bandit groups, 1 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su

[["max_grps","rnd_grps","max_p_grp"],[[0,0,2],[0,0,100],[0,0,3]],"SAR_area_0_0"] call SAR_AI_mon_upd; 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.