Panthera Helipatrol

Karmafied

Member
Hey all!

I have been running a private Epoch (Chernarus) server for my family for almost a year now. I have been able to manipulate this thing like no one's business with little trouble.

I switched the map yesterday from Chernarus to Panthera (Epoch), and although I have Sarge AI working with no issues, for some reason the Heli Patrols will not spawn. I assume this is not just a quick auto-response type of issue, so I have attached my grps file for viewing and debugging. Any help here is extremely appreciated.

Note: Yes, I have transferred the settings from Chernarus over (because Panthera's grid has a 5x5 setting and Chern's SAR_area settings only go up to 5), but again, the AI do spawn, just not the helos. Thanks, all!

Code:
// =========================================================================================================
//  SAR_AI - DayZ AI library
//  Version: 1.5.0
//  Author: Sarge ([email protected])
//
//        Wiki: to come
//        Forum: to come
//      
// ---------------------------------------------------------------------------------------------------------
//  Required:
//  UPSMon
//  SHK_pos
//
// ---------------------------------------------------------------------------------------------------------
//   area, group & spawn  cfg file for Chernarus
//   last modified: 28.5.2013
// ---------------------------------------------------------------------------------------------------------

//
// grid definition for the automatic spawn system
//

if (SAR_dynamic_spawning) then {

    diag_log format["SAR_AI: Dynamic spawning definition / adjustments started"];
   
// Kamenka, 1 bandit groups, 0 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[1,0,2],[20,0,30],[2,0,2]],"SAR_area_0_0"] call SAR_AI_mon_upd;

// Balota, 2 bandit groups, 3 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[2,3,2],[80,80,80],[2,3,3]],"SAR_area_1_0"] call SAR_AI_mon_upd;

// Cherno, 3 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[3,0,3],[90,0,95],[4,0,4]],"SAR_area_2_0"] call SAR_AI_mon_upd;

// Prido, 2 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[2,0,3],[40,0,50],[4,0,2]],"SAR_area_3_0"] call SAR_AI_mon_upd;

// Elektro, 3 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[3,0,3],[85,0,75],[3,0,3]],"SAR_area_4_0"] call SAR_AI_mon_upd;

// Kamyshovo, 1 bandit groups, 0 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[1,0,1],[40,0,80],[3,0,3]],"SAR_area_5_0"] call SAR_AI_mon_upd;

// Tulga, 3 bandit groups, 3 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[3,3,1],[90,40,80],[3,1,3]],"SAR_area_5_1"] call SAR_AI_mon_upd;

// Solni, 1 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[1,0,0],[80,0,0],[2,0,0]],"SAR_area_5_2"] call SAR_AI_mon_upd;

// Berezino, 3 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[3,0,3],[85,0,85],[3,0,2]],"SAR_area_5_3"] call SAR_AI_mon_upd;

// Khelm, 2 bandit groups, 3 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[2,3,1],[85,75,65],[4,2,3]],"SAR_area_5_4"] call SAR_AI_mon_upd;

// NEAF, 2 bandit groups, 3 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[2,3,2],[95,80,75],[2,2,4]],"SAR_area_5_5"] call SAR_AI_mon_upd;

// NWAF, 1 bandit groups, 3 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[1,3,2],[60,85,60],[4,3,2]],"SAR_area_1_4"] call SAR_AI_mon_upd;

// Stary, 3 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[3,0,3],[50,0,50],[2,0,3]],"SAR_area_2_2"] call SAR_AI_mon_upd;

// Devils Castle, 1 bandit groups, 1 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[1,1,3],[50,70,50],[1,2,4]],"SAR_area_2_4"] call SAR_AI_mon_upd;

// Skalka, 3 bandit groups, 1 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[3,1,1],[75,0,0],[3,2,2]],"SAR_area_0_5"] call SAR_AI_mon_upd;

// Petrovka1, 3 bandit groups, 1 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[3,1,0],[80,30,0],[3,2,0]],"SAR_area_1_5"] call SAR_AI_mon_upd;

// Petrovka2, 2 bandit groups, 1 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[2,1,2],[75,25,75],[3,2,4]],"SAR_area_2_5"] call SAR_AI_mon_upd;

// Pobeda, 2 bandit groups, 0 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[2,0,0],[75,0,0],[3,0,0]],"SAR_area_3_5"] call SAR_AI_mon_upd;

// Krasno, 0 bandit groups, 1 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[0,1,1],[0,75,75],[0,4,2]],"SAR_area_4_5"] call SAR_AI_mon_upd;

// South of Lopatino, 2 bandit groups, 2 soldier groups, 0 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[2,2,0],[100,80,0],[2,2,0]],"SAR_area_0_3"] call SAR_AI_mon_upd;

diag_log format["SAR_AI: Dynamic spawning definition / adjustments finished"];
  
};

