mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-07 17:43:51 +00:00
--copy-zone duplicates and renames; --rename-zone does it in place without doubling disk usage. Useful when fixing typos or rebranding a zone without touching its data: wowee_editor --rename-zone custom_zones/Old 'Brand New Name' What changes: - zone.json mapName: Old -> Brand_New_Name - zone.json displayName: 'Old' -> 'Brand New Name' - zone.json files block (adt_NN_NN, wdt): regenerated from new slug - slug-prefixed files: Old_28_30.whm -> Brand_New_Name_28_30.whm - the directory itself: custom_zones/Old/ -> custom_zones/Brand_New_Name/ Order of operations matters for crash safety: slug-prefixed files get renamed first (atomic per-file via fs::rename), then the manifest is rewritten in the still-named source dir, then the directory is moved last. If the dir-move fails we surface the manifest-already-updated state so the user can recover. Refuses to run if target dir already exists (avoids silent merge), or if both slug AND displayName already match the target (no-op). Verified end-to-end: scaffolded 'Old' with 1 creature, renamed to 'Brand New Name'. Result: dir renamed, .whm/.wot files renamed, zone.json fully updated, creatures.json preserved with 1 entry. |
||
|---|---|---|
| .. | ||
| 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 | ||