mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 19:13:52 +00:00
New utility extracts a single entry by id from any registered catalog format without dumping the whole file. Useful when a catalog has hundreds of entries and you only want to inspect one — e.g. "show me WBOS encounter 102" or "what's in WHRT bind 204". Auto-detects format from the file's 4-byte magic, looks up the registered --info-* flag in the format table, spawns that handler as a subprocess with --json, then filters the entries[] array to just the matching id. The primary-key field is auto-discovered: prefers the first *Id field that ISN'T a known foreign-key reference (mapId, areaId, spellId, npcId, factionId, etc. — 25 known external-ref names filtered out). Falls back to first remaining *Id, then first numeric field. Without the foreign-key filter, alphabetical key iteration in nlohmann::json picks the wrong field — for WHRT entries with both areaId and bindId, naive code would identify by areaId and miss obvious lookups. Caught during smoke-test and fixed before commit. Output formats: terminal table (default) or --json. Accepts file path with or without the .wXXX extension. CLI flag count 1111 -> 1112. |
||
|---|---|---|
| .. | ||
| asset_extract | ||
| auth_login_probe | ||
| auth_probe | ||
| blp_convert | ||
| dbc_to_csv | ||
| editor | ||
| asset_pipeline_gui.py | ||
| backup_assets.sh | ||
| diff_classic_turtle_opcodes.py | ||
| gen_opcode_registry.py | ||
| generate_ffx_sdk_vk_permutations.sh | ||
| m2_viewer.py | ||
| opcode_map_utils.py | ||
| validate_opcode_maps.py | ||