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

Co-Simulation Signal Editor

Editor tool for configuring co-simulation signal coupling between BeamNG vehicles and external 3rd-party simulators via UDP. Also provides vehicle signal logging (VSL) capabilities for kinematics, dri

Editor tool for configuring co-simulation signal coupling between BeamNG vehicles and external 3rd-party simulators via UDP. Also provides vehicle signal logging (VSL) capabilities for kinematics, driver inputs, wheel data, electrics, powertrain, and sensor data.


Public Functions

FunctionDescription
M.onEditorGui()Main per-frame UI rendering
M.onEditorInitialized()Registers edit mode and tool window

Key Features

  • Vehicle Signal Browser - View available signals from selected vehicle
  • UDP Configuration - Set send/receive IP addresses and ports
  • Signal Categories - Kinematics, driver inputs, wheels, electrics, powertrain, sensors
  • Pose Tracking - Optional vehicle pose (position/rotation) logging
  • Computation Timing - Configure expected 3rd-party computation and ping times
  • VSL Logging - Vehicle Signal Logger for recording vehicle data
  • Co-Simulation - Real-time signal exchange with external simulators

Signal Categories

CategoryPointerDescription
KinematicsisKinematicsVehicle position, velocity, acceleration
DriverisDriverSteering, throttle, brake inputs
WheelsisWheelsPer-wheel data (speed, slip, etc.)
ElectricsisElectricsElectrical system values
PowertrainisPowertrainEngine, transmission data
SensorsisSensorsAttached sensor readings
PoseisPoseFull vehicle transform

UDP Configuration

FieldDefaultDescription
Send IP127.0.0.1Target IP for outgoing data
Receive IP127.0.0.1IP for incoming data
Send Port64890Outgoing UDP port
Receive Port64891Incoming UDP port

Internal Communication

Uses lpack for encoding/decoding data between GE Lua and vehicle Lua (vlua):

local function updateCollectedVehicleData(collectedData)
  cData = lpack.decode(collectedData)
  isVluaDataReturned = true
end

Functions

updateCollectedVehicleData(collectedData)

Callback from vlua when vehicle signal data has been collected. Decodes the lpack-encoded data.

  • collectedData (string) - lpack-encoded vehicle data from vlua

onEditorInitialized()

Registers the co-simulation edit mode and tool windows (requires tech_license).

onEditorGui()

Main per-frame UI rendering for the signal editor and vehicle signals window.

onVehicleReplaced(vid)

Clears the signals list when a vehicle is replaced.

  • vid (number) - Vehicle ID

onVehicleSpawned(vid)

Resets execution state when a vehicle spawns (e.g. on CTRL+R reset).

  • vid (number) - Vehicle ID

Additional Exports

  • M.onVehicleReplaced
  • M.onVehicleSpawned
  • M.updateCollectedVehicleData

See Also

  • globals - Vehicle access and communication patterns

CEF Helper

Minimal editor extension that manages CEF (Chromium Embedded Framework) UI visibility when entering/exiting editor mode. Currently disabled for release due to track editor bugs.

Crawl Data Editor

Editor tool for creating and managing crawl gameplay data - trails, paths, boundaries, and starting positions used by the crawl game mode. Provides tabbed editing interface with separate edit modes fo

On this page

Public FunctionsKey FeaturesSignal CategoriesUDP ConfigurationInternal CommunicationFunctionsupdateCollectedVehicleData(collectedData)onEditorInitialized()onEditorGui()onVehicleReplaced(vid)onVehicleSpawned(vid)Additional ExportsSee Also