SeinARTS Network
Class · USeinNetSettings : USeinSettings
Parent: Sein Settings
#include "Settings/SeinNetSettings.h"
Network settings: lockstep turns, the relay, desync checks, replays, drop-in policy and the lobby.
Properties
Section titled “Properties”Network
Section titled “Network”Networking Enabled
Section titled “Networking Enabled”bool bNetworkingEnabled
Editable in defaults and on instances · Saved to config
Master switch for the lockstep networking layer. Off, the net subsystem does nothing even if a net driver is present — handy for a single-player build that still has the module compiled in. This is separate from the world’s net mode: the subsystem also requires the world to be networked (not standalone) before any traffic flows.
Input Delay Turns
Section titled “Input Delay Turns”int32 InputDelayTurns · min 1, max 10
Editable in defaults and on instances · Saved to config
How many turns ahead a local command is scheduled. A command you issue targets the current turn plus this many, which hides network latency by deferring when it takes effect in the sim. Aim for about 200-300 ms (2-3 turns at 10 Hz). Players do not feel the delay as long as local feedback — an audio cue, a ground marker, a selection ring — fires immediately on input, which is the framework’s job, not this setting’s.
Relay Actor Class
Section titled “Relay Actor Class”TSoftClassPtr<ASeinNetRelay> RelayActorClass · default ASeinNetRelay::StaticClass()
Editable in defaults and on instances · Saved to config
Which relay actor carries the shipped Unreal transport. One owner-only relay is spawned per connected controller; it carries that player’s commands to the host, and the host’s turns, match start and state back. Subclass it to layer in custom telemetry, encryption, or per-game packet shaping without touching framework code. Set it to None to turn the relay OFF: no relay spawns, so lockstep networking can’t send or receive commands — only do this if you are not using the built-in net layer. A one-time on-screen warning fires while off (suppress it in Editor Preferences).
Determinism Checks Enabled
Section titled “Determinism Checks Enabled”bool bDeterminismChecksEnabled · default true
Editable in defaults and on instances · Saved to config
Whether clients periodically cross-check that their simulations still agree. When on, every few turns (set by Determinism Check Interval) each client sends the host a 128-bit checksum of its world state; a mismatch with the host’s own applies the Desync Policy.
Determinism Check Interval Turns
Section titled “Determinism Check Interval Turns”int32 DeterminismCheckIntervalTurns · default 10 · shown when bDeterminismChecksEnabled · min 1, max 300
Editable in defaults and on instances · Saved to config
How often the determinism cross-check runs, in turns. Lower catches a desync sooner but spends more bandwidth and CPU on state capture. 10 turns (about 1 second at 10 Hz) is a sensible baseline; drop it to 1 while hunting a desync.
Desync Policy
Section titled “Desync Policy”ESeinDesyncPolicy DesyncPolicy · shown when bDeterminismChecksEnabled
Editable in defaults and on instances · Saved to config
What the host does when a peer’s state checksum disagrees with its own: send that peer its state so the match goes on, or abort the match for everyone with a report naming the peers.
Vacant Seat Policy
Section titled “Vacant Seat Policy”FSeinVacantSeatPolicy VacantSeatPolicy
Editable in defaults and on instances · Saved to config
What happens to a player’s seat when they drop mid-match: whether and when an AI takes it over, whether and when new players may take it, and when the player who dropped may take it back. A Game Mode can decide per match or per seat by overriding Get Vacant Seat Policy; by default it returns this.
Network / Replay
Section titled “Network / Replay”Checkpoint Interval (turns)
Section titled “Checkpoint Interval (turns)”int32 ReplayCheckpointIntervalTurns · default 3000 · min 1, max 1000000
Editable in defaults and on instances · Saved to config
How many completed lockstep turns pass between replay checkpoints. Checkpoints let long replays seek without replaying the entire match from tick zero. Smaller intervals make seeking faster but spend more disk bandwidth and storage. Recording policy only: it never changes simulation timing or state. Default 3000 turns.
Maximum File Size (MiB)
Section titled “Maximum File Size (MiB)”int32 ReplayMaxFileSizeMiB · default 16384 · min 64, max 65536
Editable in defaults and on instances · Saved to config
Maximum size of one replay recording, in mebibytes. The recorder publishes the file and stops before crossing this bound, so a long-running server cannot grow one file without limit. Local storage policy only. Default 16384 MiB.
Network / Debug
Section titled “Network / Debug”Fixed Session Seed (0 = random)
Section titled “Fixed Session Seed (0 = random)”int64 DebugFixedSessionSeed · default 0
Editable in defaults and on instances · Saved to config
Debug only. When non-zero, the net subsystem uses this exact value as the lockstep session seed instead of drawing a fresh one from the wall-clock at each Play. That makes every run reproduce identically, so anything driven by the random number generator becomes bit-for-bit the same run to run — any variance left over must come from something other than the seed (level data, sim ordering, float drift, and so on), which is what you want when chasing a desync.
Leave it at 0 in production; every real match needs a fresh seed for variety and replay uniqueness.
Network / Lobby
Section titled “Network / Lobby”Available Maps
Section titled “Available Maps”TArray<FSeinLobbyMapEntry> AvailableMaps
Editable in defaults and on instances · Saved to config
The maps offered in the lobby’s map dropdown. Each entry pairs a map with its display name, its player-slot count, and a thumbnail. The host picks one, the lobby resizes to that slot count, and starting the match travels everyone to that map.
Order matters: the first entry is selected when the lobby opens, so list them in the order you want them shown.
An empty list means no map dropdown — the lobby just seeds Max Players open slots, and Start Match uses the runtime override or the Default Gameplay Map below. This list is a lobby-UI convenience, never a gate: with an empty list a custom lobby widget may select any map directly, and nothing about PIE, direct play, or sim testing ever requires a map to be listed here.
The slot count is declared per entry by hand (to avoid loading the level just to count starts at lobby boot); set it to the number of Sein Player Starts placed in that level with a player slot greater than zero.
Default Match Extensions
Section titled “Default Match Extensions”TArray<FInstancedStruct> DefaultMatchExtensions
Editable in defaults and on instances · Saved to config
The default match rules a new match starts with. Fill this with whatever rule structs your game uses — the built-in basic match settings for common RTS knobs, or your own structs. When a match starts, the lobby copies these into the match settings alongside the live slot list.
Player slots are not here; they are dynamic state on the lobby (seeded from the chosen map’s slot count, or Max Players if no map is picked). When you Play a level directly, the slot list is synthesized from the Sein Player Start actors in that level instead.
Every concrete struct must be deterministic: the match settings travel to every peer and into replays.
Default Gameplay Map
Section titled “Default Gameplay Map”TSoftObjectPtr<UWorld> DefaultGameplayMap
Editable in defaults and on instances · Saved to config
The map the host travels everyone to when a lobby match starts, if no map was chosen at runtime. The lobby publishes its snapshot first, and the destination map’s game mode reads it back as the match begins. A runtime value set from a widget takes precedence over this; this setting is the ship-time fallback. Leave it empty to run the match in place without travelling.
Main Menu Map
Section titled “Main Menu Map”TSoftObjectPtr<UWorld> MainMenuMap
Editable in defaults and on instances · Saved to config
The map the local player returns to after leaving a lobby. Point it at your front-end menu so leaving a lobby lands on the main menu instead of a disconnected gameplay map. A standalone match that ends returns here too. Leave it empty for no auto-travel, in which case your project handles post-disconnect and post-match routing itself.
Reconnect Grace (seconds)
Section titled “Reconnect Grace (seconds)”float LobbyReconnectGraceSeconds · default 60.0f · min 0.0
Editable in defaults and on instances · Saved to config
How many seconds a disconnected lobby slot stays reserved for the player who left before it opens back up. Rejoin within this window and you get your original slot and faction back. 0 means no grace — the slot opens the instant someone drops. Default 60 seconds covers brief blips and alt-tab freezes; competitive games often shorten it to 15-30.