Build the mod
build_modCompile mod source into a .tmod file with a configurable timeout. Detects when the game is open and reports the fix instead of a false compile error.
Instructions
Compile the configured mod source into a .tmod.
Args: timeout: Seconds to wait for the compile. A large mod on a slow machine can outlast the default, and a build that runs out of time says so rather than reporting a compile failure with no errors in it.
tModLoader REFUSES to build while the game is open, and says so with an error that otherwise reads like a compile failure. That case is reported as itself, with the fix, rather than as a broken build — which is the difference between closing the game and hunting a syntax error that is not there.
Success is read from the output, not the exit code, which is not reliable here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| errors | Yes | ||
| summary | Yes | ||
| warnings | Yes | ||
| game_was_open | Yes |