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

Save Data (Flowgraph Node)

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

Overview

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

Saves simple data into a file for reuse across multiple sessions. Supports user-defined input pins of various types.

Pin Schema

Input Pins

PinTypeDescription
filestring (fixed)Name of the file to save into (extension not needed)

Additional user-defined custom input pins. Allowed types: string, number, bool, any, table, vec3, quat, color.

Internals

Key Methods

MethodDescription
init(mgr)Enables pin saving and allows custom input pins
workOnce()Writes each custom input pin's value to the file module

Properties

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

How It Works

  1. User adds custom input pins in the flowgraph editor (e.g., a number pin named score).
  2. When the node executes, it iterates all input pins except flow, reset, and file.
  3. For each custom pin, calls self.mgr.modules.file:write(file, pinName, value) to persist the value.

Usage Example

-- Save player progress data:
-- [Get Score] → score → [Save Data] file="progress"
-- [Get Level] → level →

-- Load it back in a future session:
-- [Load Data] file="progress" → score, level

Key Dependencies

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

See Also

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

Load Data (Flowgraph Node)

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

Align For Coupling

- **Node Name:** `Align for Coupling`

On this page

OverviewPin SchemaInput PinsInternalsKey MethodsPropertiesHow It WorksUsage ExampleKey DependenciesSee Also