save_hull
Saves an approved hull as a Stormworks vehicle .xml with a Load-menu thumbnail, storing its spec as a design and refusing to overwrite files this tool did not write.
Instructions
Write a hull into the Stormworks vehicles folder as .xml with its Load-menu thumbnail, and store the spec as a design of the same name. Use it once the preview is approved, e.g. save_hull(name="Iowa", design="Iowa"); drafts edited part by part (imports, land vehicles) use save_vehicle. Refuses a name already used by a vehicle this tool did not write, and replaces its own earlier save only with overwrite=true. Returns the file path, part count and summary; the player loads it from a workbench's Load menu.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the file in the vehicles folder and the game's Load menu: letters, digits, spaces, _ - ( ), at most 64 characters. | |
| spec | No | Hull spec, partial or full (fields: hull_design_guide topic=spec); merged over preset or design. Lengths in metres. | |
| patch | No | JSON-Patch ops applied last, e.g. [{"op": "replace", "path": "/superstructure/bridge/height", "value": 2.5}]; list items can be named instead of indexed. | |
| design | No | Stored design to start from instead of a preset; names from list_designs. | |
| preset | No | Built-in hull preset to start from, e.g. 'runabout'; names from list_hull_presets. | |
| overwrite | No | Replace an earlier vehicle of this name written by this tool. Files this tool did not write are never replaced. | |
| spec_path | No | Path to a .json file holding a spec or a stored design, read before spec and patch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |