Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Debug Class Reference

Static Private Member Functions

static void ActionLog (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 CanvasDrawLine (float x1, float y1, float x2, float y2, float width, int color)
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 )); }.
static void CleanupDrawShapes (array< Shape > shapes)
static void CleanupTextsSS (array< ref DebugTextScreenSpace > texts)
static void CleanupTextsWS (array< ref DebugTextWorldSpace > texts)
static void ClearCanvas ()
static void ClearLogs ()
static void ClearScriptLogs ()
static void DestroyAll ()
static void DestroyAllShapes ()
static void DestroyAllTextSS ()
static void DestroyAllTextWS ()
static Shape DrawArrow (vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
static Shape DrawBox (vector pos1, vector pos2, int color=0x1fff7f7f)
static Shape DrawBoxEx (vector pos1, vector pos2, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOZWRITE)
static array< ShapeDrawCone (vector pos, float lenght, float halfAngle, float offsetAngle, int color=0xFFFFFFFF, int flags=0)
static Shape DrawCube (vector pos, float size=1, int color=0x1fff7f7f)
static Shape DrawCylinder (vector pos, float radius, float height=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
static Shape DrawFrustum (float horizontalAngle, float verticalAngle, float length, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.WIREFRAME)
static Shape DrawLine (vector from, vector to, int color=0xFFFFFFFF, int flags=0)
 DrawLine \nFlags:
ShapeFlags.NOZBUFFER
ShapeFlags.NOZUPDATE
ShapeFlags.DOUBLESIDE
ShapeFlags.WIREFRAME
ShapeFlags.TRANSP
ShapeFlags.ONCE
ShapeFlags.NOOUTLINE
ShapeFlags.NOCULL.
static Shape DrawLines (vector[] positions, int count, int color=0xFFFFFFFF, int flags=0)
static Shape DrawSphere (vector pos, float size=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
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.
static string GetDate ()
static string GetDebugName (Managed entity)
static string GetFileName ()
static void GetFiltredConfigClasses (string search_string, out TStringArray filtered_classes, bool only_public=true)
 Returns config classes containing search_string in name.
static void Init ()
static void InitCanvas ()
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 InventoryMoveLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
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 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.
static void LogArrayInt (array< int > arr=NULL, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
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 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.
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.
static string LogMessage (string level, string plugin, string entity, string author, string label, string message)
 DEPRECATED.
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.
static void MeleeLog (Entity entity, string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT)
static void ParticleLog (string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
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 ReceivedLogMessageFromServer (string message)
static void RemoveShape (out Shape shape)
static void RemoveTextSS (out DebugTextScreenSpace text)
static void RemoveTextWS (out DebugTextWorldSpace text)
static void SaveLog (string log_message)
static void SymptomLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static void TFLog (string message=LOG_DEFAULT, TestFramework caller=null, string function="")
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 WeatherLog (string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static void WeightLog (string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)

Static Private Attributes

static const string LOG_DEBUG = "Debug"
static const string LOG_DEBUG_ACTION = "Action"
static const string LOG_DEBUG_BASEBUILDING = "Base Building"
static const string LOG_DEBUG_BLEEDING_CHANCES = "Bleeding"
static const string LOG_DEBUG_INV_HFSM = "HFSM"
static const string LOG_DEBUG_INV_MOVE = "Inv Move"
static const string LOG_DEBUG_INV_RESERVATION = "Inv Rrsv"
static const string LOG_DEBUG_MELEE = "Melee"
static const string LOG_DEBUG_PARTICLE = "Particle"
static const string LOG_DEBUG_QUICKBAR = "Quickbar"
static const string LOG_DEBUG_SYMPTOM = "Symptom"
static const string LOG_DEBUG_TF = "TestFramework"
static const string LOG_DEBUG_TRIGGER = "Trigger"
static const string LOG_DEBUG_WEATHER = "Weather"
static const string LOG_DEBUG_WEIGHT = "Weight"
static const string LOG_DEFAULT = "n/a"
static const string LOG_ERROR = "Error"
static const string LOG_INFO = "Info"
static const string LOG_WARNING = "Warning"
static CanvasWidget m_CanvasDebug
static Widget m_DebugLayoutCanvas
static ref array< Shapem_DebugShapes
static ref array< ref DebugTextScreenSpacem_DebugTextsSS
static ref array< ref DebugTextWorldSpacem_DebugTextsWS
static bool m_EnabledLogs

Detailed Description

Definition at line 1 of file debug.c.

Member Function Documentation

◆ ActionLog()

◆ BaseBuildingLog()

void BaseBuildingLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Definition at line 217 of file debug.c.

References LOG_DEBUG_BASEBUILDING, LOG_DEFAULT, and LogMessage().

◆ BleedingChancesLog()

void BleedingChancesLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

◆ CanvasDrawLine()

void CanvasDrawLine ( float x1,
float y1,
float x2,
float y2,
float width,
int color )
inlinestaticprivate

Definition at line 58 of file debug.c.

References InitCanvas(), and m_CanvasDebug.

Referenced by CanvasDrawPoint().

◆ CanvasDrawPoint()

void CanvasDrawPoint ( float x1,
float y1,
int color )
inlinestaticprivate

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

Definition at line 75 of file debug.c.

References CanvasDrawLine().

◆ CleanupDrawShapes()

void CleanupDrawShapes ( array< Shape > shapes)
inlinestaticprivate

Definition at line 425 of file debug.c.

References RemoveShape(), and Shape.

Referenced by CleanupDebugShapes().

◆ CleanupTextsSS()

void CleanupTextsSS ( array< ref DebugTextScreenSpace > texts)
inlinestaticprivate

Definition at line 433 of file debug.c.

References RemoveTextSS().

◆ CleanupTextsWS()

void CleanupTextsWS ( array< ref DebugTextWorldSpace > texts)
inlinestaticprivate

Definition at line 441 of file debug.c.

References RemoveTextWS().

◆ ClearCanvas()

void ClearCanvas ( )
inlinestaticprivate

Definition at line 52 of file debug.c.

References m_CanvasDebug.

◆ ClearLogs()

void ClearLogs ( )
inlinestaticprivate

◆ ClearScriptLogs()

void ClearScriptLogs ( )
inlinestaticprivate

Definition at line 344 of file debug.c.

References ClearLogs().

◆ DestroyAll()

void DestroyAll ( )
inlinestaticprivate

Definition at line 87 of file debug.c.

References DestroyAllShapes(), DestroyAllTextSS(), and DestroyAllTextWS().

◆ DestroyAllShapes()

void DestroyAllShapes ( )
inlinestaticprivate

Definition at line 94 of file debug.c.

References m_DebugShapes, and Shape.

Referenced by DestroyAll().

◆ DestroyAllTextSS()

void DestroyAllTextSS ( )
inlinestaticprivate

Definition at line 102 of file debug.c.

References m_DebugTextsSS.

Referenced by DestroyAll().

◆ DestroyAllTextWS()

void DestroyAllTextWS ( )
inlinestaticprivate

Definition at line 107 of file debug.c.

References m_DebugTextsWS.

Referenced by DestroyAll().

◆ DrawArrow()

Shape DrawArrow ( vector from,
vector to,
float size = 0.5,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate

◆ DrawBox()

◆ DrawBoxEx()

Shape DrawBoxEx ( vector pos1,
vector pos2,
int color = 0x1fff7f7f,
ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOZWRITE )
inlinestaticprivate

Definition at line 354 of file debug.c.

References m_DebugShapes, and Shape.

Referenced by DrawBox().

◆ DrawCone()

array< Shape > DrawCone ( vector pos,
float lenght,
float halfAngle,
float offsetAngle,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate

Definition at line 406 of file debug.c.

References Math3D::ConePoints(), Math::Cos(), DrawLine(), Math::Sin(), and Vector().

◆ DrawCube()

Shape DrawCube ( vector pos,
float size = 1,
int color = 0x1fff7f7f )
inlinestaticprivate

Definition at line 362 of file debug.c.

References m_DebugShapes, and Shape.

◆ DrawCylinder()

Shape DrawCylinder ( vector pos,
float radius,
float height = 1,
int color = 0x1fff7f7f,
ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE )
inlinestaticprivate

Definition at line 398 of file debug.c.

References m_DebugShapes, and Shape.

Referenced by PluginBase::DrawDebugs().

◆ DrawFrustum()

Shape DrawFrustum ( float horizontalAngle,
float verticalAngle,
float length,
int color = 0x1fff7f7f,
ShapeFlags flags = ShapeFlags.TRANSP|ShapeFlags.WIREFRAME )
inlinestaticprivate

Definition at line 390 of file debug.c.

References m_DebugShapes, and Shape.

◆ DrawLine()

Shape DrawLine ( vector from,
vector to,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate

DrawLine \nFlags:
ShapeFlags.NOZBUFFER
ShapeFlags.NOZUPDATE
ShapeFlags.DOUBLESIDE
ShapeFlags.WIREFRAME
ShapeFlags.TRANSP
ShapeFlags.ONCE
ShapeFlags.NOOUTLINE
ShapeFlags.NOCULL.

Definition at line 461 of file debug.c.

References m_DebugShapes, and Shape.

Referenced by CalculateBreadCrumbs(), CalculateLinePointFade(), DrawCone(), WeaponDebug::DrawLineOfFire(), WeaponDebug::DrawLineOfFireCameraHybrid(), WeaponDebug::DrawLineOfFireMuzzleToHit(), CfgPlayerRestrictedAreaHandler::DrawPolygonLinesDebug(), PluginBase::EditorUpdateRuler(), GatherSurfaces(), and GetMeleeTargetEx().

◆ DrawLines()

Shape DrawLines ( vector[] positions,
int count,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate

Definition at line 474 of file debug.c.

References m_DebugShapes, and Shape.

Referenced by WeaponDebug::OnPostFrameUpdate().

◆ DrawSphere()

◆ DrawTextSS()

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 )
inlinestaticprivate

Definition at line 492 of file debug.c.

References DebugTextScreenSpace::Create(), m_DebugTextsSS, x, and y.

◆ DrawTextWS()

DebugTextWorldSpace DrawTextWS ( string text,
vector position,
float size = 20.0,
int color = 0xFFFFFFFF,
int bgColor = 0x00000000,
DebugTextFlags flags = DebugTextFlags.DEFAULT,
int priority = 1000 )
inlinestaticprivate

Definition at line 501 of file debug.c.

References DebugTextWorldSpace::Create(), and m_DebugTextsWS.

◆ GetBaseConfigClasses()

void GetBaseConfigClasses ( out TStringArray base_classes)
inlinestaticprivate

Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc.

for searching purposes

Parameters
base_classesout TStringArray Array containing some of base config classes

Definition at line 514 of file debug.c.

References CFG_AMMO, CFG_MAGAZINESPATH, CFG_NONAI_VEHICLES, CFG_SOUND_SETS, CFG_SOUND_SHADERS, CFG_SOUND_TABLES, CFG_SURFACES, CFG_VEHICLESPATH, CFG_WEAPONSPATH, and CFG_WORLDS.

Referenced by UIPopupScript::ClearHierarchy(), UIPopupScript::FindInHierarchy(), GetFiltredConfigClasses(), and ScriptConsoleConfigTab::Init().

◆ GetDate()

string GetDate ( )
inlinestaticprivate

Definition at line 673 of file debug.c.

References GetHourMinuteSecond(), and GetYearMonthDay().

Referenced by LogMessage().

◆ GetDebugName()

string GetDebugName ( Managed entity)
inlinestaticprivate

Definition at line 31 of file debug.c.

◆ GetFileName()

string GetFileName ( )
inlinestaticprivate

Definition at line 668 of file debug.c.

References CFG_FILE_SCRIPT_LOG_EXT.

Referenced by ClearLogs(), ScriptConsoleOutputTab::ReloadOutput(), and SaveLog().

◆ GetFiltredConfigClasses()

void GetFiltredConfigClasses ( string search_string,
out TStringArray filtered_classes,
bool only_public = true )
inlinestaticprivate

Returns config classes containing search_string in name.

Parameters
search_stringstring String to search in class names
filtered_classesout TStringArray Array containing filtered classes based on search_string
only_publicbool Set to true to return only public classes, set to false to return all filtered classes

Definition at line 535 of file debug.c.

References string::Contains(), g_Game, GetBaseConfigClasses(), and string::ToLower().

◆ Init()

void Init ( )
inlinestaticprivate

Definition at line 80 of file debug.c.

References m_DebugShapes, m_DebugTextsSS, and m_DebugTextsWS.

Referenced by CGame::DayZGame().

◆ InitCanvas()

void InitCanvas ( )
inlinestaticprivate

Definition at line 43 of file debug.c.

References g_Game, m_CanvasDebug, and m_DebugLayoutCanvas.

Referenced by CanvasDrawLine().

◆ InventoryHFSMLog()

◆ InventoryMoveLog()

◆ InventoryReservationLog()

◆ Log()

void Log ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Prints debug message with normal prio.

Parameters
msgstring Debug message for print
Returns
void None
Debug.Log("Hello World");
>> [Log]: Hello World;
Definition debug.c:2
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.
Definition debug.c:182
Definition world.c:2

Definition at line 182 of file debug.c.

References LOG_DEBUG, LOG_DEFAULT, and LogMessage().

Referenced by InventoryItem::AddAction(), ApplyModificationsResults(), Managed::BleedingIndicator(), PluginRecipesManagerBase::CallbackGenerateCache(), ChangePPEMaterial(), Car::CheckContactCache(), PlayerSpawnHandler::CreateChildItem(), PPEManagerStatic::CreateManagerStatic(), Car::DamageCrew(), Debug(), RecipeBase::Do(), ScriptConsoleItemsTab::DrawItems(), Car::EOnPostSimulate(), GetDefaultTime(), KeysToUIElements::GetKeyToUIElement(), GetName(), PlayerSpawnPreset::GetRandomCharacterType(), Managed::GetRequester(), Managed::GetRequester(), Managed::GetRequesterID(), Managed::GetRequesterTypename(), WorldData::GetTemperatureComponentValue(), LogTemplates::GetTemplate(), GetValue(), ItemBase::HandleItemFalling(), HandleReciveData(), ManBase::HideHairSelections(), CatchingContextFishingRodAction::InitCatchingItemData(), MissionBase::InvokeOnConnect(), MissionBase::InvokeOnDisconnect(), ItemBase::IsPlayerInVicinity(), IsValid(), PlayerSpawnPreset::IsValid(), PlayerSpawnPresetDiscreteItemSetSlotData::IsValid(), Entity::Log(), MessageReceiverBase::Log(), PluginBase::Log(), BloodTypes::MatchBloodCompatibility(), CatchingContextFishingRodAction::ModifySignalProbability(), Entity::OnAction(), ManBase::OnConnect(), Car::OnContact(), ManBase::OnDisconnect(), MissionBase::OnEvent(), ActionDeployBase::OnFinishProgressServer(), ActionDigInStash::OnFinishProgressServer(), Icon::OnPerformRecipe(), ManBase::OnReconnect(), DayZPlayer::OnSoundEvent(), DayZPlayer::OnStepEvent(), OpenAndSwitchLambda::OnSuccess(), OnUpdate(), PerformRecipe(), MissionBase::PlayerControlDisable(), PlayItemSoundClient(), PlayerAgentPool::PrintAgents(), PrintOut(), PluginRecipesManagerBase::PrintResultMasks(), ItemBase::PrintSlots(), PlayerSpawnHandler::ProcessCargoEquipment(), PlayerSpawnHandler::ProcessSlotsEquipment(), CatchingContextFishingRodAction::RandomizeSignalDuration(), CatchingContextFishingRodAction::RandomizeSignalStartTime(), InventoryLocation::ReadFromContext(), Entity::RefreshTemperatureAccess(), GameplayEffectsData::RegisterData(), KeysToUIElements::RegisterKeyToUIElement(), LogTemplates::RegisterLogTamplate(), Managed::RegisterRequester(), PluginBase::Repair(), ManBase::Save(), ManBase::SetLocalProjectionPosition(), CAContinuousRepeatFishing::SetNewSignalData(), PPERequesterBase::SetRequesterUpdating(), SetRequestUpdating(), Entity::SetTemperatureEx(), SetupAnimation(), PlayerSpawnHandler::SpawnComplexChildrenItems(), PlayerSpawnHandler::SpawnDiscreteSlotItemSet(), SpawnItems(), SpawnItems(), PlayerSpawnHandler::SpawnSimpleChildrenItems(), TickState(), TranslateAndValidateSlot(), PlayerRestrictedAreaInstance::TranslateSafePositions(), Entity::TryDelete(), PlayerRestrictedAreaInstance::ValidatePlayerRestrictedAreaPositions(), and Managed::VerifyRequester().

◆ LogArrayInt()

void LogArrayInt ( array< int > arr = NULL,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Definition at line 310 of file debug.c.

References LOG_DEBUG, LOG_DEFAULT, and LogMessage().

◆ LogArrayString()

void LogArrayString ( array< string > arr = NULL,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Definition at line 322 of file debug.c.

References LOG_DEBUG, LOG_DEFAULT, and LogMessage().

Referenced by PrintOut().

◆ LogError()

void LogError ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Prints debug message as error message.

Parameters
msgstring Debug message for error print
Returns
void None
Debug.LogError("Hello World, this is error log");
>> [Error]: Hello World, this is error log
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.
Definition debug.c:305
void Error(string err)
Messagebox with error message.
Definition endebug.c:90

Definition at line 305 of file debug.c.

References LOG_DEFAULT, LOG_ERROR, and LogMessage().

Referenced by FireworksLauncherClientEvent::FireworksLauncherClientEvent(), BoatScript::AddAction(), BuildingBase::AddAction(), Car::AddAction(), EntityAI::AddAction(), InventoryItem::AddAction(), ActionCollectBloodTargetLambda::CopyOldPropertiesToNew(), ReplaceItemWithNewLambda::CopyOldPropertiesToNew(), TanLeatherLambda::CopyOldPropertiesToNew(), DeveloperFreeCamera::DisableFreeCamera(), DeveloperFreeCamera::EnableFreeCamera(), Entity::GetDefaultHitComponent(), Entity::GetDefaultHitPosition(), Entity::GetDefaultHitPositionComponent(), Entity::GetHitComponentForAI(), FireworksLauncherClientEvent::GetShotPos(), Entity::GetSuitableFinisherHitComponents(), Entity::LogError(), LogError(), Component::LogErrorBadCompType(), Component::LogThisError(), Component::LogWarningAlredyExist(), Normalize(), OnStoreLoad(), SymptomManager::OnSymptomExit(), OpenItem::OpenAndSwitch(), PlaySound(), and Tick().

◆ LogInfo()

void LogInfo ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Prints debug message with normal prio.

Parameters
msgstring Debug message for print
Returns
void None
Debug.Log("Hello World");
>> [Log]: Hello World;

Definition at line 275 of file debug.c.

References LOG_DEFAULT, LOG_INFO, and LogMessage().

Referenced by LogInfo().

◆ LogMessage()

◆ LogWarning()

void LogWarning ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Prints debug message as warning message.

Parameters
msgstring Debug message for warning print
Returns
void None
Debug.LogWarning("Hello World, this is warning log");
>> [Warning]: Hello World, this is warning log
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.
Definition debug.c:290

Definition at line 290 of file debug.c.

References LOG_DEFAULT, LOG_WARNING, and LogMessage().

Referenced by Entity::CanDisplayAttachmentSlot(), Component::LogThisWarning(), Entity::LogWarning(), LogWarning(), and DeveloperTeleport::TeleportAtCursor().

◆ MeleeLog()

void MeleeLog ( Entity entity,
string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT )
inlinestaticprivate

Definition at line 249 of file debug.c.

References GetDebugName(), LOG_DEBUG_MELEE, LOG_DEFAULT, and LogMessage().

◆ ParticleLog()

void ParticleLog ( string message = LOG_DEFAULT,
Managed caller = null,
string function = "",
Managed entity = null )
inlinestaticprivate

◆ QuickbarLog()

void QuickbarLog ( string message = LOG_DEFAULT,
string plugin = LOG_DEFAULT,
string author = LOG_DEFAULT,
string label = LOG_DEFAULT,
string entity = LOG_DEFAULT )
inlinestaticprivate

Definition at line 212 of file debug.c.

References LOG_DEBUG_QUICKBAR, LOG_DEFAULT, and LogMessage().

◆ ReceivedLogMessageFromServer()

void ReceivedLogMessageFromServer ( string message)
inlinestaticprivate

Definition at line 334 of file debug.c.

References LogManager::IsLogsEnable(), and SaveLog().

Referenced by PluginBase::OnRPCServerLogRecieved().

◆ RemoveShape()

◆ RemoveTextSS()

void RemoveTextSS ( out DebugTextScreenSpace text)
inlinestaticprivate

Definition at line 132 of file debug.c.

References m_DebugTextsSS.

Referenced by CleanupTextsSS().

◆ RemoveTextWS()

void RemoveTextWS ( out DebugTextWorldSpace text)
inlinestaticprivate

Definition at line 152 of file debug.c.

References m_DebugTextsWS.

Referenced by CleanupTextsWS().

◆ SaveLog()

void SaveLog ( string log_message)
inlinestaticprivate

Only beneficial for diag and developers, removed on retail

Avoid writing to this file as it will grow indefinitely

Active when '-logToRpt=1' is set

Active when '-logToScript=1' is set

Definition at line 618 of file debug.c.

References CALL_ID_SCR_CNSL_ADD_PRINT, Dispatcher::CallMethod(), CloseFile(), FPrintln(), GetDispatcher(), GetFileName(), string::Length(), OpenFile(), CachedObjectsParams::PARAM1_STRING, Print(), and PrintToRPT().

Referenced by LogMessage(), and ReceivedLogMessageFromServer().

◆ SymptomLog()

◆ TFLog()

◆ TriggerLog()

◆ WeatherLog()

◆ WeightLog()

void WeightLog ( string message = LOG_DEFAULT,
Managed caller = null,
string function = "",
Managed entity = null )
inlinestaticprivate

Definition at line 242 of file debug.c.

References LOG_DEFAULT.

Field Documentation

◆ LOG_DEBUG

const string LOG_DEBUG = "Debug"
staticprivate

Definition at line 3 of file debug.c.

Referenced by Log(), LogArrayInt(), and LogArrayString().

◆ LOG_DEBUG_ACTION

const string LOG_DEBUG_ACTION = "Action"
staticprivate

Definition at line 4 of file debug.c.

Referenced by ActionLog().

◆ LOG_DEBUG_BASEBUILDING

const string LOG_DEBUG_BASEBUILDING = "Base Building"
staticprivate

Definition at line 10 of file debug.c.

Referenced by BaseBuildingLog().

◆ LOG_DEBUG_BLEEDING_CHANCES

const string LOG_DEBUG_BLEEDING_CHANCES = "Bleeding"
staticprivate

Definition at line 11 of file debug.c.

Referenced by BleedingChancesLog().

◆ LOG_DEBUG_INV_HFSM

const string LOG_DEBUG_INV_HFSM = "HFSM"
staticprivate

Definition at line 8 of file debug.c.

Referenced by InventoryHFSMLog().

◆ LOG_DEBUG_INV_MOVE

const string LOG_DEBUG_INV_MOVE = "Inv Move"
staticprivate

Definition at line 6 of file debug.c.

Referenced by InventoryMoveLog().

◆ LOG_DEBUG_INV_RESERVATION

const string LOG_DEBUG_INV_RESERVATION = "Inv Rrsv"
staticprivate

Definition at line 7 of file debug.c.

Referenced by InventoryReservationLog().

◆ LOG_DEBUG_MELEE

const string LOG_DEBUG_MELEE = "Melee"
staticprivate

Definition at line 16 of file debug.c.

Referenced by MeleeLog().

◆ LOG_DEBUG_PARTICLE

const string LOG_DEBUG_PARTICLE = "Particle"
staticprivate

Definition at line 13 of file debug.c.

Referenced by ParticleLog().

◆ LOG_DEBUG_QUICKBAR

const string LOG_DEBUG_QUICKBAR = "Quickbar"
staticprivate

Definition at line 9 of file debug.c.

Referenced by QuickbarLog().

◆ LOG_DEBUG_SYMPTOM

const string LOG_DEBUG_SYMPTOM = "Symptom"
staticprivate

Definition at line 5 of file debug.c.

Referenced by SymptomLog().

◆ LOG_DEBUG_TF

const string LOG_DEBUG_TF = "TestFramework"
staticprivate

Definition at line 14 of file debug.c.

Referenced by TFLog().

◆ LOG_DEBUG_TRIGGER

const string LOG_DEBUG_TRIGGER = "Trigger"
staticprivate

Definition at line 12 of file debug.c.

Referenced by TriggerLog().

◆ LOG_DEBUG_WEATHER

const string LOG_DEBUG_WEATHER = "Weather"
staticprivate

Definition at line 17 of file debug.c.

Referenced by WeatherLog().

◆ LOG_DEBUG_WEIGHT

const string LOG_DEBUG_WEIGHT = "Weight"
staticprivate

Definition at line 15 of file debug.c.

◆ LOG_DEFAULT

◆ LOG_ERROR

const string LOG_ERROR = "Error"
staticprivate

Definition at line 21 of file debug.c.

Referenced by LogError().

◆ LOG_INFO

const string LOG_INFO = "Info"
staticprivate

Definition at line 19 of file debug.c.

Referenced by LogInfo().

◆ LOG_WARNING

const string LOG_WARNING = "Warning"
staticprivate

Definition at line 20 of file debug.c.

Referenced by LogWarning().

◆ m_CanvasDebug

CanvasWidget m_CanvasDebug
staticprivate

Definition at line 29 of file debug.c.

Referenced by CanvasDrawLine(), ClearCanvas(), and InitCanvas().

◆ m_DebugLayoutCanvas

Widget m_DebugLayoutCanvas
staticprivate

Definition at line 28 of file debug.c.

Referenced by InitCanvas().

◆ m_DebugShapes

ref array<Shape> m_DebugShapes
staticprivate

◆ m_DebugTextsSS

ref array<ref DebugTextScreenSpace> m_DebugTextsSS
staticprivate

Definition at line 25 of file debug.c.

Referenced by DestroyAllTextSS(), DrawTextSS(), Init(), and RemoveTextSS().

◆ m_DebugTextsWS

ref array<ref DebugTextWorldSpace> m_DebugTextsWS
staticprivate

Definition at line 26 of file debug.c.

Referenced by DestroyAllTextWS(), DrawTextWS(), Init(), and RemoveTextWS().

◆ m_EnabledLogs

bool m_EnabledLogs
staticprivate

Definition at line 578 of file debug.c.


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/3_game/tools/debug.c