networking/editorToolchain Reference
Module defined in `lua/common/extensions/networking/editorToolchain.lua`. TCP server extension for editor toolchain communication - receives commands from external editors/tools.
Module defined in lua/common/extensions/networking/editorToolchain.lua. TCP server extension for editor toolchain communication - receives commands from external editors/tools.
Exports
Functions
M.onExtensionLoaded()
Hook: Called when the extension is loaded. Initializes the TCP server.
M.onExtensionUnloaded()
Hook: Called when the extension is unloaded. Cleans up connections.
M.onPreRender(dtReal, dtSim, dtRaw)
Hook: Called each frame before rendering. Polls for incoming TCP data.
- Parameters:
dtReal- number - Real delta timedtSim- number - Simulation delta timedtRaw- number - Raw delta time
M.onInit()
Hook: Called during initialization.
Hooks
onExtensionLoadedonExtensionUnloadedonPreRenderonInit
Internal Notes
- Uses
TCPServermodule for socket handling getPeerNameextracts peer address from connectiononDataprocesses incoming data from connected editors- Enables external tools to send commands to the running game
extensions/ - BeamNG Extension Modules
Extension modules that integrate with BeamNG's hook system. Organized by subsystem.
tech/techCapture Reference
Module defined in `lua/common/extensions/tech/techCapture.lua`. Records and replays tech layer communication (requests/responses) for debugging and testing co-simulation sessions.