class DebugSource
Constants 19
private static const string LOG_DEBUG = "Debug"private static const string LOG_DEBUG_ACTION = "Action"private static const string LOG_DEBUG_SYMPTOM = "Symptom"private static const string LOG_DEBUG_INV_MOVE = "Inv Move"private static const string LOG_DEBUG_INV_RESERVATION = "Inv Rrsv"private static const string LOG_DEBUG_INV_HFSM = "HFSM"private static const string LOG_DEBUG_QUICKBAR = "Quickbar"private static const string LOG_DEBUG_BASEBUILDING = "Base Building"private static const string LOG_DEBUG_BLEEDING_CHANCES = "Bleeding"private static const string LOG_DEBUG_TRIGGER = "Trigger"private static const string LOG_DEBUG_PARTICLE = "Particle"private static const string LOG_DEBUG_WEIGHT = "Weight"private static const string LOG_DEBUG_MELEE = "Melee"private static const string LOG_DEBUG_WEATHER = "Weather"private static const string LOG_WARNING = "Warning"private static const string LOG_ERROR = "Error"private static const string LOG_DEFAULT = "n/a"Members 6
Show 8 more
, DrawCube(), DrawCylinder(), DrawFrustum(), DrawLine(), DrawLines(), DrawSphere(), Init(), and RemoveShape()private static ref array<ref DebugTextScreenSpace> m_DebugTextsSSprivate static ref array<ref DebugTextWorldSpace> m_DebugTextsWSstatic Widget m_DebugLayoutCanvasstatic CanvasWidget m_CanvasDebugprivate static bool m_EnabledLogsDEPRECATED
Methods 57
static void InitCanvas()Show 3 more
, CGame.GetWorkspace(), m_CanvasDebug, and m_DebugLayoutCanvasstatic void ClearCanvas()Draws a "point" on the screen at x,y coordinates Debug.ClearCanvas(); for(int i = 0; i < 700;i++) { float val = i/700; float y = Easing.EaseInOutExpo(val); Debug.CanvasDrawPoint(i,y*700,ARGBF( 0.6, 1, 1, 1 )); }
static void Init()static void DestroyAll()static void DestroyAllShapes()static void DestroyAllTextSS()static void DestroyAllTextWS()static void RemoveShape(out Shape shape)Show 2 more
, array.Remove(), and m_DebugShapesShow 10 more
, DayZPlayerImplementMeleeCombat.CleanupDebugShapes(), CleanupDrawShapes(), EffectArea.CleanupDebugShapes(), PluginDayZInfectedDebug.CleanupDebugShapes(), Trigger.CleanupDebugShapes(), VicinityItemManager.CleanupDebugShapes(), WeaponDebug.DrawLineOfFire(), WeaponDebug.DrawLineOfFireCameraHybrid(), WeaponDebug.DrawLineOfFireMuzzleToHit(), and WeaponDebug.RemoveAllShapes()static void RemoveTextSS(out DebugTextScreenSpace text)static void RemoveTextWS(out DebugTextWorldSpace text)static void Log(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)Prints debug message with normal prio
msgstringDebug message for print
Returns: void None
Debug.Log("Hello World");
>> [Log]: Hello World;static void ActionLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)Show 23 more
, ActionBaseCB.OnFinish(), ActionContinuousBase.OnEndAnimationLoop(), ActionContinuousBase.OnFinishProgress(), ActionContinuousBase.OnStartAnimationLoop(), ActionInput.Init(), ActionInput.SetInput(), ActionInteractBaseCB.InitActionComponent(), ActionManagerBase.OnActionEnd(), ActionManagerClient.ActionStart(), ActionManagerClient.LockInventory(), ActionManagerClient.ProcessActionInputEnd(), ActionManagerClient.ProcessActionRequestEnd(), ActionManagerClient.UnlockInventory(), ActionManagerServer.StartDeliveredAction(), ActionManagerServer.Update(), AdvancedCommunication.AddAction(), AnimatedActionBase.CheckAnimationEvent(), AnimatedActionBase.Do(), AnimatedActionBase.End(), BoatScript.AddAction(), BuildingBase.AddAction(), CarScript.AddAction(), and ItemBase.AddAction()static void SymptomLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)Show 45 more
, BlindnessSymptom.OnGetDeactivatedServer(), BloodLoss.OnGetActivatedClient(), BloodLoss.OnGetActivatedServer(), BloodLoss.OnGetDeactivatedClient(), BloodLoss.OnGetDeactivatedServer(), FeverBlurSymptom.OnGetActivatedClient(), FeverBlurSymptom.OnGetActivatedServer(), FeverBlurSymptom.OnGetDeactivatedClient(), FeverBlurSymptom.OnGetDeactivatedServer(), FreezeRattleSymptom.OnGetActivatedClient(), FreezeRattleSymptom.OnGetActivatedServer(), FreezeRattleSymptom.OnGetDeactivatedClient(), FreezeRattleSymptom.OnGetDeactivatedServer(), FreezeSymptom.OnGetActivatedClient(), FreezeSymptom.OnGetActivatedServer(), FreezeSymptom.OnGetDeactivatedClient(), FreezeSymptom.OnGetDeactivatedServer(), GaspSymptom.OnGetActivatedClient(), GaspSymptom.OnGetActivatedServer(), GaspSymptom.OnGetDeactivatedClient(), GaspSymptom.OnGetDeactivatedServer(), HMP3Symptom.OnGetActivatedClient(), HMP3Symptom.OnGetActivatedServer(), HMP3Symptom.OnGetDeactivatedClient(), HMP3Symptom.OnGetDeactivatedServer(), HotSymptom.OnGetActivatedClient(), HotSymptom.OnGetActivatedServer(), HotSymptom.OnGetDeactivatedClient(), HotSymptom.OnGetDeactivatedServer(), LaughterSymptom.OnGetActivatedClient(), LaughterSymptom.OnGetActivatedServer(), LaughterSymptom.OnGetDeactivatedClient(), LaughterSymptom.OnGetDeactivatedServer(), PainHeavySymptom.OnGetActivatedClient(), PainHeavySymptom.OnGetActivatedServer(), PainHeavySymptom.OnGetDeactivatedClient(), PainHeavySymptom.OnGetDeactivatedServer(), PainLightSymptom.OnGetActivatedClient(), PainLightSymptom.OnGetActivatedServer(), PainLightSymptom.OnGetDeactivatedClient(), PainLightSymptom.OnGetDeactivatedServer(), SneezeSymptom.OnGetActivatedClient(), SneezeSymptom.OnGetActivatedServer(), SneezeSymptom.OnGetDeactivatedClient(), and SneezeSymptom.OnGetDeactivatedServer()static void InventoryMoveLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)Show 8 more
, DayZPlayerInventory.HandleTakeToDst(), DayZPlayerInventory.StoreInputForRemotes(), DayZPlayerInventory.SwapEntities(), DayZPlayerInventory.TakeToDst(), DayZPlayerInventory.ValidateDestroy(), DayZPlayerInventory.ValidateHandEvent(), DayZPlayerInventory.ValidateSwap(), and DayZPlayerInventory.ValidateSyncMove()static void InventoryReservationLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)static void InventoryHFSMLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)Show 36 more
, HandActionDestroy.Action(), HandActionDestroyAndReplaceWithNew.Action(), HandActionDestroyed.Action(), HandActionDrop.Action(), HandActionForceSwap.Action(), HandActionMoveTo.Action(), HandActionReplaced.Action(), HandActionSwap.Action(), HandActionTake.Action(), HandActionThrow.Action(), HandAnimatedMoveToDst_W4T_Basic.OnEntry(), HandAnimatedTakingFromAtt.OnAbort(), HandEventForceSwap.CanPerformEvent(), HandEventForceSwap.CheckRequest(), HandEventMoveTo.CanPerformEvent(), HandEventRemove.CanPerformEvent(), HandEventRemove.CheckRequestSrc(), HandEventSwap.CanPerformEvent(), HandEventSwap.CheckRequest(), HandEventTake.CanPerformEventEx(), HandEventTake.CheckRequestSrc(), HandGuardAnd.GuardCondition(), HandGuardCanForceSwap.GuardCondition(), HandGuardCanMove.GuardCondition(), HandGuardCanSwap.GuardCondition(), HandGuardHasDestroyedItemInHands.GuardCondition(), HandGuardHasItemInEvent.GuardCondition(), HandGuardHasItemInHands.GuardCondition(), HandGuardHasRoomForItem.GuardCondition(), HandGuardHasWeaponInEvent.GuardCondition(), HandGuardInstantForceSwap.GuardCondition(), HandGuardIsSameItemInHands.GuardCondition(), HandGuardNot.GuardCondition(), HandGuardOr.GuardCondition(), HandTakingAnimated_Show.OnEntry(), and HumanInventoryWithFSM.ProcessHandEvent()static void ParticleLog(string message = LOG_DEFAULT, Managed caller = null, string function = "", Managed entity = null)Show 1 more
, PMTF.PrintPMStats()static void TFLog(string message = LOG_DEFAULT, TestFramework caller = null, string function = "")static void MeleeLog(Entity entity, string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT)Show 2 more
, LogMessage(), and LOG_DEBUG_MELEEstatic void LogInfo(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)Prints debug message with normal prio
msgstringDebug message for print
Returns: void None
Debug.Log("Hello World");
>> [Log]: Hello World;static void LogWarning(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)Prints debug message as warning message
msgstringDebug message for warning print
Returns: void None
Debug.LogWarning("Hello World, this is warning log");
>> [Warning]: Hello World, this is warning logShow 2 more
, EntityAI.CanDisplayAttachmentSlot(), and EntityAI.LogWarning()static void LogError(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)Prints debug message as error message
msgstringDebug message for error print
Returns: void None
Debug.LogError("Hello World, this is error log");
>> [Error]: Hello World, this is error logShow 25 more
, BoatScript.AddAction(), BuildingBase.AddAction(), CarScript.AddAction(), Component.LogErrorBadCompType(), Component.LogThisError(), Component.LogWarningAlredyExist(), DeveloperFreeCamera.DisableFreeCamera(), DeveloperFreeCamera.EnableFreeCamera(), EntityAI.GetDefaultHitComponent(), EntityAI.GetDefaultHitPosition(), EntityAI.GetDefaultHitPositionComponent(), EntityAI.GetHitComponentForAI(), EntityAI.GetSuitableFinisherHitComponents(), EntityAI.LogError(), FireworksLauncherClientEvent.FireworksLauncherClientEvent(), FireworksLauncherClientEvent.GetShotPos(), HungerSoundHandlerClient.PlaySound(), ItemBase.AddAction(), MiscGameplayFunctions.Normalize(), ModifiersManager.OnStoreLoad(), OpenItem.OpenAndSwitch(), PluginItemDiagnostic.Tick(), SymptomManager.OnSymptomExit(), TanLeatherLambda.CopyOldPropertiesToNew(), and TurnItemIntoItemLambda.CopyOldPropertiesToNew()static void LogArrayString(array<string> arr = NULL, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)static void ReceivedLogMessageFromServer(string message)static void ClearScriptLogs()static Shape DrawBoxEx(vector pos1, vector pos2, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOZWRITE)Show 1 more
, Trigger.DrawDebugShape()static Shape DrawSphere(vector pos, float size = 1, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)Show 20 more
, BleedingSource.DrawDebugShape(), DayZPlayerImplementMeleeCombat.DrawDebugMeleeHitPosition(), DayZPlayerImplementMeleeCombat.DrawDebugTargetsHelper(), EffectArea.CreateTrigger(), Hologram.DrawSphere(), Hologram.GetProjectionEntityPosition(), PluginDayZInfectedDebug.OnUpdate(), PluginSceneManager.EditorUpdateRuler(), SphereTrigger.DrawDebugShape(), SpookyEventBase.Perform(), Trigger.DrawDebugShape(), UndergroundHandlerClient.CalculateBreadCrumbs(), UndergroundHandlerClient.CalculateLinePointFade(), VicinityItemManager.DebugActorsSphereDraw(), VicinityItemManager.DebugObjectsSphereDraw(), WeaponDebug.DrawBarrelMemoryPoints(), WeaponDebug.DrawEyePoint(), WeaponDebug.DrawLineOfFire(), WeaponDebug.DrawLineOfFireCameraHybrid(), and WeaponDebug.DrawLineOfFireMuzzleToHit()static array<Shape> DrawCone(vector pos, float lenght, float halfAngle, float offsetAngle, int color = 0xFFFFFFFF, int flags = 0)Show 4 more
, array.Insert(), vector.Normalized(), Math.Sin(), and Vector()static void CleanupTextsSS(array<ref DebugTextScreenSpace> texts)static void CleanupTextsWS(array<ref DebugTextWorldSpace> texts)DrawLine \nFlags:
ShapeFlags.NOZBUFFER
ShapeFlags.NOZUPDATE
ShapeFlags.DOUBLESIDE
ShapeFlags.WIREFRAME
ShapeFlags.TRANSP
ShapeFlags.ONCE
ShapeFlags.NOOUTLINE
ShapeFlags.NOCULL
Show 14 more
, BoxDraw.DrawRotatedBox(), CfgPlayerRestrictedAreaHandler.DrawPolygonLinesDebug(), DayZPlayerImplementMeleeCombat.DrawDebugTargetsHelper(), DrawCone(), DynamicMusicPlayer.DrawPolygonLocation(), MeleeTargeting.GetMeleeTargetEx(), PluginSceneManager.EditorUpdateRuler(), SpookyTriggerEventsHandler.GatherSurfaces(), UndergroundHandlerClient.CalculateBreadCrumbs(), UndergroundHandlerClient.CalculateLinePointFade(), VicinityItemManager.DebugConeDraw(), WeaponDebug.DrawLineOfFire(), WeaponDebug.DrawLineOfFireCameraHybrid(), and WeaponDebug.DrawLineOfFireMuzzleToHit()static Shape DrawArrow(vector from, vector to, float size = 0.5, int color = 0xFFFFFFFF, int flags = 0)static DebugTextScreenSpace DrawTextSS(string text, float x, float y, float size = 20.0, int color = 0xFFFFFFFF, int bgColor = 0x00000000, DebugTextFlags flags = DebugTextFlags.DEFAULT, int priority = 1000)static DebugTextWorldSpace DrawTextWS(string text, vector position, float size = 20.0, int color = 0xFFFFFFFF, int bgColor = 0x00000000, DebugTextFlags flags = DebugTextFlags.DEFAULT, int priority = 1000)static void GetBaseConfigClasses(out TStringArray base_classes)Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc. for searching purposes
base_classesoutTStringArray Array containing some of base config classes
static void GetFiltredConfigClasses(string search_string, out TStringArray filtered_classes, bool only_public = true)Returns config classes containing search_string in name
search_stringstringString to search in class namesfiltered_classesoutTStringArray Array containing filtered classes based on search_stringonly_publicboolSet to true to return only public classes, set to false to return all filtered classes
private static string LogMessage(string level, string plugin, string entity, string author, string label, string message)Show 5 more
, LogManager.IsLogsEnable(), CGame.IsMultiplayer(), CGame.IsServer(), SaveLog(), and string.Emptyprivate static void SaveLog(string log_message)Show 8 more
, FPrintln(), GetDispatcher(), GetFileName(), string.Length(), OpenFile(), Print(), PrintToRPT(), and CachedObjectsParams.PARAM1_STRINGstatic void ClearLogs()Active when '-logToScript=1' is set
static string GetFileName()private static string GetDate()