From da3ad8392e33a3519f9b03f661e8cc6d0bb2a4ea Mon Sep 17 00:00:00 2001 From: Ghostrider-DbD- Date: Wed, 25 Jan 2017 01:40:08 -0500 Subject: [PATCH] removed debugging code --- .../Compiles/Functions/GMS_fnc_mainThread.sqf | 2 +- .../Compiles/Missions/GMS_fnc_cleanUpObjects.sqf | 6 +++--- .../Compiles/Missions/GMS_fnc_missionSpawner.sqf | 10 +++++----- .../Compiles/Missions/GMS_fnc_spawnPendingMissions.sqf | 2 +- .../Compiles/Missions/GMS_fnc_updateMissionQue.sqf | 2 +- .../custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf | 2 +- .../Compiles/Units/GMS_fnc_cleanupAliveAI.sqf | 8 ++++---- .../Compiles/Units/GMS_fnc_cleanupDeadAI.sqf | 2 +- .../Compiles/Vehicles/GMS_fnc_vehicleMonitor.sqf | 2 +- .../addons/custom_server/Compiles/blck_variables.sqf | 2 +- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/@epochhive/addons/custom_server/Compiles/Functions/GMS_fnc_mainThread.sqf b/@epochhive/addons/custom_server/Compiles/Functions/GMS_fnc_mainThread.sqf index c7cbf24..fcd9a3f 100644 --- a/@epochhive/addons/custom_server/Compiles/Functions/GMS_fnc_mainThread.sqf +++ b/@epochhive/addons/custom_server/Compiles/Functions/GMS_fnc_mainThread.sqf @@ -16,7 +16,7 @@ _modType = [] call blck_fnc_getModType; while {true} do { uiSleep 1; - diag_log format["mainThread:: -- > time = %1",diag_tickTime]; + //diag_log format["mainThread:: -- > time = %1",diag_tickTime]; if (diag_tickTime - _timer1sec > 1000) then { [] call blck_fnc_vehicleMonitor; diff --git a/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_cleanUpObjects.sqf b/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_cleanUpObjects.sqf index 1561c95..aa4377a 100644 --- a/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_cleanUpObjects.sqf +++ b/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_cleanUpObjects.sqf @@ -30,16 +30,16 @@ _fn_deleteObjects = { } forEach _objects; }; -diag_log format["_fnc_cleanUpObjects called at %1",diag_tickTime]; +//diag_log format["_fnc_cleanUpObjects called at %1",diag_tickTime]; private["_oldObjs"]; for "_i" from 1 to (count blck_oldMissionObjects) do { if (_i <= count blck_oldMissionObjects) then { _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 { - 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; uiSleep 0.1; blck_oldMissionObjects set[(_i - 1), -1]; diff --git a/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_missionSpawner.sqf b/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_missionSpawner.sqf index ebecf84..a7f1f09 100644 --- a/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_missionSpawner.sqf +++ b/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_missionSpawner.sqf @@ -189,7 +189,7 @@ if (typeName _temp isEqualTo "ARRAY") then }; //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]; }; @@ -208,7 +208,7 @@ if (typeName _infantry isEqualto "ARRAY") then }; 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]; }; @@ -254,7 +254,7 @@ if (blck_enableReinforcements && (random(1) < _chanceReinforcements)) then */ // 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"]; _missionComplete = -1; _startTime = diag_tickTime; @@ -265,11 +265,11 @@ switch (_endCondition) do case "allUnitsKilled": {_endIfPlayerNear = false;_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"]; _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 { if (blck_debugLevel isEqualTo 3) exitWith {uiSleep 300}; diff --git a/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_spawnPendingMissions.sqf b/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_spawnPendingMissions.sqf index fb2ae6a..e12198b 100644 --- a/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_spawnPendingMissions.sqf +++ b/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_spawnPendingMissions.sqf @@ -6,7 +6,7 @@ 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"]; { if (blck_debugLevel > 2) then {diag_log format["_fnc_spawnPendingMissions:: -- >> _x = %1 and _x select 6 = %2",_x, _x select 6];}; diff --git a/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_updateMissionQue.sqf b/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_updateMissionQue.sqf index 8adab54..dc6dfa5 100644 --- a/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_updateMissionQue.sqf +++ b/@epochhive/addons/custom_server/Compiles/Missions/GMS_fnc_updateMissionQue.sqf @@ -6,7 +6,7 @@ */ 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"]; _index = blck_pendingMissions find _mission; diff --git a/@epochhive/addons/custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf b/@epochhive/addons/custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf index 2daddf0..7c2c50f 100644 --- a/@epochhive/addons/custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf +++ b/@epochhive/addons/custom_server/Compiles/TimeAccel/GMS_fnc_Time.sqf @@ -18,7 +18,7 @@ _arr = date call BIS_fnc_sunriseSunsetTime; _sunrise = _arr select 0; _sunset = _arr select 1; _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 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];}; diff --git a/@epochhive/addons/custom_server/Compiles/Units/GMS_fnc_cleanupAliveAI.sqf b/@epochhive/addons/custom_server/Compiles/Units/GMS_fnc_cleanupAliveAI.sqf index 5d507cc..0413377 100644 --- a/@epochhive/addons/custom_server/Compiles/Units/GMS_fnc_cleanupAliveAI.sqf +++ b/@epochhive/addons/custom_server/Compiles/Units/GMS_fnc_cleanupAliveAI.sqf @@ -14,18 +14,18 @@ _fn_deleteAIfromList = { }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 { if ((_i) <= count blck_liveMissionAI) then { _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 { - 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; }forEach (_units select 0); uiSleep 0.1; diff --git a/@epochhive/addons/custom_server/Compiles/Units/GMS_fnc_cleanupDeadAI.sqf b/@epochhive/addons/custom_server/Compiles/Units/GMS_fnc_cleanupDeadAI.sqf index 6816b64..f139443 100644 --- a/@epochhive/addons/custom_server/Compiles/Units/GMS_fnc_cleanupDeadAI.sqf +++ b/@epochhive/addons/custom_server/Compiles/Units/GMS_fnc_cleanupDeadAI.sqf @@ -4,7 +4,7 @@ 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"]; _aiList = +blck_deadAI; { diff --git a/@epochhive/addons/custom_server/Compiles/Vehicles/GMS_fnc_vehicleMonitor.sqf b/@epochhive/addons/custom_server/Compiles/Vehicles/GMS_fnc_vehicleMonitor.sqf index a9078c0..fe7656c 100644 --- a/@epochhive/addons/custom_server/Compiles/Vehicles/GMS_fnc_vehicleMonitor.sqf +++ b/@epochhive/addons/custom_server/Compiles/Vehicles/GMS_fnc_vehicleMonitor.sqf @@ -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; if (_veh getVariable["blck_DeleteAt",0] > 0) then diff --git a/@epochhive/addons/custom_server/Compiles/blck_variables.sqf b/@epochhive/addons/custom_server/Compiles/blck_variables.sqf index 285c5cb..ef119a1 100644 --- a/@epochhive/addons/custom_server/Compiles/blck_variables.sqf +++ b/@epochhive/addons/custom_server/Compiles/blck_variables.sqf @@ -6,7 +6,7 @@ Last modified 10/25/16 */ //blck_variablesLoaded = false; -blck_debugON = false; +blck_debugON = true; blck_debugLevel = 0; // Sets level of detail for debugging info - WIP. blck_minFPS = 10;