HELP WITH SARGE AI STATIC SPAWNS

niall straughan

Well-Known Member
Ive been using SAR (SARGE) AI Version 1.1.0 for the last few days. Ive built two custom bases and have been trying to get static spawns to work in two locations. Im using a GTX gaming Host server, similar to HFB file system. Im sure i put the code correctly, can anyone help me with this?

I added the first two blocks above end of marker definition, and the last two blocks code just above end of configuration area(at the bottom). Also when i added these to my SAR_cfg_grps_cheranus.sqf it disabled AI helicopters?


Code:
// Skalisity island-warfarebcamp
_this = createMarker ["SAR_marker_si", [12333.6, 12661.6,0]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerDir 120.050;
SAR_marker_si = _this;


// other AI concpipe
_this = createMarker ["SAR_marker_oai", [1652.0739, 11899.885,0]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerDir 120.050;
SAR_marker_oai = _this;


//Skalisity
[SAR_marker_si,3,5,15,"fortify",true] call SAR_AI;

// other AI concpipe
[SAR_marker_oai,3,5,15,"fortify",true] call SAR_AI;

Any help?:(. Im using EPOCH 1.0.4.2 and the most recent DAYZ update.
 
This look fine at first glance. Have you checked your .rpt file for 'killed a hacker' entries? The server will kill Sarge AI Heli patrols unless you put in Sarge's Fix which is described in the github. For Epoch 1.0.4 the code you need to edit was moved to init\server_functions.sqf. I have had bad luck trying to get Sarge's fix to work with 1.0.4.1 but maybe you will have some success with 1.0.4.2. For me the server gives a red chain after a few minutes.
 
Zeehond23, he provided them in the dropbox link.

Niall, could you also provide your .RPT file please? Perhaps there is an error I missed scanning your GPRS file.

Also, did you make any other modifications to the SargeAI code ?
 
well, it's a clear cut case why they don't spawn tbh. If I had a dime for every time I or someone else overlooked this, i'd have a few:

// soutcoast, heli patrol area
_this = createMarker ["SAR_patrol_soutcoast", [7997.2837, 2687.6707]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [6500, 1200];
SAR_marker_helipatrol_southcoast = _this;

Red should be the same as green, i.e.

// soutcoast, heli patrol area
_this = createMarker ["SAR_patrol_soutcoast", [7997.2837, 2687.6707]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [6500, 1200];
SAR_patrol_soutcoast = _this;


and:

// Heli patrol south coast
[SAR_patrol_soutcoast,1,true] call SAR_AI_heli;
[SAR_patrol_soutcoast,1,true] call SAR_AI_heli;
 
looking through your log (.rpt) file I found the following error logged. If you check the log file and code it indicates that there is minus sign after true at line 231.

Error in expression <[SAR_marker_castle,3,5,15,"fortify",true] call SAR_AI;


[SAR_marker_other,3,5>
Error position: <] call SAR_AI;


[SAR_marker_other,3,5>
Error Missing ]
File mpmissions\__CUR_MP.Chernarus\addons\SARGE\map_config\SAR_cfg_grps_chernarus.sqf, line 271
Error in expression <[SAR_marker_castle,3,5,15,"fortify",true] call SAR_AI;


[SAR_marker_other,3,5>
Error position: <] call SAR_AI;


[SAR_marker_other,3,5>
Error Missing ]
File mpmissions\__CUR_MP.Chernarus\addons\SARGE\map_config\SAR_cfg_grps_chernarus.sqf, line 271
"PLAYER RESULT: true"

Looking at the GRPS.sqf file you provided I found the following:

//Skalisity
[SAR_static_si,3,5,15,"fortify",true-] call SAR_AI;

// other AI concpipe
[SAR_static_oai,3,5,15,"fortify",true-] call SAR_AI;

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

Which should be as follows:

//Skalisity
[SAR_static_si,3,5,15,"fortify",true] call SAR_AI;

// other AI concpipe
[SAR_static_oai,3,5,15,"fortify",true] call SAR_AI;

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

Hope that this helps.
 
Great! Thanks so much!Choppers are working, ai are spawning, only problem is the ai never spawn in my castle? I get the exact cords of the locations of the castle but when the ai spawn, they spawn aout 200m away from the cords ive set?, ive switched their mode to ambush, and the problem still persists.:(
Any ideas?
 
not sure but thinking that the routinen that sets their waypoints might keep them away from the castle. Consider fortify as an alternative way to get them to set up shop in one spot. consider adding a few structures to your map as fortifications as well for them to hide behind. I have seen this done very effectively on a Tavi server. The fortifications could be sand bags, sandbag nests, and so forth.
 
I already have walls, defences, and them set to fortify, they always just spawned around the castle, never in it. No matter if i get the coordinates dead center:(
 
Back
Top