texture_export
Writes a texture (.dds) as a PNG of its largest picture into a folder of yours, for an image editor: red, green, blue and alpha as the game draws them, and a normal map with x, y, z in red, green and blue as an editor shows one. Answers the PNG’s path, the original’s format and size, and the game’s smaller copies for its farther models. texture_import puts it back.
Arguments
| Name | Type | Required | What |
|---|---|---|---|
name | string | yes | The texture, “cn_bdy_ogra_0d.dds” (the extension may be left off). A material (.mao, resource shows one as text) names its textures; resources with type dds finds more. |
source | string | Which copy, by its source (“core”, “addin:…”). Default: the copy the game takes. | |
archive | string | Which copy, by its archive’s path. | |
to | string | yes | The folder to write into, a full path; made if missing. Never inside the game’s folder. |
normal | boolean | Whether it is a normal map, x, y, z in the PNG’s red, green and blue. Default: its name ends in n, as the game’s do (cn_bdy_ogra_0n). |
Call it as texture_export over MCP, or from a shell as ghilana.exe --call texture_export '<arguments as JSON>'.