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
Decal Spline PopulateDecal Spline 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 ExtensionseditordecalSpline

Decal Spline Manager

Core data management module for decal splines. Handles CRUD operations, deep copy, serialization, undo/redo, profile copy/paste, spline splitting/joining, bitmap import, and dirty-state updates.

Core data management module for decal splines. Handles CRUD operations, deep copy, serialization, undo/redo, profile copy/paste, spline splitting/joining, bitmap import, and dirty-state updates.


Public API

FunctionSignatureDescription
M.getToolPrefixStr()→ stringReturns "Decal Spline"
M.getEditModeKey()→ stringReturns "decalSplineEditMode"
M.getDecalSplines()→ tableReturns the decal splines array
M.getSplineMap()→ tableReturns ID-to-index lookup map
M.setDecalSplines(splines)Replaces all splines
M.setDecalSpline(spline, idx)Sets a single spline at index
M.getDefaultSliderParams()→ tableReturns default UI slider values
M.addNewDecalSpline()Creates a new spline with defaults
M.removeDecalSpline(idx)Removes spline at index (with cleanup)
M.removeLinkedDecalSpline(id)Removes a linked spline by UUID
M.removeAllDecalSplines(includeDisabled)Removes all (or only enabled/unlinked) splines
M.splitDecalSpline(splineIdx, nodeIdx)Splits spline into two at selected node
M.joinDecalSplines(idx1, node1, idx2, node2)Joins two splines into one
M.deepCopyDecalSpline(spline)→ tableDeep copy (clears derived geometry)
M.deepCopyDecalSplineState()→ tableDeep copies all splines
M.copyDecalSplineProfile(spline)→ tableCopies style/material settings (no geometry)
M.pasteDecalSplineProfile(spline, profile)Applies profile to a spline
M.serializeDecalSpline(spline)→ stringBinary serialization via string.buffer
M.deserializeDecalSpline(data, create)→ tableDeserialize from binary
M.updateDirtyDecalSplines()Recomputes geometry and repopulates dirty splines
M.convertPathsToDecalSplines(paths)Converts bitmap-traced paths to splines
M.getCurrentDecalSplineList()→ tableReturns enabled splines as {name, id, type}
M.isLinked(id)→ boolCheck if spline is linked to master
M.setLink(id, groupId, isLink)Set/clear link state
M.updateLinkedDecalSpline(id, pts, widths, nmls, isLoop, conform)Update linked spline geometry
M.unlinkAll()Unlinks all splines

Undo/Redo Functions

FunctionDescription
M.singleSplineEditUndo(data)Restores single spline from data.old
M.singleSplineEditRedo(data)Applies single spline from data.new
M.transSplineEditUndo(data)Restores full spline state from data.old
M.transSplineEditRedo(data)Applies full spline state from data.new

Default Spline Parameters

ParameterDefault
spacing0.0
jitter0.0
numRows4
numCols2
scale1.0
frame3
rot1 (90°)
randomSeed41225
Default material"asphalt_patches"

Notes

  • Uses string.buffer (LuaJIT) for fast deep copy and serialization
  • Minimum spline divisions: 100; minimum import size: 10m
  • Split supports loop unwrapping (open at split point) and open spline bisection
  • Join concatenates geometry in correct order based on endpoint proximity
  • updateDirtyDecalSplines performs vertical raycasts, Catmull-Rom subdivision, random seed, then repopulation

Functions

singleSplineEditUndo(decalSplineData)

Handles single spline edit undo.

  • decalSplineData (any)

singleSplineEditRedo(decalSplineData)

Handles single spline edit redo.

  • decalSplineData (any)

transSplineEditUndo(data)

Handles trans spline edit undo.

  • data (table)

transSplineEditRedo(data)

Handles trans spline edit redo.

  • data (table)

unlinkAll()

Unlinks all decal splines (clears isLink and linkId, marks dirty).


See Also

  • Decal Spline Populate - Related reference
  • World Editor Guide - Guide

Decal Spline Populate

Handles the creation, placement, and removal of decal instances along a decal spline's path. Manages DecalData templates, round-robin/random component distribution, and per-component row/col propagati

Drag Race Editor Constants

Centralized constants for the Drag Race Editor. Defines window settings, drag race types, phase names, tree types, context types, default transforms, UI dimensions, and debug colors.

On this page

Public APIUndo/Redo FunctionsDefault Spline ParametersNotesFunctionssingleSplineEditUndo(decalSplineData)singleSplineEditRedo(decalSplineData)transSplineEditUndo(data)transSplineEditRedo(data)unlinkAll()See Also