removed debugging code

This commit is contained in:
Ghostrider-DbD- 2017-01-25 01:40:08 -05:00
parent b9d019e78a
commit da3ad8392e
10 changed files with 19 additions and 19 deletions

View File

@ -16,7 +16,7 @@ _modType = [] call blck_fnc_getModType;
while {true} do while {true} do
{ {
uiSleep 1; uiSleep 1;
diag_log format["mainThread:: -- > time = %1",diag_tickTime]; //diag_log format["mainThread:: -- > time = %1",diag_tickTime];
if (diag_tickTime - _timer1sec > 1000) then if (diag_tickTime - _timer1sec > 1000) then
{ {
[] call blck_fnc_vehicleMonitor; [] call blck_fnc_vehicleMonitor;

View File

@ -30,16 +30,16 @@ _fn_deleteObjects = {
} forEach _objects; } forEach _objects;
}; };
diag_log format["_fnc_cleanUpObjects called at %1",diag_tickTime]; //diag_log format["_fnc_cleanUpObjects called at %1",diag_tickTime];
private["_oldObjs"]; private["_oldObjs"];
for "_i" from 1 to (count blck_oldMissionObjects) do for "_i" from 1 to (count blck_oldMissionObjects) do
{ {
if (_i <= count blck_oldMissionObjects) then if (_i <= count blck_oldMissionObjects) then
{ {
_oldObjs = blck_oldMissionObjects select (_i - 1); _oldObjs = blck_oldMissionObjects select (_i - 1);
diag_log format["_fnc_cleanUpObjects ::-->> evaluating missionObjects = %1 with delete time of %3 and diag_tickTime %2",_oldObjs,diag_tickTime, _oldObjs select 1]; //diag_log format["_fnc_cleanUpObjects ::-->> evaluating missionObjects = %1 with delete time of %3 and diag_tickTime %2",_oldObjs,diag_tickTime, _oldObjs select 1];
if (diag_tickTime > (_oldObjs select 1) ) then { if (diag_tickTime > (_oldObjs select 1) ) then {
diag_log format["_fn_deleteObjects:: (50) cleaning up mission objects %1",_oldObjs]; //diag_log format["_fn_deleteObjects:: (50) cleaning up mission objects %1",_oldObjs];
[_oldObjs select 0] call _fn_deleteObjects; [_oldObjs select 0] call _fn_deleteObjects;
uiSleep 0.1; uiSleep 0.1;
blck_oldMissionObjects set[(_i - 1), -1]; blck_oldMissionObjects set[(_i - 1), -1];

View File

@ -189,7 +189,7 @@ if (typeName _temp isEqualTo "ARRAY") then
}; };
//diag_log format["_fnc_missionSpawner:: (181)->> _objects = %1",_objects]; //diag_log format["_fnc_missionSpawner:: (181)->> _objects = %1",_objects];
if (blck_debugON) then if (blck_debugLevel > 0) then
{ {
diag_log format["[blckeagls] missionSpawner:: (166) Landscape spawned: _cords %1 : _markerClass %2 : _aiDifficultyLevel %3 _markerMissionName %4",_coords,_markerClass,_aiDifficultyLevel,_markerMissionName]; diag_log format["[blckeagls] missionSpawner:: (166) Landscape spawned: _cords %1 : _markerClass %2 : _aiDifficultyLevel %3 _markerMissionName %4",_coords,_markerClass,_aiDifficultyLevel,_markerMissionName];
}; };
@ -208,7 +208,7 @@ if (typeName _infantry isEqualto "ARRAY") then
}; };
uiSleep _delayTime; uiSleep _delayTime;
if (blck_debugON) then if (blck_debugLevel > 0) then
{ {
diag_log format["[blckeagls] missionSpawner:: (210) AI Patrols Spawned: _cords %1 : _markerClass %2 : _aiDifficultyLevel %3 _markerMissionName %4",_coords,_markerClass,_aiDifficultyLevel,_markerMissionName]; diag_log format["[blckeagls] missionSpawner:: (210) AI Patrols Spawned: _cords %1 : _markerClass %2 : _aiDifficultyLevel %3 _markerMissionName %4",_coords,_markerClass,_aiDifficultyLevel,_markerMissionName];
}; };
@ -254,7 +254,7 @@ if (blck_enableReinforcements && (random(1) < _chanceReinforcements)) then
*/ */
// Trigger for mission end // Trigger for mission end
diag_log format["[blckeagls] mission Spawner _endCondition = %1",_endCondition]; //diag_log format["[blckeagls] mission Spawner _endCondition = %1",_endCondition];
private["_missionComplete","_endIfPlayerNear","_endIfAIKilled"]; private["_missionComplete","_endIfPlayerNear","_endIfAIKilled"];
_missionComplete = -1; _missionComplete = -1;
_startTime = diag_tickTime; _startTime = diag_tickTime;
@ -265,11 +265,11 @@ switch (_endCondition) do
case "allUnitsKilled": {_endIfPlayerNear = false;_endIfAIKilled = true;}; case "allUnitsKilled": {_endIfPlayerNear = false;_endIfAIKilled = true;};
case "allKilledOrPlayerNear": {_endIfPlayerNear = true;_endIfAIKilled = true;}; case "allKilledOrPlayerNear": {_endIfPlayerNear = true;_endIfAIKilled = true;};
}; };
diag_log format["missionSpawner :: (269) _endIfPlayerNear = %1 _endIfAIKilled= %2",_endIfPlayerNear,_endIfAIKilled]; //diag_log format["missionSpawner :: (269) _endIfPlayerNear = %1 _endIfAIKilled= %2",_endIfPlayerNear,_endIfAIKilled];
private["_locations"]; private["_locations"];
_locations = [_coords] + _crates; _locations = [_coords] + _crates;
diag_log format["missionSpawner:: Waiting for player to satisfy mission end criteria of _endIfPlayerNear %1 with _endIfAIKilled %2",_endIfPlayerNear,_endIfAIKilled]; //diag_log format["missionSpawner:: Waiting for player to satisfy mission end criteria of _endIfPlayerNear %1 with _endIfAIKilled %2",_endIfPlayerNear,_endIfAIKilled];
while {_missionComplete isEqualTo -1} do while {_missionComplete isEqualTo -1} do
{ {
if (blck_debugLevel isEqualTo 3) exitWith {uiSleep 300}; if (blck_debugLevel isEqualTo 3) exitWith {uiSleep 300};

View File

@ -6,7 +6,7 @@
checks the status of each entry in checks the status of each entry in
*/ */
diag_log format["_fnc_spawnPendingMissions:: blck_pendingMissions = %1", blck_pendingMissions]; if (blck_debugLevel > 1) then {diag_log format["_fnc_spawnPendingMissions:: blck_pendingMissions = %1", blck_pendingMissions];};
private["_coords","_missionName","_missionPath"]; private["_coords","_missionName","_missionPath"];
{ {
if (blck_debugLevel > 2) then {diag_log format["_fnc_spawnPendingMissions:: -- >> _x = %1 and _x select 6 = %2",_x, _x select 6];}; if (blck_debugLevel > 2) then {diag_log format["_fnc_spawnPendingMissions:: -- >> _x = %1 and _x select 6 = %2",_x, _x select 6];};

View File

@ -6,7 +6,7 @@
*/ */
params["_mission","_status",["_coords",[0,0,0]] ]; params["_mission","_status",["_coords",[0,0,0]] ];
if (blck_debugON) then {diag_log format["_fnc_updateMissionQue :: _mission = %1 | _status = %2 | _coords = %3",_mission,_status,_coords];}; if (blck_debugLevel > 1) then {diag_log format["_fnc_updateMissionQue :: _mission = %1 | _status = %2 | _coords = %3",_mission,_status,_coords];};
private["_index","_element","_waitTime"]; private["_index","_element","_waitTime"];
_index = blck_pendingMissions find _mission; _index = blck_pendingMissions find _mission;

View File

@ -18,7 +18,7 @@ _arr = date call BIS_fnc_sunriseSunsetTime;
_sunrise = _arr select 0; _sunrise = _arr select 0;
_sunset = _arr select 1; _sunset = _arr select 1;
_time = dayTime; _time = dayTime;
diag_log format["_fnc_Time:: -- > _sunrise = %1 | _sunset = %2 | _time = %3",_sunrise,_sunset,_time]; //diag_log format["_fnc_Time:: -- > _sunrise = %1 | _sunset = %2 | _time = %3",_sunrise,_sunset,_time];
// Night // Night
if (_time > (_sunset + 0.5) || _time < (_sunrise - 0.5)) exitWith {setTimeMultiplier blck_timeAccelerationNight; diag_log format["NIGHT TIMGE ADJUSTMENT:: time accel updated to %1; time of day = %2",timeMultiplier,dayTime];}; if (_time > (_sunset + 0.5) || _time < (_sunrise - 0.5)) exitWith {setTimeMultiplier blck_timeAccelerationNight; diag_log format["NIGHT TIMGE ADJUSTMENT:: time accel updated to %1; time of day = %2",timeMultiplier,dayTime];};

View File

@ -14,18 +14,18 @@ _fn_deleteAIfromList = {
}forEach _aiList; }forEach _aiList;
}; };
diag_log format["_fnc_cleanupAliveAI called at %1",diag_tickTime]; if (blck_debugLevel > 1) then {diag_log format["_fnc_cleanupAliveAI called at %1",diag_tickTime];};
for "_i" from 1 to (count blck_liveMissionAI) do for "_i" from 1 to (count blck_liveMissionAI) do
{ {
if ((_i) <= count blck_liveMissionAI) then if ((_i) <= count blck_liveMissionAI) then
{ {
_units = blck_liveMissionAI select (_i - 1); _units = blck_liveMissionAI select (_i - 1);
diag_log format["_fnc_cleanupAliveAI:: (34) evaluating with delete time = %2 and diag_tickTime %1", diag_tickTime, _units select 1]; //diag_log format["_fnc_cleanupAliveAI:: (34) evaluating with delete time = %2 and diag_tickTime %1", diag_tickTime, _units select 1];
if (diag_tickTime > (_units select 1) ) then if (diag_tickTime > (_units select 1) ) then
{ {
diag_log format["_fnc_cleanupAliveAI:: cleaning up AI group %1",_units]; //diag_log format["_fnc_cleanupAliveAI:: cleaning up AI group %1",_units];
{ {
diag_log format["_fnc_cleanupAliveAI:: deleting unit %1",_x]; //diag_log format["_fnc_cleanupAliveAI:: deleting unit %1",_x];
[_x] call blck_fnc_deleteAI; [_x] call blck_fnc_deleteAI;
}forEach (_units select 0); }forEach (_units select 0);
uiSleep 0.1; uiSleep 0.1;

View File

@ -4,7 +4,7 @@
Last updated 1/24/17 Last updated 1/24/17
*/ */
diag_log format["fnc_cleanupDeadAI called at time %1",diag_tickTime]; if (blck_debugLevel > 1) then {diag_log format["fnc_cleanupDeadAI called at time %1",diag_tickTime];};
private["_aiList","_ai"]; private["_aiList","_ai"];
_aiList = +blck_deadAI; _aiList = +blck_deadAI;
{ {

View File

@ -26,7 +26,7 @@ _fn_releaseVehicle = {
}; };
}; };
if (blck_debugLevel > 0) then {diag_log format["_fnc_vehicleMonitor:: function called at %1",diag_tickTime];}; if (blck_debugLevel > 1) then {diag_log format["_fnc_vehicleMonitor:: function called at %1",diag_tickTime];};
{ {
_veh = _x; _veh = _x;
if (_veh getVariable["blck_DeleteAt",0] > 0) then if (_veh getVariable["blck_DeleteAt",0] > 0) then

View File

@ -6,7 +6,7 @@
Last modified 10/25/16 Last modified 10/25/16
*/ */
//blck_variablesLoaded = false; //blck_variablesLoaded = false;
blck_debugON = false; blck_debugON = true;
blck_debugLevel = 0; // Sets level of detail for debugging info - WIP. blck_debugLevel = 0; // Sets level of detail for debugging info - WIP.
blck_minFPS = 10; blck_minFPS = 10;