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 Variables Checker

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

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


Module Exports

ExportTypeDescription
M.menuEntrystring"JBeam Variables Checker" - menu label
M.openfunctionOpens the checker window
M.onUpdatehookRenders ImGui window with analysis button
M.onSerializehookPersists window state
M.onDeserializedhookRestores window state

How It Works

  1. analyze() scans each vehicle directory under vehicles/
  2. For each directory:
    • Loads all .pc (part config) files and extracts variable overrides
    • Builds a mapping: varName -> [{pcFilePath, val}, ...]
  3. For each .jbeam file, processes variables sections via jbeamTableSchema
  4. checkValInRange() validates:
    • The variable's default value against its own min/max
    • Each config file's override value against the variable's min/max
  5. Logs warnings for out-of-range values with file locations

Lua Code Example

-- Open the variables checker
extensions.editor_vehicleEditor_staticEditor_veJBeamVariablesChecker.open()

-- Click "Start Analysis" - results print to console
-- "Results get printed to the console."

-- Analysis flow per vehicle directory:
-- local dirPaths = FS:findFiles('vehicles', "*", 0, false, true)
-- for _, vehDir in ipairs(dirPaths) do
--   local pcFilePaths = FS:findFiles(vehDir, "*.pc", -1, false, false)
--   local jbeamFilePaths = FS:findFiles(vehDir, "*.jbeam", -1, false, false)
--   ...
-- end

-- Config override extraction:
-- local vehConfig = extensions.core_vehicle_partmgmt.buildConfigFromString(vehDir, pcFilePath)
-- if vehConfig.vars then
--   for var, val in pairs(vehConfig.vars) do
--     varToConfigsAndVals[var] = varToConfigsAndVals[var] or {}
--     table.insert(varToConfigsAndVals[var], {pcFilePath = pcFilePath, val = val})
--   end
-- end

-- Range validation with clamping:
-- vv.min, vv.max = math.min(vv.min, vv.max), math.max(vv.min, vv.max)
-- local valBeforeClamp = vv.val
-- vv.val = clamp(vv.val, vv.min, vv.max)
-- if valBeforeClamp ~= vv.val then
--   log('W', '', 'variable $spring_rate value out of range! value 50000 clamped to [1000, 40000]')
--   log('W', '', '  var defined: vehicles/car/car.jbeam:car_part')
--   log('W', '', '  val defined: vehicles/car/sport.pc')
-- end

-- Uses jbeamTableSchema to process variable definitions:
-- jbeamTableSchema.process(partData, false, true)

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 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.

Vehicle Editor - Part List

Sortable, searchable table listing all available (or active-only) JBeam parts for the current vehicle, with file modification timestamps and part selection.

On this page

Module ExportsHow It WorksLua Code ExampleSee Also