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

Master Spline Editor

Main editor tool for the Master Spline system - a parametric road/spline editor with multi-layer linking (mesh, assembly, decal, road splines), auto banking, terrain conforming, road design homologati

Main editor tool for the Master Spline system - a parametric road/spline editor with multi-layer linking (mesh, assembly, decal, road splines), auto banking, terrain conforming, road design homologation, auto road generation, and bitmap mask import/export.


Public API

FunctionSignatureDescription
M.setSelectedSplineIdx(idx)Sets the selected spline index (for cross-tool selection)
M.setSelectedNodeIdx(idx)Sets the selected node index (for cross-tool selection)
M.onSerialize()Serializes all master splines for scene save
M.onDeserialized(data)Deserializes master splines from scene data
M.onEditorGui()Main per-frame editor GUI and rendering callback
M.onEditorInitialized()Registers the edit mode and tool window
M.onClientEndMission()Cleans up all master splines when leaving a map

Dependencies Field

M.dependencies = {
  'editor_assemblySpline',
  'editor_decalSpline',
  'editor_meshSpline',
  'editor_roadSpline',
}

Key Features

  • Layer System: Each master spline contains layers, each linkable to mesh/assembly/decal/road splines
  • Auto Banking: Configurable banking strength and falloff per spline
  • Terrain Conforming: Nodes snap to terrain height with terrain normals
  • Homologation: Real-time analysis of slope, corner radius, banking, and width gradient against road design presets
  • Auto Road Generation: A* pathfinding on terrain grid to generate roads between waypoints
  • Bitmap Import/Export: Import splines from PNG masks, export spline masks

Usage Example

-- Activate via editor toolbar: "Master Spline" tool
-- Add a master spline, place nodes, then create linked layers:
--   - Road Spline layer (for decal roads)
--   - Mesh Spline layer (for barriers/fences)
--   - Assembly/Decal Spline layers

-- Cross-tool API:
extensions.editor_masterSpline.setSelectedSplineIdx(2)

Module Dependencies

  • editor/masterSpline/splineMgr - Spline data management
  • editor/masterSpline/layerMgr - Layer operations
  • editor/masterSpline/autoRoadGen - A* road generation
  • editor/masterSpline/jumpTables - Cross-tool dispatch tables
  • editor/masterSpline/homologation - Road design analysis/optimization
  • editor/toolUtilities/* - Rendering, geometry, input, RDP simplification

See Also

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

Map Sensor Editor

Editor tool for placing and configuring map-attached sensors (Camera, LiDAR, Ultrasonic, RADAR). Requires `Research` build flag. Provides full ImGui UI for sensor management, live/edit mode toggling,

Material Editor

Full-featured material editor for inspecting and modifying Torque3D `Material` objects. Supports PBR workflows, texture issue scanning, cubemap editing, material preview, layer management, copy/paste,

On this page

Public APIDependencies FieldKey FeaturesUsage ExampleModule DependenciesSee Also