write_setup
Create a car setup file for Assetto Corsa by providing a JSON of section values. Optionally use a base setup; values are clamped to legal ranges when available.
Instructions
Write a new setup file the user can load from the in-game setup menu.
values_json: JSON object of {SECTION: number}, e.g. {"PRESSURE_LF": 25, "PRESSURE_RF": 25, "ARB_FRONT": 4} base_setup: optional existing setup name to start from; unspecified sections are carried over unchanged.
If a ranges file exists for the car, values are clamped and snapped to the car's legal min/max/step; otherwise they're written as-is with a warning (AC silently ignores out-of-range values).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| car | Yes | ||
| name | Yes | ||
| track | Yes | ||
| base_setup | No | ||
| values_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |