api_dump_script
Dump a War Selection Lua API tree to log.txt as WSDUMP lines for read-only inspection, then import the dump to explore modding APIs.
Instructions
Lua script for the in-game developer console / a dev-mode mod that dumps the root API tree into
gen/log.txt as WSDUMP lines (read-only: indexes fields under pcall, never calls f_* functions).
root: start path ('root', 'root.unitType[0]', 'root.session.visual'); space: 'gameplay' (gameplay mod
root) or 'visual' (visual mod root). seeds=true embeds known names from the active index so removed
names are detected even if the engine does not allow pairs(). compact=true returns one line for the
console. Arrays are sampled (array_sample elements) and written as []. Then call import_api_dump.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| root | No | root | |
| depth | No | ||
| seeds | No | ||
| space | No | gameplay | |
| autorun | No | ||
| compact | No | ||
| to_table | No | ||
| max_nodes | No | ||
| array_sample | No |