RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionseditor

Race / Path Editor

Main editor tool for creating and editing race paths - manages pathnodes, segments, start positions, track layout, time trial metadata, and testing.

Main editor tool for creating and editing race paths - manages pathnodes, segments, start positions, track layout, time trial metadata, and testing.


Overview

A tabbed editor window with sub-modules for pathnodes, segments, start positions, track layout, time trials, and tools. Supports loading/saving .race.json files, AI route preview, race testing, and full undo/redo history.


Public Functions

FunctionSignatureDescription
M.onEditorGui()Renders the main race editor window with menu bar and tabs
M.onEditorInitialized()Registers raceEditMode, window, and loads all sub-module tabs
M.onEditorRegisterPreferences(prefsRegistry)Registers raceEditor.general preferences
M.onSerialize()Saves current path and file info for session persistence
M.onDeserialized(data)Restores path from serialized data
M.onUpdate(dtReal, dtSim, dtRaw)Runs the race test window if open
M.show()Opens the editor and activates race edit mode
M.loadRace(filename)Loads a .race.json file with undo support
M.saveRace(race, savePath)Saves the current race path to JSON
M.setupRace()Opens the race test window
M.getCurrentPath()Returns the current race path object
M.getCurrentFilename()Returns the full file path of the current race
M.isVisible()Returns whether the editor window is visible
M.allowGizmo()Returns whether gizmo operations are allowed
M.getToolsWindow()Returns the tools sub-window

Sub-Module Tabs

TabModuleDescription
PathnodesraceEditor/pathnodesCreate/edit race checkpoint nodes
SegmentsraceEditor/segmentsDefine connections between pathnodes
Start PositionsraceEditor/startPositionsPlace vehicle spawn/recovery positions
Track LayoutraceEditor/trackLayoutConfigure start/end nodes, laps, classifications
Time TrialsraceEditor/timeTrialsSet name, description, difficulty, prefabs
ToolsraceEditor/toolsBatch operations, decoration placement, debug

Menu Structure

MenuItems
FileLoad, Save, Save As, Clear, Copy from Time Trials, All Races browser
PreferencesDirectional Nodes, Show AI Route, Show Custom Fields, Use Simple Drag
ToolsAdd Missing Recovery Positions, Recalculate AI Route Distance, Organize Names, Recalculate Segments

Preferences

PreferenceTypeDefaultDescription
directionalNodesbooltrueCreated pathnodes have a direction
showAiRouteboolfalsePreview the AI route
showCustomFieldsboolfalseShow custom field values in world
useSimpleDragboolfalseExperimental simple drag mode

Notes

  • Issues panel in the menu bar shows validation problems (missing nodes, invalid segments).
  • Race distance is calculated from the AI detailed path.
  • The testing sub-module provides a standalone race test window with lap timing.
  • Path object uses gameplay/race/path module for serialization.

Functions

changedFromExternal()

Handles changed from external.

Returns: self

onEditorToolWindowHide(windowName)

Callback for editor tool window hide event.

  • windowName (any)

onWindowGotFocus(windowName)

Callback for window got focus event.

  • windowName (any)

Functions

changedFromExternal()

Handles changed from external.

Returns: self

onEditorToolWindowHide(windowName)

Callback for editor tool window hide event.

  • windowName (any)

onWindowGotFocus(windowName)

Callback for window got focus event.

  • windowName (any)

Additional Exports

  • M.changedFromExternal
  • M.onEditorToolWindowHide
  • M.onWindowGotFocus

See Also

  • Editor AI Tests - Related reference
  • Editor AI Visualization - Related reference
  • Editor – Assembly Spline Tool - Related reference
  • World Editor Guide - Guide

Editor Preferences

Main preferences window - manages all editor preference categories with search, import/export, and reset.

Rally Editor

Main editor for rally stage notebooks - manages pacenotes, driveline editing, mission settings, measurements, and testing.

On this page

OverviewPublic FunctionsSub-Module TabsMenu StructurePreferencesNotesFunctionschangedFromExternal()onEditorToolWindowHide(windowName)onWindowGotFocus(windowName)FunctionschangedFromExternal()onEditorToolWindowHide(windowName)onWindowGotFocus(windowName)Additional ExportsSee Also