Page MenuHomeFeedback Tracker

[DEVEVELOPMENT] Improve rpt logging messages lacking context
Assigned, NormalPublic

Description

Certain warnings/errors logged to rpt dont give context and thus are hardly helpful to determine the source of the issue. Please add relevant context to these:

Cannot evaluate '' - no file
Unknown attribute t
Bad conversion: scalar
String  not found
Unsupported language English in stringtable

List to be expanded over time

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Engine

Event Timeline

h- added a subscriber: h-.Aug 2 2020, 9:22 AM
dedmen claimed this task.Oct 15 2020, 10:30 AM
dedmen changed the task status from New to Assigned.
dedmen set Ref Ticket to AIII-53419.
12:58:49 \/Context: a3\some_pbo_name\stringtable.csv <- EndContext
12:59:03 Unsupported language english in stringtable
13:22:24 \/Context: bla\blob\kp_liberation.blip\stringtable.csv <- EndContext
13:22:24 Item STR_COMMANDER listed twice

not sure if I want line of code, probably too much effort.

for most of these errors I'd also need repro to see where they really happen, to be able to add context

Cannot evaluate '' - no file
String not found
Unsupported language English in stringtable

these happen on game start or mission loading. the latter two maybe also during missions if a localize happens i suppose

Cannot evaluate '' - no file

this should be config context

String not found
Unsupported language English in stringtable

these from stringtable parsing

Unknown attribute t

this is from faulty structured text - sth along these lines:

ctrl ctrlSetStructuredText parseText format ["<t size='%1'>t size='1' align='center' valign='middle'>%2%3 </t>", _linesTotal, "------ Centered Text ------", _trailingSpace];

Bad conversion: scalar

this can be at game startup or from scripts

overall all these would need context what file and line they are from - this would help a good deal already

these from stringtable parsing

That error is not at parsing, its at calling "localize" and trying to localize a value, probably caused by a script.
And besides providing full script callstack context... which I could I guess. not much you can do.

hint parseText "<t xxx='%1'>t size='1' align='center' valign='middle'>%2%3 </t>";

Before:

Unknown attribute xxx

After:

15:43:16 \/Context: 	[] L1 ()	
[] L25 (A3\functions_f\Debug\fn_debugConsoleExec.sqf [BIS_fnc_debugConsoleExec])	
[] L25 (A3\functions_f\Debug\fn_debugConsoleExec.sqf [BIS_fnc_debugConsoleExec])	
[] L1 ()
15:43:19 Unknown attribute xxx

Unsupported language English in stringtable
String not found

That error is not at parsing, its at calling "localize" and trying to localize a value, probably caused by a script.

why are these than listed in rpt at game startup at the very top? (not 100% about the "String not found" - this could be after game start and thus some cfgFunctions/menu loaded localize)

what would be very helpful is to get the xml key to determine the source of the issue