Static Patrols; Not Patroling/ Spawning Correctly

Jack Marslow

Well-Known Member
Heya Sarge

So, I got that map marker script working great! I can now see exactly where ALL AI are on my map, what direction they are looking, and see them move around! (All without any of the Debug modes on) This has let me confirm a few things I thought were going on but I couldn't tell for sure.

For starters, here is my Marker sets for my static spawns

Code:
// Skalyisky Tower Guards 1
_this = createMarker ["SAR_marker_Skal_Twr1", [13663.9, 2949.37]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_marker_Skal_Twr1 = _this;
 
// Skalyisky Tower Guards 2
_this = createMarker ["SAR_marker_Skal_Twr2", [13698.1, 2981.46]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_marker_Skal_Twr2 = _this;
 
// Skalyisky Tower Guards 3
_this = createMarker ["SAR_marker_Skal_Twr3", [13655.2, 2893.33]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_marker_Skal_Twr3 = _this;
 
// Skalyisky Tower Guards 4
_this = createMarker ["SAR_marker_Skal_Twr4", [13748.9, 2861.38]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_marker_Skal_Twr4 = _this;
 
// Skalyisky Base Patrol 1
_this = createMarker ["SAR_marker_Skal_BPtrl1", [13706.8, 2877.11]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [35, 25];
_this setMarkerDir 133;
SAR_marker_Skal_BPtrl1 = _this;
 
// Skalyisky Base Patrol 2
_this = createMarker ["SAR_marker_Skal_BPtrl2", [13698.7, 2915.99]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [40, 30];
_this setMarkerDir 48;
SAR_marker_Skal_BPtrl2 = _this;
 
// Skalyisky Base Patrol 3
_this = createMarker ["SAR_marker_Skal_BPtrl3", [13689.5, 2955.41]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [30, 26];
_this setMarkerDir 47;
SAR_marker_Skal_BPtrl3 = _this;
 
// Skalyisky Island Patrol 1
_this = createMarker ["SAR_marker_Skal_IPtrl1", [13985.6, 2852]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [180, 100];
_this setMarkerDir 296;
SAR_marker_Skal_IPtrl1 = _this;
 
// Skalyisky Island Patrol 2
_this = createMarker ["SAR_marker_Skal_IPtrl2", [13536.1, 2926.63]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [280, 100];
_this setMarkerDir 29;
SAR_marker_Skal_IPtrl2 = _this;
 
// Skalyisky Island Patrol 3
_this = createMarker ["SAR_marker_Skal_IPtrl3", [13365.2, 3257.31]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [280, 150];
_this setMarkerDir 60;
SAR_marker_Skal_IPtrl3 = _this;
 
// NWAF Patrol
_this = createMarker ["SAR_marker_NWAF_Ptrl", [4627.57, 10198.8]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [300, 500];
_this setMarkerDir 152;
SAR_marker_NWAF_Ptrl = _this;
 
// Map Patrol 1 NW
_this = createMarker ["SAR_marker_Map_Ptrl1", [4859.8, 7910]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1500, 1000];
_this setMarkerDir 1;
SAR_marker_Map_Ptrl1 = _this;
 
// Map Patrol 2 NE
_this = createMarker ["SAR_marker_Map_Ptrl2", [11485.3, 11336.1]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [2000, 1750];
_this setMarkerDir 270;
SAR_marker_Map_Ptrl2 = _this;
 
// Map Patrol 3 S
_this = createMarker ["SAR_marker_Map_Ptrl3", [8415.32, 2855.96]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1800, 1200];
_this setMarkerDir 359;
SAR_marker_Map_Ptrl3 = _this;

Now Here is my actual static Spawn settings

Code:
[SAR_marker_Skal_Twr1,3,0,0,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_Twr2,3,1,0,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_Twr3,3,0,0,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_Twr4,3,1,0,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_BPtrl1,3,0,1,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_BPtrl2,3,0,2,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_BPtrl3,3,0,1,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_IPtrl1,3,0,2,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_IPtrl2,3,0,2,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_IPtrl3,3,0,2,"Patrol",true] call SAR_AI;
[SAR_marker_NWAF_Ptrl,3,0,3,"Patrol",true] call SAR_AI;
[SAR_marker_NWAF_Ptrl,3,0,3,"Patrol",true] call SAR_AI;
[SAR_marker_NWAF_Ptrl,3,0,3,"Patrol",true] call SAR_AI;
[SAR_marker_Map_Ptrl1,3,1,2,"Patrol",true] call SAR_AI;
[SAR_marker_Map_Ptrl2,3,1,2,"Patrol",true] call SAR_AI;
[SAR_marker_Map_Ptrl3,3,1,2,"Patrol",true] call SAR_AI;

Ok, So lets look at the NWAF patrols for example. All 3 patrol groups SHOULD have 4 men. I'm looking at them on my map, and looking at them out of my map. 1 Group spawned 1 guy, 1 group spawned 2, and 1 group spawned 3.

Here is what I THINK is wrong on this in SAR_config //CONFIRMED. PROBLEM FIXED.

Code:
SAR_soldier_band_list = ['Bandit1_DZ', 'BanditW1_DZ',"","",""]; // the potential classes of the bandit of a soldier group


All three groups are just standing there where they spawned, not moving.

I can see the Dynamic groups, they are spawning and moving just fine. But EVERY static group I have set has not moved.

Final Issue

In SAR_config I have the following

Code:
// maximum number of groups / grid
SAR_max_grps_bandits = 1;
SAR_max_grps_soldiers = 1;
SAR_max_grps_survivors = 1;

If you have it setup in SAR_CFG_GRPS_Chernarus like this

Code:
// Balota, 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"],[[2,0,2],[80,0,80],[2,0,3]],"SAR_area_1_0"] call SAR_AI_mon_upd;

it will ignore SAR_config and spawn up to the max groups you've allowed on this part of code. Not really a big issue, but I thought I would report it anyways. (also, I realise the // comment is incorrect. I know how to read it all now so I didn't bother changing it
 
Heya Sarge

So, I got that map marker script working great! I can now see exactly where ALL AI are on my map, what direction they are looking, and see them move around! (All without any of the Debug modes on) This has let me confirm a few things I thought were going on but I couldn't tell for sure.

For starters, here is my Marker sets for my static spawns

Code:
// Skalyisky Tower Guards 1
_this = createMarker ["SAR_marker_Skal_Twr1", [13663.9, 2949.37]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_marker_Skal_Twr1 = _this;
 
// Skalyisky Tower Guards 2
_this = createMarker ["SAR_marker_Skal_Twr2", [13698.1, 2981.46]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_marker_Skal_Twr2 = _this;
 
// Skalyisky Tower Guards 3
_this = createMarker ["SAR_marker_Skal_Twr3", [13655.2, 2893.33]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_marker_Skal_Twr3 = _this;
 
// Skalyisky Tower Guards 4
_this = createMarker ["SAR_marker_Skal_Twr4", [13748.9, 2861.38]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_marker_Skal_Twr4 = _this;
 
// Skalyisky Base Patrol 1
_this = createMarker ["SAR_marker_Skal_BPtrl1", [13706.8, 2877.11]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [35, 25];
_this setMarkerDir 133;
SAR_marker_Skal_BPtrl1 = _this;
 
// Skalyisky Base Patrol 2
_this = createMarker ["SAR_marker_Skal_BPtrl2", [13698.7, 2915.99]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [40, 30];
_this setMarkerDir 48;
SAR_marker_Skal_BPtrl2 = _this;
 
// Skalyisky Base Patrol 3
_this = createMarker ["SAR_marker_Skal_BPtrl3", [13689.5, 2955.41]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [30, 26];
_this setMarkerDir 47;
SAR_marker_Skal_BPtrl3 = _this;
 
// Skalyisky Island Patrol 1
_this = createMarker ["SAR_marker_Skal_IPtrl1", [13985.6, 2852]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [180, 100];
_this setMarkerDir 296;
SAR_marker_Skal_IPtrl1 = _this;
 
// Skalyisky Island Patrol 2
_this = createMarker ["SAR_marker_Skal_IPtrl2", [13536.1, 2926.63]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [280, 100];
_this setMarkerDir 29;
SAR_marker_Skal_IPtrl2 = _this;
 
// Skalyisky Island Patrol 3
_this = createMarker ["SAR_marker_Skal_IPtrl3", [13365.2, 3257.31]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [280, 150];
_this setMarkerDir 60;
SAR_marker_Skal_IPtrl3 = _this;
 
// NWAF Patrol
_this = createMarker ["SAR_marker_NWAF_Ptrl", [4627.57, 10198.8]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [300, 500];
_this setMarkerDir 152;
SAR_marker_NWAF_Ptrl = _this;
 
// Map Patrol 1 NW
_this = createMarker ["SAR_marker_Map_Ptrl1", [4859.8, 7910]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1500, 1000];
_this setMarkerDir 1;
SAR_marker_Map_Ptrl1 = _this;
 
// Map Patrol 2 NE
_this = createMarker ["SAR_marker_Map_Ptrl2", [11485.3, 11336.1]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [2000, 1750];
_this setMarkerDir 270;
SAR_marker_Map_Ptrl2 = _this;
 
// Map Patrol 3 S
_this = createMarker ["SAR_marker_Map_Ptrl3", [8415.32, 2855.96]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1800, 1200];
_this setMarkerDir 359;
SAR_marker_Map_Ptrl3 = _this;

Now Here is my actual static Spawn settings

Code:
[SAR_marker_Skal_Twr1,3,0,0,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_Twr2,3,1,0,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_Twr3,3,0,0,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_Twr4,3,1,0,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_BPtrl1,3,0,1,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_BPtrl2,3,0,2,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_BPtrl3,3,0,1,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_IPtrl1,3,0,2,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_IPtrl2,3,0,2,"Patrol",true] call SAR_AI;
[SAR_marker_Skal_IPtrl3,3,0,2,"Patrol",true] call SAR_AI;
[SAR_marker_NWAF_Ptrl,3,0,3,"Patrol",true] call SAR_AI;
[SAR_marker_NWAF_Ptrl,3,0,3,"Patrol",true] call SAR_AI;
[SAR_marker_NWAF_Ptrl,3,0,3,"Patrol",true] call SAR_AI;
[SAR_marker_Map_Ptrl1,3,1,2,"Patrol",true] call SAR_AI;
[SAR_marker_Map_Ptrl2,3,1,2,"Patrol",true] call SAR_AI;
[SAR_marker_Map_Ptrl3,3,1,2,"Patrol",true] call SAR_AI;

Ok, So lets look at the NWAF patrols for example. All 3 patrol groups SHOULD have 4 men. I'm looking at them on my map, and looking at them out of my map. 1 Group spawned 1 guy, 1 group spawned 2, and 1 group spawned 3.

Here is what I THINK is wrong on this in SAR_config //CONFIRMED. PROBLEM FIXED.

Code:
SAR_soldier_band_list = ['Bandit1_DZ', 'BanditW1_DZ',"","",""]; // the potential classes of the bandit of a soldier group


All three groups are just standing there where they spawned, not moving.

I can see the Dynamic groups, they are spawning and moving just fine. But EVERY static group I have set has not moved.

Final Issue

In SAR_config I have the following

Code:
// maximum number of groups / grid
SAR_max_grps_bandits = 1;
SAR_max_grps_soldiers = 1;
SAR_max_grps_survivors = 1;

If you have it setup in SAR_CFG_GRPS_Chernarus like this

Code:
// Balota, 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"],[[2,0,2],[80,0,80],[2,0,3]],"SAR_area_1_0"] call SAR_AI_mon_upd;

it will ignore SAR_config and spawn up to the max groups you've allowed on this part of code. Not really a big issue, but I thought I would report it anyways. (also, I realise the // comment is incorrect. I know how to read it all now so I didn't bother changing it


Hi mate, thx for your findings.

a) the action parameter is "patrol", not "Patrol". i can change it for the future that this check is case insensitive.

b) the loadout is correct. The default values in SAR_config are predefining grids, with your definition in cfg_grps you overwrite these predefinitions. Try to check these numbers on a grid that you didnt define in cfg_grps, and it should be fine.

cheer, Sarge
 
Sarge,

I dont know if this is possible, but I'd like to suggest anyways. On this particular "mission" I have 4 bunkers surrounding the base. Is it possible to point to a particular building in Mission.sqf to assign these units to fortify?

One of the big problems with AI is they are easy to snipe. I placed this base on skolitsi and built tall walls all around to try and prevent this. So far so good. Players MUST engage in CQC with the AI to get into the center. The radio tower on skolitsi is the only place to snipe on. It is hard to shoot from there and gives a nice 550 yard shot to the middle of the base. I wanted this place to be a good spot to remove tower guards but I havn't been able to get the AI to fortify the particular buildings I want despite the small area they spawn/ patrol. I was looking at the UPSMON and it says fortify is for buildings within 200m.
 
Didn't want to start a new thread since I am having a similar problem on a new install of 1.5.2.
Running 1.8.0.3 Chenarus.
Static spawns of soldiers are just standing there with zombies roaming around them. The dynamic spawns are working fine. I am using "patrol" not "Patrol".
 
So, I set up a battle scene between soldiers and bandits using the static spawn. That seems to be working. Is it that AI doesn't shoot at zombies anymore?
 
*** SOLVED ***
Ok, think I got it figured out. Wasn't a problem with my static spawns not patrolling afterall. Had to add the code to make "Resistance" hostile toward "Civilians". That ended up causing the "invisible AI" bug. Got that handled with the fix. Now my soldiers will fire on Zeds! :)
 
Well, it's buggy. Sometimes they patrol, sometimes they don't.
I setup a few patrols in a wooded area. Sometimes when I log on they just stand in the same spot the entire time I'm online. Other times, one will patrol, but the other won't. They're generally not being attacked, but I expect they should still patrol around the 30x100 zone I gave them.
Hate to go back to an earlier revision where it worked normal. I really like being able to give bandits different loadouts from soldiers now.
 
Back
Top