Error in expression

C.Project

Member
So, i am having a little problem with the new Sarge AI 1.5, all works fine execpt the dynamic group spawn and i am getting this little error in my RPT:

Code:
2013/06/01, 10:02:34 "Setting up SAR_AI for : chernarus"
2013/06/01, 10:02:34 "SAR_AI: dynamic Area & Trigger definition Started"
2013/06/01, 10:02:34 "SAR_AI: Area & Trigger definition finished"
2013/06/01, 10:02:34 "SAR_AI: Dynamic and static spawning Started"
2013/06/01, 10:02:34 "SAR_AI: Dynamic spawning definition / adjustments started"
2013/06/01, 10:02:35 "SAR_AI: Dynamic spawning definition / adjustments finished"

2013/06/01, 10:02:35 "SAR_AI: Static spawning area definition started"
2013/06/01, 10:02:35 "SAR_AI: Static spawning area definition finished"
2013/06/01, 10:02:35 "SAR_AI: Static Spawning for Helicopter patrols started"
2013/06/01, 10:02:36 "SAR_AI: Static Spawning for Helicopter patrols finished"
2013/06/01, 10:02:36 "SAR_AI: Static Spawning for infantry patrols started"
2013/06/01, 10:02:36 "SAR_AI: Static Spawning for infantry patrols finished"
2013/06/01, 10:02:36 "SAR_AI: Static Spawning for vehicle patrols started"
 
2013/06/01, 10:02:36 Error in expression < 1;
2013/06/01, 10:02:36 _areadir = (markerDir _area_name) * -1;
2013/06/01, 10:02:36 _cosdir=cos(_areadir);
2013/06/01, 10:02:36 _sindir=s>
2013/06/01, 10:02:36 Error position: <* -1;
2013/06/01, 10:02:36 _cosdir=cos(_areadir);
2013/06/01, 10:02:36 _sindir=s>
2013/06/01, 10:02:36 Error *: Typ Array, erwartet Zahl (number expected)
2013/06/01, 10:02:36 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_functions.sqf, line 76

under my SAR_funtions.sqf (Orginal one)

Code:
    // marker orientation (needed as negative value!)
    _areadir = (markerDir _area_name) * -1;
 
    // store some trig calculations
    _cosdir=cos(_areadir);
    _sindir=sin(_areadir);

I hope anyone can help me fix this problem as i cant finde a sulution.

Greatz and sry for my English

C.Project
 
dont use dynamic spawning, but getting a zero division error:

3:10:18 Error in expression <_units;

Code:
3:10:18 Error in expression <_units;
 
if(_defend) then {
_angle = 360/(_count-1);
}else{
_angle = 360/(_count>
3:10:18  Error position: </(_count-1);
}else{
_angle = 360/(_count>
3:10:18  Error Zero divisor
3:10:18 File mpmissions\dayz_2.chernarus\addons\SARGE\SAR_functions.sqf, line 469
 
will release a fix for the _count / div by 0 issue later today, for the OP - show us the vehicle part and the area definition of your cfg file pls.

Sarge
 
Haven't changed anything there but here u are

Code:
};
//
// Definition of area markers for static spawns
//
 
diag_log format["SAR_AI: Static spawning area definition started"];
 
// soutcoast, heli patrol area
_this = createMarker ["SAR_marker_helipatrol_southcoast", [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_marker_helipatrol_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_marker_helipatrol_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_marker_helipatrol_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;
 
 
//_this = createMarker ["SAR_marker_DEBUG_veh", [1951.4304, 11905.569]];
//_this setMarkerShape "RECTANGLE";
//_this setMarkeralpha 0;
//_this setMarkerType "Flag";
//_this setMarkerBrush "Solid";
//_this setMarkerSize [300, 1000];
//_this setMarkerDir -19.085985;
//SAR_marker_DEBUG_veh = _this;
 
//_this = createMarker ["SAR_marker_DEBUG_devilscastle", [6913.47,11437.2,0.001]];
//_this setMarkerShape "RECTANGLE";
//_this setMarkeralpha 0;
//_this setMarkerType "Flag";
//_this setMarkerBrush "Solid";
//_this setMarkerSize [10, 10];
//SAR_marker_DEBUG_devilscastle = _this;
 
diag_log format["SAR_AI: Static spawning area definition finished"];
 
// ----------------------------------------------------------------------------------------
// End of area marker definition section
// ----------------------------------------------------------------------------------------

Code:
//
// define your static vehicle patrols here
//
 
// example war scenario in the northwest. Comment OUT after having had a look at it!
[
    SAR_marker_DEBUG_veh,                          // Name of the area that the vehicle patrol will spawn in
    1,                                              // type of group
    ["LandRover_CZ_EP1","M1030","M1030","LandRover_CZ_EP1"],        // used vehicle
    [[1,1,1],[0,1,1],[0,1,1],[0,1,1]],                              // Vehicle initial crew
    true,                                          // if this group should respawn or not
    10
] call SAR_AI_land;
 
[
    SAR_marker_DEBUG_veh,                  // Name of the area that the vehicle patrol will spawn in
    3,                                      // type of group
    ["M1030","M1030","M1030","M1030"],      // used vehicle
    [[1,1,0],[0,1,1],[0,1,1],[0,1,1]],      // Vehicle initial crew
    true,                                  // if this group should respawn or not
    60                                      // waittime until this group will respawn
] call SAR_AI_land;
 
[
    SAR_marker_DEBUG_veh,            // Name of the area that the vehicle patrol will spawn in
    2,                                  // type of group
    ["M1030"],                          // used vehicle
    [[1,1,0]],                          // Vehicle initial crew
    true,                              // if this group should respawn or not
    60                                  // waittime until this group will respawn
] call SAR_AI_land;
 
diag_log format["SAR_AI: Static Spawning for vehicle patrols finished"];
// ---- end of configuration area ----
well i may have forgotten to make /* */ for the last part =o but not sure.
 
either uncomment:


Code:
//_this = createMarker ["SAR_marker_DEBUG_veh", [1951.4304, 11905.569]];
//_this setMarkerShape "RECTANGLE";
//_this setMarkeralpha 0;
//_this setMarkerType "Flag";
//_this setMarkerBrush "Solid";
//_this setMarkerSize [300, 1000];
//_this setMarkerDir -19.085985;
//SAR_marker_DEBUG_veh = _this;

or comment out the vehicle calls and all should be fine.

Sarge
 
Back
Top