Page MenuHomeFeedback Tracker

Script/Crash log spam due to wrong function call
Assigned, UrgentPublic

Description

Scripts\3_Game\dayz\Systems\Inventory\Inventory.c
Line: 475

Is using the wrong debug print function that is now obsolete and will cause errors when called:

This is the only instance where LogError is used as a global function call to the older obsolete method.
The correct call should be Debug.LogError(...)

------------------------------------
TOMMY, 19.12 2023 12:13:26
NULL pointer to instance when trying to access variable 'param2' (Parent instance is null)
Function: 'LogError'
Stack trace:
scripts/3_Game/tools\logtemplates.c:133
scripts/3_Game/systems\inventory\inventory.c:475

Runtime mode
CLI params: name skid skid bang bang mod C:\Program Files (x86)\Steam\steamapps\common\DayZ\!dzsal\@Better-Snap-Sounds;C:\Program Files (x86)\Steam\steamapps\common\DayZ\!dzsal\@Inventory Move Sounds;C:\Program Files (x86)\Steam\steamapps\common\DayZ\!dzsal\@[VPP]DeathMatch;C:\Program Files (x86)\Steam\steamapps\common\DayZ\!dzsal\@BuilderItems;C:\Program Files (x86)\Steam\steamapps\common\DayZ\!dzsal\@CF connect 51.222.191.212 port 2702

The class class LogTemplates is marked OBSOLETE could you please:
a) remove it along with its global scoped functions in scripts\3_Game\dayz\tools\LogTemplates.c
b) redirect those global scope functions to make use of class Debug functionality

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Geez changed the task status from New to Assigned.Jan 2 2024, 12:28 PM