Removed / Redid a bit of logging

This commit is contained in:
Chris Cardozo 2020-05-31 11:33:14 -04:00
parent df6e8777d1
commit 36a02b6301
2 changed files with 11 additions and 13 deletions

View File

@ -20,7 +20,6 @@ _fn_buildBlacklistedLocationsList = {
for '_i' from 1 to (count blck_recentMissionCoords) do {
private _loc = blck_recentMissionCoords deleteAt 0;
//diag_log format["_fnc_findSafePosn: Evaluation reccent mission location %1",_x];
if (_loc select 1 < diag_tickTime) then
{
blck_recentMissionCoords pushBack _loc;
@ -29,7 +28,7 @@ _fn_buildBlacklistedLocationsList = {
};
{
//diag_log format["_fnc_findSafePosn: adding activeMissioncoords, element %1 2 = %1",_x,_forEachIndex];
_blacklistedLocations pushBack [_x,_minToMissions];
} forEach blck_ActiveMissionCoords;
@ -38,17 +37,14 @@ _fn_buildBlacklistedLocationsList = {
if (blck_modType isEqualTo "Exile") then {_bases = nearestObjects[blck_mapCenter, ["Exile_Construction_Flag_Static"], blck_mapRange + 25000]};
{
//diag_log format["_fnc_findSafePosn: adding base location at %1",_x];
_blacklistedLocations pushBack [getPosATL _x,_minToBases];
} forEach _bases;
// Town positions are already in the blacklist
//{
//_blacklistedLocations pushBack [locationPosition _x,_minToTowns];
//} forEach blck_townLocations;
{
//diag_log format["_fnc_findSafePosn: adding player %1 at %2",_x, getPosATL _x];
_blacklistedLocations pushBack [getPosATL _x,_minToPlayers];
} forEach allPlayers;
@ -70,17 +66,17 @@ private _blacklistedLocations = [_minDistToBases,_minDistToPlayers,_minDistToTow
private _coords = [blck_mapCenter,0,blck_mapRange,3,0,5,0,_blacklistedLocations] call BIS_fnc_findSafePos;
diag_log format["_fnc_findSafePosn: _coords from first attempt = %1 | _blacklistedLocations = %2",_coords, _blacklistedLocations];
if (_coords isEqualTo []) then
{
for "_index" from 1 to 100 do
{
{
_x set[1, (_x select 1) * 0.8];
//diag_log format["_fnc_findSafePosn: _x downgraded to %1",_x];
} forEach _blacklistedLocations;
_coords = [blck_mapCenter,0,blck_mapRange,3,0,5,0,_blacklistedLocations] call BIS_fnc_findSafePos;
//diag_log format["_fnc_findSafePosn: try %1 yielded _coords = %2 on try #%3",_index,_coords,_i];
if !(_coords isEqualTo []) exitWith {};
uisleep 1;
};

View File

@ -83,7 +83,7 @@ if !(_defaultMissionLocations isEqualTo []) then
blck_ActiveMissionCoords pushback _coords;
blck_missionsRunning = blck_missionsRunning + 1;
diag_log format["_fnc_missionSpawner: count blck_ActiveMissionCoords = %1 | blck_ActiveMissionCoords = %2",count blck_ActiveMissionCoords,blck_ActiveMissionCoords];
//diag_log format["_fnc_missionSpawner: count blck_ActiveMissionCoords = %1 | blck_ActiveMissionCoords = %2",count blck_ActiveMissionCoords,blck_ActiveMissionCoords];
_objects = [];
_mines = [];
@ -156,7 +156,9 @@ while {_wait} do
if (_missionTimedOut) exitWith
{
diag_log format["_fnc_missionSpawner (187): mission timed out"];
// diag_log format["[blckeagls] missionSpawner (17):: Initializing mission: _cords %1 : _markerName %2 : _aiDifficultyLevel %3 _markerLabel %4",_coords,_markerName,_aiDifficultyLevel,_markerLabel];
diag_log format["_fnc_missionSpawner (187): mission timed out: _markerName %1 | _markerLabel %2 | time %3",_markerName,_markerLabel,diag_tickTime];
/*
params[
"_coords",