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

Unsupported language English in stringtable
➥ Context: ww2\missions_f\campaigns\forthefatherland_f\stringtable.xml

  1. What does this actually mean - a string is lacking an English definition?
  2. Not possible to give the line context?

Error: Item of aggregateReflectors is not an array
Bad conversion: scalar
Bad DXT2-5 mipmap size
Fresnel k must be >0, given n=2.51,k=0
Speaker Male01_F not found in CfgVoiceTypes
Unknown task state:
Warning: Pixel shader Super not supported for roads.

Lacking code context

Inventory item with given name: [WEAPONCLASS] not found
Damaged shot 150281: handgrenade_throw.p3d
Error in ReloadMagazine - unable to locate target weapon XXX muzzle YYY
Error: Error during SetFace - class CfgFaces.Man_A3.Face16 not found
Link to 88e342f1 (Obj-104,71:753) not released
Moved object WWW:PATH\MODEL.p3d (class CarEPE) not in landscape 3205.98,790.14 (0,0).
No more slot to add connection at 000005 (33.2,583.1)
Object DDD: MODEL.p3d: WWW (Obj-109,114:229) is still tracked
Object::Intersect bme 0.00,0.00,0.00 normal 0.00,0.01,-1.00
Overflow
Unknown attribute itemsCmd
Warning: Road selection WWW has wrong name format
Proxy not supported when no type exists - DDD: MODEL.p3d

These warnings are kinda meaningless/need better wording and often also lack code context

Backpack with given name: [] not found

This one appears like empty string has been passed to some sqf command.