lint_tables
Validate Diablo II Legacy mod data tables to find broken references, structural errors, duplicate keys, invalid values, and limit violations, with severities and line-level details.
Instructions
Find what is broken in a set of Diablo II data tables (Legacy 1.09 to 1.14d; not Resurrected). mod: a folder
on this machine holding the .txt files (a mod's data/global/excel, or a folder containing it) or a table version
imported into the data folder. like: the vanilla version the mod is built on, e.g. '1.13c'; give it whenever you
can, because it picks the rule set (1.09 or 1.10+), stands in for tables the mod doesn't ship so references into
them can be checked, and turns on the column and 'Expansion' row comparisons. file limits the report to one
table (references are still resolved against the whole set). limit is the most findings listed (default 150,
up to 2000), shared across files so one table's flood can't hide the rest; repeats of one finding are counted,
not listed, and when many references into one table fail they are summed up in a line naming that table.
Counts per check and per file are always complete. The result is capped at about 40 KB.
Each finding gives severity, check, file, line number (the header is line 1), the row's name, the column, the
bad value and why. Checks: reference (a cell names a row that doesn't exist: treasure classes, monsters,
missiles, states, skills and skill descriptions, sounds, overlays, item codes, item types, properties, stats,
sets...), treasure-class (picks that name nothing or a class defined further down, picks after an empty slot,
rows after a nameless row), cube (inputs, outputs and their modifiers), duplicate-key, structure (rows with the
wrong number of cells, repeated columns), number (text in a number column, values too big for it), length,
limit (row counts and value ranges the game enforces), columns (against like: missing, unknown or misspelt
columns), expansion (missing 'Expansion' marker rows) and line-endings. Errors are values the game can't use as
written; warnings are probably unintended; notes are for information.
It reads the tables the way the 1.10 game code loads them; it doesn't run the game, check formulas, string keys
(.tbl), animation or map files, or judge balance. Oddities in Blizzard's own tables are not reported. No
findings means none of these checks failed, not that the mod works.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mod": "<mod>"
},
"name": "lint_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mod | Yes | ||
| file | No | ||
| like | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |