Zum Inhalt springen
Medium 1 für Eintrag Deterministic Seed Subsystem

Beschreibung

SeedSubsystem is a plug-and-play way to standardize randomness across your project. It wraps UE’s FRandomStream with a clean Blueprint API and a simple “seed + salt” pattern so you can:

  • reproduce runs for QA/streams,

  • desync-proof roguelike systems,

  • and keep randomness predictable in massive PCG maps.

Documentation

Discord

Use it for procedural generation, loot, spawning, encounter tables, or any system that must be both random and reliable.

Key Features

  • Deterministic core: Initialize once and get identical results for the same seed & code path.

  • Salt everything: Add per-system/per-call salts to isolate subsystems.

  • Blueprint-first API: Every function callable in BP, with sensible defaults.

  • Weighted enum picks: Choose from a map of uint8 → weight or arrays of enum values.

  • Curve sampling: Sample UCurveFloat deterministically (great for distributions).

  • Editor convenience: SeedSubsystem.EditorSeed CVar to lock editor runs.

  • Opt-out chaos: Set bDeterministic to false to add time to salt for non-repeatable results.

  • Zero external deps: Pure UE runtime code; shipping-safe.

Enthaltene Formate