API ReferenceGE Extensionsgameplayrallyrecce
Cuts Recording
Loads recce cut recordings and their associated speech-to-text transcripts from JSONL files. Cuts are waypoint markers where the co-driver made voice recordings during reconnaissance.
Loads recce cut recordings and their associated speech-to-text transcripts from JSONL files. Cuts are waypoint markers where the co-driver made voice recordings during reconnaissance.
Exports
| Function | Signature | Returns | Description |
|---|---|---|---|
M.load | (missionDir) | table[] | Loads cuts with attached transcripts; returns empty array if no file |
How It Works
Load Flow
- Loads transcripts from the transcripts JSONL file (indexed by
cutId) - Loads cuts from the cuts JSONL file
- For each cut, converts
postovec3andquattoquat - Attaches matching transcript data (text with word normalization applied)
- Returns array of cut objects
Cut Object Structure
{
id = 1,
pos = vec3(...), -- world position where cut was recorded
quat = quat(...), -- vehicle orientation at recording
transcript = {
error = nil, -- error from speech-to-text (if any)
text = "left 3", -- normalized transcript text
}
}File Locations
- Cuts file:
rallyUtil.cutsFile(missionDir)- JSONL format - Transcripts file:
rallyUtil.transcriptsFile(missionDir)- JSONL format
Dependencies
rallyUtil- file path helpersjsonlUtils- JSONL line-by-line parsernormalizer- word replacement/normalization for transcripts
local cutsRecording = require('/lua/ge/extensions/gameplay/rally/recce/cutsRecording')
local cuts = cutsRecording.load(missionDir)
-- Returns array of cut objects with pos, quat, and transcriptSee Also
- drivelineRecording - Recorded Driveline Loader - Related reference
- Gameplay Systems Guide - Guide
Notebook Tests
Unit tests for notebook structured data serialization and deserialization. Validates that structured pacenote fields survive round-trip save/load.
Driveline Recording
Loads a recorded driveline file from a recce run and returns a `PointList`. A driveline is a series of timestamped position/orientation points captured during reconnaissance driving.