Recce Settings
Persists recce mode settings per-level: last loaded mission, load state, and corner call style. Stored as JSON at the rally settings root.
Persists recce mode settings per-level: last loaded mission, load state, and corner call style. Stored as JSON at the rally settings root.
Constructor
local RecceSettings = require('/lua/ge/extensions/gameplay/rally/recceSettings')
local settings = RecceSettings()Public API
| Function | Signature | Returns | Description |
|---|---|---|---|
C:load | () | boolean | Loads settings from JSON file and corner angles data |
C:save | () | nil | Saves current settings to JSON file |
C:setLastMissionId | (level, id) | nil | Sets and saves last mission ID for a level |
C:getLastMissionId | (level) | string | Gets last mission ID for a level |
C:setLastLoadState | (level, state) | nil | Sets and saves load state for a level |
C:getLastLoadState | (level) | boolean | Gets load state for a level |
C:setCornerCallStyleName | (style_name) | nil | Sets and saves corner call style |
C:getCornerCallStyleName | () | string | Gets corner call style name |
C:getCornerCallStyle | () | table | Gets full corner call style data object |
C:cornerCallStyleNames | () | table | Lists all available style names |
C:defaultCornerCallStyleName | () | string | Returns first available style name |
C:loadCornerAngles | () | nil | Loads corner angles configuration |
M.init | () | nil | init |
Serialization Hooks
| Function | Description |
|---|---|
C:onSerialize | Returns settings table for JSON writing |
C:onDeserialized | Restores settings from loaded JSON data |
How It Works
Storage
- File:
rallySettingsRoot/recce.json - Per-level tracking via
last_mission_ids[level]andlast_load_states[level] - Auto-saves on every setter call
Settings Schema
{
last_mission_ids = { ["west_coast_usa"] = "rally_stage_01" },
last_load_states = { ["west_coast_usa"] = true },
corner_call_style_name = "default"
}Corner Call Styles
Loaded from rallyUtil.loadCornerAnglesFile(). Each style defines angle thresholds for corner severity naming (e.g., "1" through "6", "hairpin").
local settings = RecceSettings()
settings:load()
local styleName = settings:getCornerCallStyleName()
local style = settings:getCornerCallStyle() -- full style object with angles arraySee Also
- Rally Audio Manager - Related reference
- Rally Camera Path Player - Related reference
- Rally Client - Related reference
- Gameplay Systems Guide - Guide
Recce App
Extension that manages the recce (reconnaissance) mode UI and recording workflow. Handles mission loading, vehicle navigation, driveline/voice recording, and communication with the CEF recce app.
Rally Settings Manager
Loads and provides access to mission-level rally settings (notebook filename, selected codriver). Wraps the `MissionSettings` class for convenience.