//
// Definition of area markers for static spawns
//

diag_log format["SAR_AI: Static spawning area definition started"];

//==================================================================

diag_log format["SAR_AI: Static spawning area definition finished"];

//======================================================================================

// Definition of area markers for heli patrols

// Everywhere Helo Patrol
_this = createMarker ["SAR_patrol_everywhere", [5174.4854, 5183.4883]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [6000, 6000];
SAR_marker_helipatrol_everywhere = _this;

// ----------------------------------------------------------------------------------------
// End of area marker definition section
// ----------------------------------------------------------------------------------------

diag_log format["SAR_AI: Area & Trigger definition finalized"];

diag_log format["SAR_AI: Static Spawning for Helicopter patrols started"];

// Heli patrol everywhere
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;

diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];

// ----------------------------------------------------------------------------------------
// End of area marker definition section
// ----------------------------------------------------------------------------------------

diag_log format["SAR_AI: Static Spawning for infantry patrols started"];

//
// define your static infantry patrols here
//

diag_log format["SAR_AI: Static Spawning for infantry patrols finished"];
 
Last edited:
I have since fixed this problem, and unlike many threads I am seeing that just die off with no solution, I will post a copy of my repaired grps file for Panthera. Turns out that I have things placed in the wrong sections and they were not calling at the right times.

Hope this helps someone.

Code:
// =========================================================================================================
//  SAR_AI - DayZ AI library
//  Version: 1.0.0
//  Author: Sarge ([email protected])
//
//        Wiki: to come
//        Forum: to come
//       
// ---------------------------------------------------------------------------------------------------------
//  Required:
//  UPSMon 
//  SHK_pos
// 
// ---------------------------------------------------------------------------------------------------------
//   area, group & spawn  cfg file for Panthera
//   last modified: 5.3.2013
// ---------------------------------------------------------------------------------------------------------

/* reconfiguring the properties of the grid (keep in mind the grid has default settings, but these you should overwrite where needed).

IMPORTANT: The grid squares are named like : SAR_area_0_0

where the first 0 is the x counter, and the second 0 the y counter.

So to adress the bottom left square in the grid, you use SAR_area_0_0.
The square above that one would be: SAR_area_0_1
the square one to the right of the bottom left square is SAR_area_1_0

You want to change the number arrays in the below lines:

The order for these numbers is always [BANDIT, SURVIVOR, SOLDIER]

Lets take an example for Chernarus
// Kamenka, 0 bandit groups, 1 soldier groups, 2 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[0,1,2],[0,75,100],[0,4,3]],"SAR_area_0_0"] call SAR_AI_mon_upd;
 
[[0,1,2],[0,75,100],[0,4,3]]

the first set of numbers : 0,1,2
stands for
0 bandit groups
1 soldier group
2 surivors groups
thats the max that can spawn in this grid

the second set of numbers : 0,75,100
that means:
0% probability to spawn bandit groups
75% for soldiers
100% for survivors

the last set of numbers : 0,4,3
thats the maximum number of ppl in the group (plus 1 leader)
0 bandits
max 4 (+1 leader) soldiers
max 3 (+1 leader) survivors
this number is randomized

*/
//
// Definition of area markers for static spawns
//

diag_log format["SAR_AI: Static spawning area definition started"];

//==================================================================
// AWOL Protectors
_this = createMarker ["SAR_patrol_wow", [5100.8818,5500.0034]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5000, 5000];
_this setMarkerDir 120.050;
SAR_marker_wow = _this;

// ---------------------------------------------------------------
// Definition of area markers for static spawns
// ---------------------------------------------------------------

// Everywhere Helo Patrol
_this = createMarker ["SAR_patrol_everywhere", [5500.4854, 5500.4883]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [7000, 7000];
SAR_marker_helipatrol_everywhere = _this;

// ----------------------------------------------------------------------------------------
// End of area marker definition section
// ----------------------------------------------------------------------------------------

diag_log format["SAR_AI: Area & Trigger definition finalized"];
diag_log format["SAR_AI: Static Spawning for Helicopter patrols started"];

[SAR_marker_helipatrol_everywhere,1,true] call SAR_AI_heli;

diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];

// ----------------------------------------------------------------------------------------
// End of area marker definition section
// ----------------------------------------------------------------------------------------

diag_log format["SAR_AI: Static Spawning for infantry patrols started"];

[SAR_marker_wow,2,5,9,"patrol",true] call SAR_AI;

// ---- end of configuration area ----

diag_log format["SAR_AI: Static Spawning for infantry patrols finished"];
 
Back
Top