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
Gen Decal EditorGen Experimental Frame EditorGen Mesh ExplorerGen Experimental SolidFlexGen Mesh ModuleGen Network ModuleGen Region ModuleGen Render ModuleGen Terrain ModuleEditor Gen TestEditor Gen Top (Roof Geometry)Editor Gen UI (Building Architect UI)Editor Gen UtilsEditor Gen World
Gen AI LibraryGen JBeam LibraryGen UI Library

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 Extensionseditorgenlib

Gen JBeam Library

JBeam file parsing library for the gen editor's mesh and vehicle inspection tools.

JBeam file parsing library for the gen editor's mesh and vehicle inspection tools.


Overview

The jbeam library parses JBeam vehicle definition files and extracts beam groups, nodes, and their physical properties (spring, damping, deformation, strength). It organizes beams into groups based on property changes and provides structured data for the mesh explorer.


Module Table: M

FieldTypeDescription

Functions

FunctionSignatureDescription
M.fileUp(file, nm, dbg)(string, string?, boolean?) → table?Parses a JBeam file. If nm given, extracts that part's beams into grouped structure

Parsed Data Structure

When nm (part name) is provided, returns:

Beam Groups (dgroup)

Each group key is a stamp of strength*deform*spring*damp:

FieldTypeDescription
listtableArray of beam entries {node1, node2}
keynumberGroup sequential index
strengthnumberBeam break strength (FLT_MAX → math.huge)
springnumberSpring constant
deformnumberDeformation threshold
dampnumberDamping coefficient
dparamtableAdditional parameters from JBeam headers

Part Data

FieldTypeDescription
abeamtableAll beams in the part
anodetableAll nodes in the part

Dependencies

ModulePath
Utils/lua/ge/extensions/editor/gen/utils
jbeam/iojbeam/io
jbeam/tableSchemajbeam/tableSchema

Usage Example

local J = require('/lua/ge/extensions/editor/gen/lib/jbeam')

-- Parse a JBeam file and extract beam groups for a specific part
local data = J.fileUp('/vehicles/pickup/pickup.jbeam', 'pickup_chassis')
-- data contains grouped beams by physical properties

-- Access beam groups:
for stamp, group in pairs(data.dgroup) do
  print(stamp, #group.list, "beams, spring:", group.spring)
end

All Exported Functions

FunctionSignatureDescription
M.fileUp(file, nm, dbg)(string, string?, boolean?) → table?Parses JBeam file. If nm provided, extracts that part's beams into grouped structure with dgroup
M.part2file()() → tableMaps all active vehicle parts to their JBeam source files. Returns dict {partName → {name, file, abeam, amesh}} using player vehicle data and jbeamIO

See Also

  • Gen Mesh Explorer - Uses JBeam lib for vehicle inspection
  • Gen Mesh - 3D mesh creation

Gen AI Library

Gradient descent optimization library for the gen editor's experimental tools.

Gen UI Library

ImGui widget library providing reusable UI components for the gen editor framework.

On this page

OverviewModule Table: MFunctionsParsed Data StructureBeam Groups (dgroup)Part DataDependenciesUsage ExampleAll Exported FunctionsSee Also