Replace a file in a WC3 map
wc3_replace_fileReplace or add internal files in Warcraft 3 maps by specifying source, internal path, and output. Used for swapping models, textures, or imports.
Instructions
Replace (or add) an internal file from a file on disk, then save. Useful for swapping models/textures/imports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the source .w3x/.w3m map file | |
| internalName | Yes | Internal archive path to write, e.g. "war3map.j" | |
| srcPath | Yes | Path to the file on disk whose bytes will be written | |
| outPath | No | Output map path. Defaults to "<map>.edited.w3x". |