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
Vehicle Editor - Toolbar
Vehicle Editor - JBeam BeautifierVehicle Editor - JBeam Modifier Leaking VisualizerVehicle Editor - JBeam SpellcheckerVehicle Editor - JBeam Table VisualizerVehicle Editor - JBeam Variables CheckerVehicle Editor - Part ListVehicle Editor - Part Property ViewVehicle Editor - Part Text ViewVehicle Editor - Part TreeVehicle Editor - Static Render View

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 ExtensionseditorvehicleEditorstaticEditor

Vehicle Editor - JBeam Table Visualizer

Visualizes numeric table data from JBeam files as interactive 2D plots with Catmull-Rom curve interpolation, useful for inspecting torque curves, gear ratios, and other tabular data.

Visualizes numeric table data from JBeam files as interactive 2D plots with Catmull-Rom curve interpolation, useful for inspecting torque curves, gear ratios, and other tabular data.


Module Exports

ExportTypeDescription
M.menuEntrystring"JBeam Table Visualizer" - menu label
M.openfunctionOpens the visualizer window
M.onUpdatehookRenders ImGui window with file picker and graph
M.onSerializehookPersists window state
M.onDeserializedhookRestores window state

Key Internals

VariableTypePurpose
windowOpenBoolPtrWindow visibility
jbeamFileNamestring/nilCurrently loaded file name
jbeamFilePathstring/nilFull path to loaded file
graphableDatatableSorted list of {pathToData, data} entries
dataGraphingKeynumber/nilIndex into graphableData for current plot
plotHelperUtilmodulePlot rendering utility with auto-scale and curves

How It Works

  1. User opens a JBeam file via file dialog
  2. getGraphableData() recursively scans the parsed JSON:
    • Finds tables where all sub-entries are equally-sized arrays of numbers
    • Strips the header row (first entry with string values)
    • Records the hierarchical path (e.g., "partName > mainEngine > torque")
  3. User selects a dataset from a combo box
  4. plotHelperUtil renders the data as an interactive graph with:
    • Auto-scaling axes
    • Catmull-Rom spline interpolation overlay
    • Mouse-interactive zoom/pan

Lua Code Example

-- Open the table visualizer
extensions.editor_vehicleEditor_staticEditor_veJBeamTableVis.open()

-- Click "Open JBeam File..." to load a file via dialog:
-- editor_fileDialog.openFile(loadJBeamFile, {{"JBeam files", ".jbeam"}}, false, "/vehicles/")

-- Data discovery algorithm (getGraphableData):
-- Recursively walks parsed JSON looking for graphable tables:
-- - All children must be equally-sized arrays
-- - All non-first children must have numeric first two elements
-- Path is built hierarchically: "partName > section > subsection"

-- Example of graphable data in JBeam:
-- "torque": [
--   ["rpm", "torque"],   <- header (stripped)
--   [0, 0],              <- data points
--   [1000, 120],
--   [3000, 200],
--   [6000, 180]
-- ]

-- Select data from combo box dropdown:
-- if im.Selectable1(pathToData) then
--   plotHelperUtil:setData(data)
-- end

-- "Refresh" button reloads the file and updates the current graph:
-- loadJBeamFileInMemory(nil)  -- nil = refresh current file

-- Plot utility with auto-scale and Catmull-Rom curves:
-- local plotHelperUtil = require('/lua/ge/extensions/editor/util/plotHelperUtil')(params)
-- plotHelperUtil:draw(width, height, dt)

See Also

  • Vehicle Editor - JBeam Beautifier - Related reference
  • Vehicle Editor - JBeam Modifier Leaking Visualizer - Related reference
  • Vehicle Editor - JBeam Spellchecker - Related reference
  • World Editor Guide - Guide

Vehicle Editor - JBeam Spellchecker

Validates JBeam modifier names across all vehicle files by checking them against a whitelist of known valid modifiers per section type.

Vehicle Editor - JBeam Variables Checker

Validates that JBeam variable values (both defaults and vehicle configuration overrides) fall within their declared min/max ranges across all vehicle directories.

On this page

Module ExportsKey InternalsHow It WorksLua Code ExampleSee Also