mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
commented some diag_logs to reduce log spam
This commit is contained in:
@@ -20,7 +20,7 @@ if ((_timeout - time) > 0) then {
|
||||
_object setVariable["unconsciousTime",300,true];
|
||||
#ifdef DZE_SERVER_DEBUG
|
||||
diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
|
||||
diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
|
||||
//diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
|
||||
#endif
|
||||
|
||||
// Message whole server when player combat logs
|
||||
|
||||
@@ -51,7 +51,7 @@ while {true} do {
|
||||
// Once a minute.
|
||||
EventSchedulerLastTime = _datestr;
|
||||
|
||||
diag_log ("EVENTS: Local Time is: " + _datestr);
|
||||
//diag_log ("EVENTS: Local Time is: " + _datestr);
|
||||
{
|
||||
if([[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4)],_date] call epoch_eventIsAny) then {
|
||||
diag_log ("RUNNING EVENT: " + (_x select 5) + " on " + _datestr);
|
||||
|
||||
@@ -4,7 +4,7 @@ _character = _this select 0;
|
||||
_traderid = _this select 1;
|
||||
|
||||
_clientID = owner _character;
|
||||
diag_log ("HIVE: Menu Request by ClientID: "+ str(_clientID));
|
||||
//diag_log ("HIVE: Menu Request by ClientID: "+ str(_clientID));
|
||||
|
||||
// add cacheing
|
||||
_retrader = call compile format["ServerTcache_%1;",_traderid];
|
||||
@@ -16,7 +16,7 @@ if(isNil "_retrader") then {
|
||||
_key = format["CHILD:399:%1:",_traderid];
|
||||
_data = "HiveEXT" callExtension _key;
|
||||
|
||||
diag_log "HIVE: Request sent";
|
||||
//diag_log "HIVE: Request sent";
|
||||
|
||||
//Process result
|
||||
_result = call compile format ["%1",_data];
|
||||
@@ -25,7 +25,7 @@ if(isNil "_retrader") then {
|
||||
if (_status == "ObjectStreamStart") then {
|
||||
_val = _result select 1;
|
||||
//Stream Objects
|
||||
diag_log ("HIVE: Commence Menu Streaming...");
|
||||
//diag_log ("HIVE: Commence Menu Streaming...");
|
||||
call compile format["ServerTcache_%1 = [];",_traderid];
|
||||
for "_i" from 1 to _val do {
|
||||
_data = "HiveEXT" callExtension _key;
|
||||
|
||||
@@ -51,7 +51,7 @@ _object_position = {
|
||||
_fuel = fuel _object;
|
||||
};
|
||||
_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
|
||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
};
|
||||
|
||||
@@ -70,7 +70,7 @@ _object_inventory = {
|
||||
} else {
|
||||
_key = format["CHILD:303:%1:%2:",_objectID,_inventory];
|
||||
};
|
||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
};
|
||||
};
|
||||
@@ -88,7 +88,7 @@ _object_damage = {
|
||||
} forEach _hitpoints;
|
||||
|
||||
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
|
||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
_object setVariable ["needUpdate",false,true];
|
||||
};
|
||||
@@ -112,7 +112,7 @@ _object_killed = {
|
||||
} else {
|
||||
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
|
||||
};
|
||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
_object setVariable ["needUpdate",false,true];
|
||||
};
|
||||
@@ -130,7 +130,7 @@ _object_repair = {
|
||||
} forEach _hitpoints;
|
||||
|
||||
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
|
||||
diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
//diag_log ("HIVE: WRITE: "+ str(_key));
|
||||
_key call server_hiveWrite;
|
||||
_object setVariable ["needUpdate",false,true];
|
||||
};
|
||||
@@ -145,7 +145,7 @@ switch (_type) do {
|
||||
};
|
||||
case "position": {
|
||||
if (!(_object in needUpdate_objects)) then {
|
||||
diag_log format["DEBUG Position: Added to NeedUpdate=%1",_object];
|
||||
//diag_log format["DEBUG Position: Added to NeedUpdate=%1",_object];
|
||||
needUpdate_objects set [count needUpdate_objects, _object];
|
||||
};
|
||||
};
|
||||
@@ -157,7 +157,7 @@ switch (_type) do {
|
||||
call _object_damage;
|
||||
} else {
|
||||
if (!(_object in needUpdate_objects)) then {
|
||||
diag_log format["DEBUG Damage: Added to NeedUpdate=%1",_object];
|
||||
//diag_log format["DEBUG Damage: Added to NeedUpdate=%1",_object];
|
||||
needUpdate_objects set [count needUpdate_objects, _object];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -74,10 +74,10 @@ check_publishobject = {
|
||||
|
||||
_allowed = false;
|
||||
|
||||
diag_log format ["DEBUG: Checking if Object: %1 is allowed published by %2", _object, _playername];
|
||||
//diag_log format ["DEBUG: Checking if Object: %1 is allowed published by %2", _object, _playername];
|
||||
|
||||
if ((typeOf _object) in dayz_allowedObjects) then {
|
||||
diag_log format ["DEBUG: Object: %1 published by %2 is Safe",_object, _playername];
|
||||
//diag_log format ["DEBUG: Object: %1 published by %2 is Safe",_object, _playername];
|
||||
_allowed = true;
|
||||
};
|
||||
_allowed
|
||||
@@ -295,7 +295,7 @@ spawn_vehicles = {
|
||||
_index = _weights select _index;
|
||||
_itemType = _itemTypes select _index;
|
||||
_veh addMagazineCargoGlobal [_itemType,1];
|
||||
diag_log("DEBUG: spawed loot inside vehicle " + str(_itemType));
|
||||
//diag_log("DEBUG: spawed loot inside vehicle " + str(_itemType));
|
||||
};
|
||||
|
||||
[_veh,[_dir,_objPosition],_vehicle,true,"0"] call server_publishVeh;
|
||||
@@ -339,7 +339,7 @@ spawn_roadblocks = {
|
||||
_spawnloot = "DynamicDebrisMilitary";
|
||||
};
|
||||
|
||||
diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position));
|
||||
//diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position));
|
||||
_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
|
||||
_veh enableSimulation false;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ if (_spawnRoll <= _spawnChance) then {
|
||||
|
||||
_position = [getMarkerPos _spawnMarker,0,_spawnRadius,10,0,2000,0] call BIS_fnc_findSafePos;
|
||||
|
||||
diag_log(format["CRASHSPAWNER: Spawning '%1' with loot table '%2' NOW! (%3) at: %4", _crashName, _lootTable, time, str(_position)]);
|
||||
//diag_log(format["CRASHSPAWNER: Spawning '%1' with loot table '%2' NOW! (%3) at: %4", _crashName, _lootTable, time, str(_position)]);
|
||||
|
||||
_crash = createVehicle [_crashModel,_position, [], 0, "CAN_COLLIDE"];
|
||||
// Randomize the direction the wreck is facing
|
||||
@@ -80,7 +80,7 @@ if (_spawnRoll <= _spawnChance) then {
|
||||
_index = _weights select _index;
|
||||
_itemType = _itemTypes select _index;
|
||||
[_itemType select 0, _itemType select 1, _position, 5] call spawn_loot;
|
||||
diag_log(format["CRASHSPAWNER: Loot spawn at '%1' with loot table '%2'", _crashName, _lootTable]);
|
||||
//diag_log(format["CRASHSPAWNER: Loot spawn at '%1' with loot table '%2'", _crashName, _lootTable]);
|
||||
};
|
||||
|
||||
// ReammoBox is preferred parent class here, as WeaponHolder wouldn't match MedBox0 and other such items.
|
||||
|
||||
@@ -124,7 +124,7 @@ if (isServer and isNil "sm_done") then {
|
||||
};
|
||||
|
||||
if (_damage < 1) then {
|
||||
diag_log format["OBJ: %1 - %2", _idKey,_type];
|
||||
//diag_log format["OBJ: %1 - %2", _idKey,_type];
|
||||
|
||||
//Create it
|
||||
_object = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];
|
||||
@@ -280,7 +280,7 @@ if (isServer and isNil "sm_done") then {
|
||||
_key = format["CHILD:399:%1:",_traderid];
|
||||
_data = "HiveEXT" callExtension _key;
|
||||
|
||||
diag_log "HIVE: Request sent";
|
||||
//diag_log "HIVE: Request sent";
|
||||
|
||||
//Process result
|
||||
_result = call compile format ["%1",_data];
|
||||
@@ -289,7 +289,7 @@ if (isServer and isNil "sm_done") then {
|
||||
if (_status == "ObjectStreamStart") then {
|
||||
_val = _result select 1;
|
||||
//Stream Objects
|
||||
diag_log ("HIVE: Commence Menu Streaming...");
|
||||
//diag_log ("HIVE: Commence Menu Streaming...");
|
||||
call compile format["ServerTcache_%1 = [];",_traderid];
|
||||
for "_i" from 1 to _val do {
|
||||
_data = "HiveEXT" callExtension _key;
|
||||
|
||||
Reference in New Issue
Block a user