extract

Writes resources out of the game’s archives into a folder of yours, by name or pattern, for a tool that wants the files themselves. Answers each file written with its path and the copy it came from, and what could not be (an enciphered add-in’s copy). Writes nothing in the game’s folders.

Arguments

Name Type Required What
names array   Resource names, with extensions.
pattern string   A name pattern with * and ?: “abi_*.gda”.
to string yes The folder to write into, a full path; made if missing. Never inside the game’s folder.
all_copies boolean   Write every copy, each into a folder named for its source and then its archive’s path. Default false: the copy the game takes.
most integer (≥ 1)   The most resources a pattern may match. Default 1000.

Call it as extract over MCP, or from a shell as ghilana.exe --call extract '<arguments as JSON>'.