resource
Reads one resource and answers what it holds: a GFF4 file (conversation, plot, model, …) or a GFF3 template (.utc, .uti, .utp) as JSON with its fields named, a data table as columns and rows, a talk table’s strings, a texture’s size and format, a text file (.mao, .xml, .nss) as text, anything else as its first bytes. Of several copies it reads the one the game takes, and says so with the others; source and archive name another. A copy in an enciphered add-in archive cannot be read here; the answer says so.
Read-only: it writes nothing.
Arguments
| Name | Type | Required | What |
|---|---|---|---|
name | string | yes | The resource, with its extension: “ogre_default.utc”. |
depth | integer (≥ 1, ≤ 64) | How deep to follow nested structs and lists. Default 12. | |
items | integer (≥ 1) | The most elements of any one list (and rows of a table). Default 200. | |
chars | integer (≥ 100) | The most bytes of a text file. Default 20000. | |
source | string | Which copy, by its source as answers name it (“core”, “addin:dao_prc_cp_1”, “plugin:mymod”). Default: the copy the game takes. | |
archive | string | Which copy, by its archive’s path (or a loose file’s) as answers give it. |
Call it as resource over MCP, or from a shell as ghilana.exe --call resource '<arguments as JSON>'.