More than 1 static group

Hadarvy25

New Member
Hello. I've been trying to add two different static groups of AIs, one bandit group and one soldier group, both protecting a camp, but whenever i add the two, both gets disabled and nothing spawns.
If i delete one of the groups, the other groups spawns just fine and works without issues.

This is my SAR_cfg_grps_chernarus.sqf: http://pastebin.com/4VMamC6J

If anyone could tell me what i did wrong with the code, i'd be more than happy!
 
the names for your areas are the same. change that and you will be fine.

Sarge
 
the names for your areas are the same. change that and you will be fine.

Sarge

Think you know why my ai's aren't spawning? Here's my code.
Code:
//
// Definition of area markers for static spawns
//
 
// 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;
 
// eastcoast, heli patrol area
_this = createMarker ["SAR_patrol_eastcoast", [13304.196, 8220.9795]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1200, 6000];
SAR_marker_helipatrol_eastcoast = _this;
 
// NWAF, heli patrol area
_this = createMarker ["SAR_patrol_NWAF", [4525.3335, 10292.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1500, 500];
_this setMarkerDir 59.354115;
SAR_marker_helipatrol_nwaf = _this;
 
// NEAF, heli patrol area
_this = createMarker ["SAR_patrol_NEAF", [12034.16, 12725.376, 0]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1000, 600];
SAR_marker_helipatrol_neaf = _this;
 
 
// SAR DEBUG AREA - at NWAF
_this = createMarker ["SAR_marker_DEBUG", [4600.3335, 10240.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_this setMarkerDir 59.354115;
SAR_marker_DEBUG = _this;
 
// SAR DEBUG AREA - at Skaly
_this = createMarker ["SAR_marker_DEBUG1", [2519.3335, 13140.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
SAR_marker_DEBUG1 = _this;
 
// Skalisty Island
_this = createMarker ["SAR_area_admin", [7220.6538,9116.3428,0]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerDir 120.050;
SAR_marker_castle = _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"];
 
//
// Static, predefined heli patrol areas with configurable units
//
// Parameters used:
//                  Areaname
//                  1,2,3 = soldier, survivors, bandits
//
//                  respawn
//                  true or false
 
//Heli Patrol NWAF
[SAR_marker_helipatrol_nwaf,1,true] call SAR_AI_heli;
 
//Heli Patrol NEAF
[SAR_marker_helipatrol_neaf,1,true] call SAR_AI_heli;
 
// Heli patrol south coast
[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
 
// heli patrol east coast
[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
 
diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];
 
//---------------------------------------------------------------------------------
// Static, predefined infantry patrols in defined areas with configurable units
//---------------------------------------------------------------------------------
// Example: [SAR_marker_DEBUG,1,0,1,"",true] call SAR_AI;
//
// SAR_marker_DEBUG = areaname (must have been defined further up, and MUST NOT BE similar to SAR_area_ ! THIS IS IMPORTANT!
// 1 = type of group (1 = soldiers, 2 = survivors, 3 = bandits)
// 0 = amount of snipers in the group
// 1 = amount of rifleman in the group
// "" = action, possible values: "noupsmon","fortify","ambush","patrol"
// true = respawning group, true or false
 
// Example entries:
// SARGE DEBUG - Debug group
// military, 0 snipers, 1 riflemen, patrol
//[SAR_marker_DEBUG,1,0,1,"fortify",true] call SAR_AI;
 
//[SAR_marker_DEBUG1,1,0,2,"patrol",false] call SAR_AI;
//[SAR_marker_DEBUG1,2,0,2,"patrol",false] call SAR_AI;
 
//---------------------------------------------------------------------------------
 
// add here if needed
 
// Skalisty Island
[SAR_marker_castle,1,5,15,"fortify",true] call SAR_AI;
 
 
 
 
// ---- end of configuration area ----
 
diag_log format["SAR_AI: Static Spawning for infantry and heli patrols finished"];
 
Curious. What will the debugs help me with? Will I be able to figure this out by myself using the debugs? I've never messed with debugs a whole lot to be honest.
 
Curious. What will the debugs help me with? Will I be able to figure this out by myself using the debugs? I've never messed with debugs a whole lot to be honest.

The debugs will provide extra logging to the arma2oaserver.rpt that will help in narrowing down the problem.
 
The debugs will provide extra logging to the arma2oaserver.rpt that will help in narrowing down the problem.
Thanks, but it seems that Dayz.st's servers are down, so I'll have to test it later. Where is arma2oaserver.rpt at anyways?
 
Thanks, but it seems that Dayz.st's servers are down, so I'll have to test it later. Where is arma2oaserver.rpt at anyways?

If I remember right, you can either FTP in and find it in one of the folders or view it from the control panel?
 
If I remember right, you can either FTP in and find it in one of the folders or view it from the control panel?

This is what I got.

22:30:55 Error in expression <[SAR_marker_castle,1,5,15,"fortify",trueÂ] call SAR_AI;






diag_log format[">
22:30:55 Error position: <Â] call SAR_AI;






diag_log format[">
22:30:55 Error Missing ]
22:30:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\map_config\SAR_cfg_grps_chernarus.sqf, line 258

22:30:55 Error in expression <[SAR_marker_castle,1,5,15,"fortify",trueÂ] call SAR_AI;
Can someone explain? I don't know what error there is.
 
Im just gonna throw my 2 cents in, I could be wrong but

"22:30:55 Error in expression <[SAR_marker_castle,1,5,15,"fortify",trueÂ] call SAR_AI;"

im not sure that  is meant to be there
check you grps and see if that is there or any symbols or anything that shouldn't be there
 
There is no A symbol. The exact piece of code in there is "[SAR_marker_castle,1,4,10,"fortify",true] call SAR_AI;"

I've even tried taking out the "-" but same thing. Thanks for you offer though :)
 
Im just gonna throw my 2 cents in, I could be wrong but

"22:30:55 Error in expression <[SAR_marker_castle,1,5,15,"fortify",trueÂ] call SAR_AI;"

im not sure that  is meant to be there
check you grps and see if that is there or any symbols or anything that shouldn't be there
Actually, I retested, and I didn't get the error in the debug. I took out the "-". Except I used the default coords, so I can't really check if they spawned, cuz I don't know where those coords are. :p I put in my own coords in Skalisty Island, and restarting, hoping to find AI's.
 
It worked! The default code is not supposed to have that - in there. You have to take it out. Thanks drew for making me look at the code longer :)
 
which "default " code and which "-" are you referring to ? in the 1.5.2 chernarus grps file on github is no dash, and no rference to SAR_marker_castle.
 
Well, I was watching a youtube video, and the code was in the description. I was wrong. The code did not have a dash after "true", but if you copied and pasted it, there was a dash. Maybe it was just the notepad++.
 
WOW! Awesome catch!

I copy/pasted as well and the "-" (dash) is after the word true on the line following "fortify".

Works now thanks.
 
Back
Top