DIFF

class DebugSource

Constants 19

private static const string LOG_DEBUG = "Debug"
private static const string LOG_DEBUG_ACTION = "Action"
Referenced by ActionLog()
private static const string LOG_DEBUG_SYMPTOM = "Symptom"
Referenced by SymptomLog()
private static const string LOG_DEBUG_INV_MOVE = "Inv Move"
Referenced by InventoryMoveLog()
private static const string LOG_DEBUG_INV_RESERVATION = "Inv Rrsv"
private static const string LOG_DEBUG_INV_HFSM = "HFSM"
Referenced by InventoryHFSMLog()
private static const string LOG_DEBUG_QUICKBAR = "Quickbar"
Referenced by QuickbarLog()
private static const string LOG_DEBUG_BASEBUILDING = "Base Building"
Referenced by BaseBuildingLog()
private static const string LOG_DEBUG_BLEEDING_CHANCES = "Bleeding"
Referenced by BleedingChancesLog()
private static const string LOG_DEBUG_TRIGGER = "Trigger"
Referenced by TriggerLog()
private static const string LOG_DEBUG_PARTICLE = "Particle"
Referenced by ParticleLog()
private static const string LOG_DEBUG_TF = "TestFramework"
Referenced by TFLog()
private static const string LOG_DEBUG_WEIGHT = "Weight"
private static const string LOG_DEBUG_MELEE = "Melee"
Referenced by MeleeLog()
private static const string LOG_DEBUG_WEATHER = "Weather"
Referenced by WeatherLog()
private static const string LOG_INFO = "Info"
Referenced by LogInfo()
private static const string LOG_WARNING = "Warning"
Referenced by LogWarning()
private static const string LOG_ERROR = "Error"
Referenced by LogError()
private static const string LOG_DEFAULT = "n/a"

Members 6

private static ref array<Shape> m_DebugShapes
private static ref array<ref DebugTextScreenSpace> m_DebugTextsSS
Referenced by DestroyAllTextSS(), DrawTextSS(), Init()
Show 1 more, RemoveTextSS()
private static ref array<ref DebugTextWorldSpace> m_DebugTextsWS
Referenced by DestroyAllTextWS(), DrawTextWS(), Init()
Show 1 more, RemoveTextWS()
static Widget m_DebugLayoutCanvas
Referenced by InitCanvas()
static CanvasWidget m_CanvasDebug
private static bool m_EnabledLogs

DEPRECATED

Methods 57

static void ClearCanvas()
static void CanvasDrawLine(float x1, float y1, float x2, float y2, float width, int color)
Referenced by CanvasDrawPoint()
static void CanvasDrawPoint(float x1, float y1, int color)

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 )); }

References CanvasDrawLine()
static void Init()
Referenced by DayZGame.DayZGame()
static void DestroyAll()
static void DestroyAllShapes()
Referenced by DestroyAll()
static void DestroyAllTextSS()
Referenced by DestroyAll()
static void DestroyAllTextWS()
Referenced by DestroyAll()
static void RemoveTextSS(out DebugTextScreenSpace text)
References array.Count(), array.Get(), array.Remove()
Show 1 more, m_DebugTextsSS
Referenced by CleanupTextsSS()
static void RemoveTextWS(out DebugTextWorldSpace text)
References array.Count(), array.Get(), array.Remove()
Show 1 more, m_DebugTextsWS
Referenced by CleanupTextsWS()
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

msg
string Debug message for print

Returns: void None

Debug.Log("Hello World");

>> [Log]: Hello World;
References LogMessage(), and LOG_DEBUG
static void SymptomLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
Referenced by BlindnessSymptom.OnGetActivatedClient(), BlindnessSymptom.OnGetActivatedServer(), BlindnessSymptom.OnGetDeactivatedClient()
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 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)
static void QuickbarLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
static void BaseBuildingLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
static void BleedingChancesLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
static void TriggerLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
static void ParticleLog(string message = LOG_DEFAULT, Managed caller = null, string function = "", Managed entity = null)
static void WeightLog(string message = LOG_DEFAULT, Managed caller = null, string function = "", Managed entity = null)
static void MeleeLog(Entity entity, string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT)
static void WeatherLog(string message = LOG_DEFAULT, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
static 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

msg
string Debug message for print

Returns: void None

Debug.Log("Hello World");

>> [Log]: Hello World;
References LogMessage(), and LOG_INFO
Referenced by LogInfo()
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

msg
string Debug message for warning print

Returns: void None

Debug.LogWarning("Hello World, this is warning log");

>> [Warning]: Hello World, this is warning log
References LogMessage(), and LOG_WARNING
static void LogArrayInt(array<int> arr = NULL, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
References array.Count(), array.Get(), LogMessage()
Show 2 more, ToString(), and LOG_DEBUG
static void LogArrayString(array<string> arr = NULL, string plugin = LOG_DEFAULT, string author = LOG_DEFAULT, string label = LOG_DEFAULT, string entity = LOG_DEFAULT)
References array.Count(), array.Get(), LogMessage()
Show 1 more, LOG_DEBUG
static void ReceivedLogMessageFromServer(string message)
static void ClearScriptLogs()
References ClearLogs()
static Shape DrawBoxEx(vector pos1, vector pos2, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOZWRITE)
static Shape DrawCube(vector pos, float size = 1, int color = 0x1fff7f7f)
static Shape DrawFrustum(float horizontalAngle, float verticalAngle, float length, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.WIREFRAME)
static Shape DrawCylinder(vector pos, float radius, float height = 1, int color = 0x1fff7f7f, ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
static array<Shape> DrawCone(vector pos, float lenght, float halfAngle, float offsetAngle, int color = 0xFFFFFFFF, int flags = 0)
static void CleanupDrawShapes(array<Shape> shapes)
static void CleanupTextsSS(array<ref DebugTextScreenSpace> texts)
static void CleanupTextsWS(array<ref DebugTextWorldSpace> texts)
static Shape DrawLines(vector[] positions, int count, 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_classes
out TStringArray 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_string
string String to search in class names
filtered_classes
out TStringArray Array containing filtered classes based on search_string
only_public
bool Set to true to return only public classes, set to false to return all filtered classes
static void ClearLogs()

Active when '-logToScript=1' is set

References CloseFile(), FileExist(), FPrintln()
Show 2 more, GetFileName(), and OpenFile()
static string GetFileName()