compile_map
Runs ericw-tools compilers (qbsp, vis, light) on a .map file, returns compiler output, and detects leaks with the escape coordinate.
Instructions
Compile a .map with ericw-tools and report what the compiler said. Runs qbsp by default; pass stages for a full build. Detects leaks, which the compiler reports as a warning and still exits successfully, and returns the coordinate the leak escaped from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stages | No | Which tools to run, in order. Default ["qbsp"]. vis is slow. | |
| map_path | Yes | Absolute path to the .map file | |
| vis_args | No | Extra vis arguments | |
| keep_logs | No | Leave the .log files the tools write beside the map. Off by default. | |
| qbsp_args | No | Extra qbsp arguments, e.g. ["-nopercent"] | |
| tools_dir | No | Directory holding qbsp/vis/light. Defaults to $ERICW_TOOLS_DIR, then PATH. | |
| light_args | No | Extra light arguments, e.g. ["-extra4"] | |
| timeout_seconds | No | Per-tool timeout. Default 600. |