Added better game crash diagnostics.

This commit is contained in:
2026-09-18 21:36:12 +02:00
parent 9ef0eff2f5
commit 6a508476b9
2 changed files with 97 additions and 5 deletions

View File

@@ -866,7 +866,32 @@ def game_log_telemetry_summary(report: dict[str, object]) -> dict[str, object]:
"missing_image_reference_count",
"missing_pack_image_reference_count",
)
return {key: report[key] for key in keys if key in report}
summary = {key: report[key] for key in keys if key in report}
asset_references = report.get("asset_references")
if isinstance(asset_references, dict):
asset_summary = {
key: asset_references[key]
for key in (
"total_events",
"unique_valid_references",
"invalid_reference_events",
"catalog_available",
"managed_integrity_failed",
)
if key in asset_references
}
for source_key, output_key in (
("managed_present_paths", "managed_present_count"),
("managed_missing_paths", "managed_missing_count"),
("publisher_unmanaged_paths", "publisher_unmanaged_count"),
("unclassified_paths", "unclassified_count"),
):
paths = asset_references.get(source_key)
if isinstance(paths, (list, tuple)):
asset_summary[output_key] = len(paths)
if asset_summary:
summary["asset_reference_summary"] = asset_summary
return summary
def crash_dump_telemetry_summary(report: dict[str, object]) -> dict[str, object]: