bin_table_info
Reports the record count and record size of a Diablo II .bin table header, helping verify compiled data tables before decoding their fields.
Instructions
Say what a compiled Diablo II data table (.bin, the game's compiled form of a .txt table, e.g. data\global\excel\weapons.bin) holds: its record count and record size. path: a .bin file on the local disk, or an MPQ archive with member= the .bin's name inside it. The file starts with a 32-bit record count, then fixed-size records, so the record size is (file size - 4) / count; when that doesn't divide evenly the file isn't a plain record table (the *code.bin files are compiled formulas, for one) and the reply says so. Limits: it reports the header only; read_bin_table decodes the fields of 1.14d files. The record count can be compared with the .txt table's rows (the compiler may skip rows such as 'Expansion' separators).
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": {
"path": "<path>"
},
"name": "bin_table_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| member | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |