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

Mission Playbook

Editor extension that provides a **Mission Playbook** - a scripted sequence of mission attempts used to batch-test career progression, rewards, and unlock chains.

Editor extension that provides a Mission Playbook - a scripted sequence of mission attempts used to batch-test career progression, rewards, and unlock chains.


Overview

The playbook is a list of missionAttempt instructions, each specifying a mission ID and which stars to unlock. Playing the book executes all attempts sequentially via gameplay_missions_progress.generateAttempt, allowing developers to simulate full career progressions and inspect results.


Module Interface (M)

FunctionDescription
M.onEditorInitialized()Registers window and menu item under "Missions".
M.onEditorGui()Main draw loop: menus, instruction list, book viewer.
M.onEditorRegisterPreferences()Placeholder for preferences.
M.show()Shows the playbook window.
M.drawBookViewer()Page slider and condensed-mode toggle.
M.onSerialize() → dataSaves book and condensed state.
M.onDeserialized(data)Restores book and condensed state.

Dependencies

  • gameplay_missions_missions
  • editor_missionPlaybook_attributeViewer
  • editor_missionPlaybook_unlockedMissionsViewer
  • editor_missionPlaybook_missionTreeViewer

Book Structure

M.book = {
  page = 1,               -- current viewing page
  instructions = {},       -- array of instruction tables
  results = {}             -- array of result data per step
}

Instruction Format

{ type = "missionAttempt", missionId = "italy/delivery/001-mattress", stars = { piecesBronze = true } }

Menu Actions

File Menu

ActionDescription
ClearReset book to empty
Save as...Save to .missionPlaybook.json
LoadLoad from file

Run Menu

ActionDescription
PlayExecute all instructions with current career
Play with Empty SlotCreate clean career slot, then play

Util Menu

ActionDescription
Clear Testing SlotReset to fresh career save slot

Generate Menu

ActionDescription
All MissionsGenerate attempts for all remaining stars
Only Tier NFilter by branch tier
Only N starsLimit attempt count
Only Default/Bonus StarsFilter star type
Per-branch filtersGenerate for specific career branches

Internal Functions

FunctionDescription
play(untilIdx)Executes instructions up to index, stores results
getAllRemainingStarCombos(params)Finds all missions with unearned stars, builds instruction list
generateAndPlaybook(params)Auto-generates and immediately executes a full playbook
savePlaybook(book, savePath)Writes book to JSON
loadPlaybook(filename)Reads book from JSON

Usage Example

-- Show the playbook window
editor_missionPlaybook.show()

-- Access the current book
local book = editor_missionPlaybook.book
print(#book.instructions, "instructions")
print(#book.results, "results")

Module Variables

  • dependencies (table) - {'gameplay_missions_missions', 'editor_missionPlaybook_attributeViewer', 'editor_missionPlaybook_unlockedMissionsViewer', 'editor_missionPlaybook_missionTreeViewer'}
  • book (table) - Current playbook data (page, instructions, results).

Additional Exports

  • M.dependencies

See Also

  • Editor AI Tests - Related reference
  • Editor AI Visualization - Related reference
  • Editor – Assembly Spline Tool - Related reference
  • World Editor Guide - Guide

Mission Editor

Main editor tool for creating, editing, and managing gameplay missions. Provides a full ImGui interface for mission properties, conditions, career setup, objectives, start triggers, and flowgraph inte

Mission Start Position Editor

Editor extension providing a **3D edit mode** for visually repositioning mission start trigger positions in the viewport.

On this page

OverviewModule Interface (M)DependenciesBook StructureInstruction FormatMenu ActionsFile MenuRun MenuUtil MenuGenerate MenuInternal FunctionsUsage ExampleModule VariablesAdditional ExportsSee Also