mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-06-05 14:44:40 -04:00
Duplicate an existing zone to a new slug: wowee_editor --copy-zone custom_zones/Original "My New Zone" Workflow this enables: scaffold one base zone, populate it with creatures/objects/quests, then copy-zone N times to create variants without re-scaffolding each. Designers can template a 'forest base' zone and stamp it into Dark Forest, Frozen Forest, etc. What it does: - Recursive copy preserves any subdirs (e.g. data/ for DBC sidecars) - Reads source slug from zone.json (not the dir name) to know what prefix to rewrite — handles users who renamed dirs without touching the manifest - Renames slug-prefixed files (Original_28_30.whm -> NewSlug_28_30.whm, matches both _-suffixed and .-suffixed forms) - Saves a fresh zone.json via ZoneManifest::save which rebuilds the files-block from mapName, so the manifest references the renamed files correctly Verified end-to-end: scaffolded Original, added creature + quest, copied to 'My New Zone'. Result: 2 files renamed, zone.json mapName/displayName/files all updated, creatures.json + quests.json copied verbatim.