MariesWiki

MariesLib Wiki ยท Mod developers

Diagnostics & Tracing

Classification diagnostics, tracing, and maintenance tools.

MarieLib includes extensive diagnostic tooling for investigating classification decisions, datapack issues, and runtime performance.


๐ŸŽ Held Item Inspector

/<modId> debug held

Runs the complete classification pipeline against the currently held source item.

Output file:

config/<modId>/debug/trace_dump.txt

Shows:

  • Every pipeline stage (TraceStepId) and its status
  • Value tag matches and runtime resolver scores
  • Tag-vs-runtime blend precedence
  • Confidence calculations
  • Final value assignment and dominant key

This is the primary tool for determining why a source was classified the way it was.


๐Ÿ“ˆ Cache Statistics

/<modId> debug cache

Displays runtime resolver cache statistics:

Metric Description
Hits Cache hits
Misses Cache misses
Hit ratio Percentage of cached resolutions
Cache size Current entries / max (2048)
Avg resolve time Average resolution time in ms
Slowest item Item with longest resolution
Recipe timeouts Recipe lookup timeouts

Useful for performance investigations on large modpacks.


๐Ÿงฌ Raw TrackingData

/<modId> debug <player>

Dumps raw TrackingData JSON for a player โ€” all value levels, total, and active profile.


๐Ÿ“‹ Datapack Diagnostics

/<modId> diagnostics

Runs a full datapack validation pass. See Validation Reports.


๐Ÿ”Ž Unassigned Sources

/<modId> get_unassigned

Outputs sources that could not be confidently classified:

config/<modId>/unassigned_sources.txt

Grouped by namespace for easy review.


๐Ÿ“ Schema Templates

/<modId> schema <type>

Prints a JSON schema template for a datapack format. Supported types:

values
source_classifications
effects
synergies
source_synergies
milestones
tracking_profiles
compat

๐Ÿ› ๏ธ Maintenance Commands

Command Purpose
/<modId> reload Reload all MarieLib data
/<modId> invalidatecache Clear runtime resolver cache and re-run scanner
/<modId> repair_generated_datapack Repair auto-generated value tag files

๐Ÿ“š Related Pages


MarieLib ยท Shared framework for Marie mods ยท Documentation for 1.0.x

Modrinth ยท GitHub ยท Nourished Wiki ยท Report an Issue

โ† MariesLib Wiki home