RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Route Distance (Flowgraph Node)Closest Road (Flowgraph Node)Custom Lua (Flowgraph Node)Distance Between (Flowgraph Node)Waypoints Distance (Flowgraph Node)File Exists (Flowgraph Node)Get First Element of Table (Flowgraph Node)Get Level Data (Flowgraph Node)Get Map Objects IDs by DynField (Flowgraph Node)Get Table Value By Key (Flowgraph Node)GHOST (Flowgraph Node)Hide Loading Screen (Flowgraph Node)Color HSV (Flowgraph Node)Line Point From Xnorm (Flowgraph Node)Load Level (Flowgraph Node)Load Project (Flowgraph Node)On Menu (Flowgraph Node)Perlin Noise (Flowgraph Node)Pop Action Map (Flowgraph Node)Get Project InfoPush Action MapRandom ColorRandom NumberRandom QuaternionRandom VectorRoad PropertiesGet Navgraph RouteRoute PositionTemplate NodeTimeTimed SequenceTo NumberTo StringWorld Editor Open
Load Data (Flowgraph Node)Save Data (Flowgraph Node)

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 Extensionsflowgraphnodesutilfile

Load Data (Flowgraph Node)

- **Node Name:** `Load Data`

Overview

  • Node Name: Load Data
  • Category: once_instant
  • File: extensions/flowgraph/nodes/util/file/loadData.lua

Loads simple data from a file for reuse across multiple sessions. Supports user-defined output pins of various types.

Pin Schema

Input Pins

PinTypeDescription
filestring (fixed)Name of the file to load from (extension not needed)

Output Pins

User-defined custom output pins. Allowed types: string, number, bool, any, table, vec3, quat, color.

Internals

Key Methods

MethodDescription
init(mgr)Enables pin saving and allows custom output pins
workOnce()Reads each output pin's value from the file module using the pin name as key
onNodeReset()Forces a reload of the file data via mgr.modules.file:forceReload()

Properties

PropertyValue
savePinstrue - pin configuration is persisted
allowCustomOutPinstrue - user can add output pins in the editor
allowedManualPinTypesstring, number, bool, any, table, vec3, quat, color

How It Works

  1. User adds custom output pins in the flowgraph editor (e.g., a number pin named score).
  2. When the node executes, it reads the file specified by the file input pin.
  3. For each output pin (excluding flow), it calls self.mgr.modules.file:read(file, pinName) to load the stored value.
  4. On node reset, the file cache is force-reloaded to pick up any external changes.

Usage Example

-- Pair with a Save Data node to persist player progress:
-- [Save Data] file="progress" ← score=100, level=3
-- ...later session...
-- [Load Data] file="progress" → score → [Use Score]
--                              → level → [Use Level]

Key Dependencies

  • self.mgr.modules.file - flowgraph file module for persistent key/value storage

See Also

  • Save Data (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

World Editor Open

- **Node Name:** `World Editor Open`

Save Data (Flowgraph Node)

- **Node Name:** `Save Data`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsPropertiesHow It WorksUsage ExampleKey DependenciesSee Also