Skip to content

Remnant Item System

Summary: Remnant Items are narrative-tied uniques rolled inside sealed Remnant Realm sub-levels. Players interact with a world-placed portal → enter a streamed realm → complete a Hold-the-Ground event → receive a sealed item with hidden Echo Mods and a Desire progression task → equip the item and fulfil the Desire through play → the item auto-awakens, revealing and activating its Echo Mods. The system is server-authoritative, rides the existing item / equipment / modifier pipelines, and uses per-instance state modules on UItemObject for the Sealed → Awakened lifecycle.

Table of Contents


Architecture Overview

┌────────────────────────────────────────────────────────────────┐
│                     WORLD (persistent)                         │
│                                                                │
│    ARemnantPortalActor ──── UInteractableComponent             │
│         │                                                      │
└─────────┼──────────────────────────────────────────────────────┘
          │ OnInteracted (server)
          ▼
┌────────────────────────────────────────────────────────────────┐
│                  URemnantRealmSubsystem                        │
│  • WorldSubsystem — lifetime scoped to UWorld                  │
│  • Caches entry transform per player                           │
│  • Builds FTransitionRequest (InWorldTeleport)                 │
└─────────┬──────────────────────────────────────────────────────┘
          │ StartTransition
          ▼
┌────────────────────────────────────────────────────────────────┐
│              UTransitionStateManager                           │
│  • Multicast freeze + fade                                     │
│  • OnRequestDynamicSublevelLoad → subsystem handler            │
│  • Client-ready tracking for coop                              │
└─────────┬──────────────────────────────────────────────────────┘
          │ ULevelStreamingDynamic::LoadLevelInstance
          ▼
┌────────────────────────────────────────────────────────────────┐
│                 REALM SUB-LEVEL (streamed)                     │
│                                                                │
│   ARemnantEventActor_HoldGround                                │
│      │ leash tick + progress timer                             │
│      └── ARemnantWaveSpawner ── AEnemySpawner[]                │
│                                                                │
│   On success → URemnantItemFactory::RollRemnantItem            │
│              → ALootContainer dropped                          │
└─────────┬──────────────────────────────────────────────────────┘
          │ pickup → inventory
          ▼
┌────────────────────────────────────────────────────────────────┐
│                 PLAYER (persistent)                            │
│                                                                │
│   UItemObject (sealed Remnant)                                 │
│      ├── FRemnantFragment (marker, in manifest)                │
│      └── FRemnantItemState (state module)                      │
│              State = Sealed                                    │
│              EchoMods[] — hidden, inactive                     │
│              ActiveDesire — progress tracked                   │
│                                                                │
│   URemnantTrackerComponent (on AEternalPlayer)                 │
│      Subscribes to kill events, ticks Desire progress          │
│      On Desire complete → AwakenItem:                          │
│          State = Awakened                                      │
│          Each EchoMod.bIsRevealed = true, bIsActive = true     │
│          UEquipmentComponent refresh → Echo GEs spawn          │
└────────────────────────────────────────────────────────────────┘

Key Design Principles

Principle Implementation
Server authority All public subsystem + tracker methods require HasAuthority()
Reuse, don't fork Items ride UItemObject, modifiers ride FRolledModifier (with Source=Echo), equipment apply loop runs the normal FEquipmentFragment path
Marker fragment, rich state module FRemnantFragment has no fields — identifies the item. FRemnantItemState carries all mutable per-instance data
Transition-manager integrated Realm entry uses the same freeze/fade/client-ready pipeline as hub/dungeon transitions via ELevelTransitionType::InWorldTeleport
No level unload The realm is a sub-level streamed into the current world. Player doesn't leave the persistent world.
Realm brings its own light Sharing the persistent world means sharing its single active lighting sublevel, so the realm's sky/sun/fog rides FTransitionRequest.LightingConfig — swapped behind the fade, host lighting cached and restored on exit or disconnect

Core Concepts

Why Remnants Exist

The GDD positions Remnants as "physical manifestations of the world's repeating cycle" carrying "powerful, lore-driven properties that cannot be found on standard gear." They supply:

  • A bounded challenge loop (Hold-the-Ground is the MVP variant, more event types deferred)
  • A long-tail progression hook (Desire ticks while playing normally, not during the realm)
  • A reveal moment (Sealed → Awakened pays off hours of play with an instant visible change)
  • A PoE-adjacent mechanic layer that compounds with the planned Corruption system

The mechanic itself is theme-agnostic — one Era tag and one item pool were enough to validate the full loop before the narrative + art pass lands.

Portals are no longer debug placements: they now arrive procedurally, as Room.RemnantRealm rooms injected into a dungeon's topology by chance (see Dungeon System, with a per-world-map-node chance override). The Forest domain ships the first full content set — RD_Forest_Remnant room data, L_Room_Forest_Remnant room level, and the LS_Factory lighting sublevel the portal swaps in as the realm's own environment. Spawn frequency tuning and era-color visuals remain deferred.

State Module Lifecycle

A Remnant lives in two states (ERemnantState):

State Echo Mods Desire Tooltip Equipment Apply Loop
Sealed bIsRevealed=false, bIsActive=false Progress ticks while equipped ??? for Echo Mod lines; shows Desire progress X / Y Skips Echo Mods (gate via bIsActive); other mods apply normally
Awakened bIsRevealed=true, bIsActive=true No longer relevant (MVP: one Desire per item) Full Echo Mod text; Desire line removed Includes Echo Mods (gate passes); full GE spawn

Era Burdens (shipped alongside Echo Mods) follow the same reveal discipline: each rolled Remnant carries BurdenSlotCount (MVP: 1) negative modifiers (FRemnantBurden, Source=EraBurden) picked from the pool's BurdenModPool. Sealed = hidden/inactive like Echo Mods; Awakening reveals and activates them together — the payoff moment surfaces the curse with the power. Burden pools are registered as auxiliary pools (resolvable by ID, excluded from loot rolls), same as Echo pools. See RemnantEraBurdens.plan.md for design rationale.

Transition is one-shot and one-way for MVP. Multi-rank Desire chains are deferred.

Fragment vs State Module

Aspect FRemnantFragment FRemnantItemState
Where it lives UItemObject::ItemManifest (static template) UItemObject::StateModules (runtime instance)
Purpose Marker — identifies the item as a Remnant Carries mutable per-instance state
Fields None — empty marker State, EchoMods, Burdens, ActiveDesire, Era, PoolRef
Replication Via manifest replication Via ReplicatedUsing=OnRep_StateModules
Persistence Rides with manifest (ItemID lookup) Serialized via wrapper entry in FItemSaveState.StateModules

See Item State Modules for the general pattern and how future mechanics (Corruption, etc.) will layer on the same system.

Server Authority Boundary

Operation Server Client
Portal interact → subsystem Enter ✅ via UInteractableComponent server RPC ❌
Realm sub-level stream ✅ Clients see OnLevelShown via replication
Event progress tick ✅ Reads replicated ProgressSeconds
Wave triggers ✅ Wave state replicates
Reward roll ✅ Receives item via replicated container
Desire tick on kill ✅ Reads via OnRep_StateModules
Awaken transition ✅ Receives state change via OnRep_StateModules + tooltip VM re-snapshot

The Remnant Loop

  Interact with portal (server)
         │
         ▼
  Subsystem caches entry transform
         │
         ▼
  Build FTransitionRequest (InWorldTeleport)
         │
         ▼
  UTransitionStateManager freezes everyone + fades
         │
         ▼
  ULevelStreamingDynamic loads realm sub-level
         │
         ▼
  Player teleported to realm spawn point
         │
         ▼
  Interact with event actor (server)
         │
         ▼
  Progress timer ticks while in-radius + wave spawner fires
         │
         ├── Player dies  → ExitRealm(success=false)
         │
         └── Timer full   → RollRemnantItem + drop loot container
                          → Closing phase (player picks up)
                          → ExitRealm(success=true)
         │
         ▼
  Subsystem teleports player to cached entry transform
         │
         ▼
  Sub-level unloads
         │
         ▼
  Player equips sealed Remnant
         │
         ▼
  URemnantTrackerComponent ticks Desire on every credited kill
         │
         ▼
  Desire satisfied → AwakenItem
         │
         ├── State = Awakened
         ├── EchoMod[i].bIsRevealed = bIsActive = true
         └── UEquipmentComponent refresh → Echo GEs spawn

Portal & Realm Entry

ARemnantPortalActor

World-placed actor carrying an UInteractableComponent. On interact, calls the subsystem with the player, the portal's actor transform (the return destination), and the RealmLevel soft reference.

Property Purpose
RealmLevel TSoftObjectPtr<UWorld> — the sub-level streamed on enter
RealmSpawnLocation World offset where the realm level instance is placed. Zero (default) resolves to the subsystem's reserved offset, outside any generated dungeon's extent — set it only to override for hand-built test levels
RealmLighting FEnvironmentLightingConfig — the realm's own sky/sun/fog/post sublevel, swapped in behind the fade and restored on exit. Leave unset to keep the host's lighting

One-shot — the actor destroys itself after first interact.

The portal carries no era; the realm's event actor owns it (see Era Provenance).

Realm-Owned Environment Lighting

The realm is a sub-level of the persistent world, not a separate map, so it cannot bring its own sky along — the world has exactly one active lighting sublevel. RealmLighting therefore rides the transition rather than the level:

EnterRealm
    │
    ├── RealmLighting.IsValid()?
    │       ├── PreRealmLighting = TSM->GetLightingConfig()   (cache the host's)
    │       └── Request.LightingConfig = RealmLighting
    │
    └── StartTransition → existing RequestLoadLighting multicast swaps it behind the fade

ExitRealm
    └── Request.LightingConfig = PreRealmLighting  → host lighting restored, cache cleared

HandlePlayerDestroyed (disconnect)
    └── the disconnecting player never runs the exit transition, so the cleanup path
        calls RequestLoadLighting(PreRealmLighting) directly
        (not when the whole world is tearing down: see below)

A session that ends with the player in the realm (the demo's end, Change Preset, the escape menu's return) destroys the players after the world has begun tearing down and after UEnvironmentSubsystem has cleared its lighting state. HandlePlayerDestroyed then skips the restore and the sublevel unload: lighting restored at that point streamed into the dying world, left the environment subsystem waiting on it, and every later run skipped its own lighting as "already streaming in" (an unlit level behind a 30 s loading screen). UEnvironmentSubsystem::LoadLighting also refuses any request while the game instance's world is tearing down, and drops lighting state that belongs to another world, so any late caller is covered.

No new replication: the swap reuses the transition manager's existing lighting multicast, and the fade hides the sublevel churn.

URemnantRealmSubsystem

A UWorldSubsystem that orchestrates enter/exit. Owns only realm-specific state; delegates freeze/fade/client-sync to the transition manager.

EnterRealm(Player, EntryTransform, RealmLevel, SpawnLocation)
    │
    ├── HasAuthority check
    ├── Cache entry transform in per-player map
    ├── Bind OnDestroyed for disconnect cleanup
    ├── Subscribe to TransitionStateManager (idempotent)
    └── StartTransition(FTransitionRequest{ InWorldTeleport, RealmLevel, SpawnLocation })

HandleSublevelLoadRequest (TSM callback)
    │
    ├── Forward direction → ULevelStreamingDynamic::LoadLevelInstance
    │                       → TSM->NotifyDynamicSublevelLoaded(level) before
    │                         signalling local streaming complete
    └── Exit direction → immediately signal streaming complete (no load work)

ExitRealm(Player, bSuccess)
    │
    ├── HasAuthority check
    ├── Flag bExitPending
    ├── StartTransition (return direction — uses cached transform)
    └── HandleTransitionComplete unloads the sub-level + clears the cache entry

The subsystem does not own the transition UI, freeze multicast, or client-ready tracking — those live in UTransitionStateManager. See Transition Manager Integration (pending doc) for the shared pipeline.

Spawn Routing into the Streamed Realm

A realm run is an InWorldTeleport transition — the player never leaves the persistent world, so the landing PlayerStart must be resolved from the streamed realm sub-level, not the hub/fixed level the player came from. The pipeline tracks this explicitly:

RemnantRealmSubsystem loads sub-level
    │
    └── TSM->NotifyDynamicSublevelLoaded(level)   ← TSM records the active transition's sublevel
            │
PlayerSpawnManager (forward InWorldTeleport entry):
    ├── Context = EPlayerStartContext::InWorldTeleportPoint
    ├── Search TSM->GetActiveDynamicSublevel() EXCLUSIVELY
    │       (no fallback to WorldMapSubsystem's current streamed/hub level)
    └── No matching PlayerStart → log error (content authoring bug)

Death inside a realm: the tear that led in is one-shot, so respawning a mid-realm death back in the host level would strand the run. URemnantRealmSubsystem::FindRealmPlayerStart() returns the highest-Priority AEternalPlayerStart inside the active realm sublevel (any APlayerStart as fallback) and the respawn flow uses it.

Why no hub fallback: falling back to the hub's streamed level silently teleported the player back to the hub start when entering a realm from a non-test boot path (e.g. L_Dungeon → Training Grounds → portal). The realm sub-level owns its landing PlayerStart; searching it exclusively makes a missing/mislabelled realm PlayerStart fail loudly instead of masquerading as a successful hub spawn. The exit direction uses the cached return transform and bypasses the PlayerStart pipeline entirely.


Hold-the-Ground Event

The MVP event type (GEN-01). One event actor per realm sub-level. Designer places + configures it alongside spawners.

Event Flow

 Player interacts with ARemnantEventActor_HoldGround (server)
     │
     ├── Multicast_HideInteractable — removes prompt from all clients
     ├── bActive = true (replicated)
     ├── WaveSpawner.BeginWaves()
     └── Tick begins

 Tick (server, 60Hz):
     ├── In-radius check via squared distance
     │   ├── In  → ProgressSeconds += DeltaSeconds (clamped to target)
     │   └── Out → pause (no reset for MVP)
     │
     ├── On ProgressSeconds >= ProgressTargetSeconds:
     │     bActive = false
     │     bIsClosing = true
     │     SpawnRemnantReward (rolls via URemnantItemFactory + spawns ALootContainer)
     │     Start ClosingSecondsRemaining countdown
     │
     └── On ActivePlayer death (OnDeath):
           bActive = false
           URemnantRealmSubsystem::ExitRealm(Player, success=false)

 Closing phase tick:
     ClosingSecondsRemaining -= DeltaSeconds
     On zero → ExitRealm(Player, success=true)

Leash Behavior

Progress pauses on leash-break, doesn't reset. Cheapest signal to implement, tolerant of combat positioning. Reset-on-break is considered for later event types where the challenge warrants it.

Wave Spawner

ARemnantWaveSpawner holds an authored TArray<FRemnantWaveEntry> (TriggerAtSeconds + TArray<AEnemySpawner*>). Sorted at BeginPlay. Ticks elapsed seconds and fires each wave's spawners on schedule. Wraps the existing AEnemySpawner primitive — no generation coupling.

World-Space Progress Widget

Event actor owns a UWidgetComponent hosting URemnantEventProgressWidget. Drives:

  • Fill proportion from ProgressSeconds / ProgressTargetSeconds
  • Final stretch pulse when remaining time ≤ FinalStretchThresholdSeconds
  • Wave imminent flash when next wave triggers within WaveImminentWindowSeconds
  • Closing countdown once reward drops

Widget state is fed by a client-side URemnantEventViewModel populated from the event actor's replicated properties.


Boss Event (demo finale)

ARemnantBossEventActor is the finale alternative to the hold event: an obelisk-triggered boss fight that ends the demo. Interact → summon beat (darkness breathes in) → boss spawns from the placed spawner → on boss death the realm collapses (the RemnantDarkness spline shrinks toward the obelisk under a persistent low camera shake) until full darkness, then the end-of-demo screen fades in. ERemnantBossEventPhase (Armed → Summoning → Fighting → Collapsing → Ended) replicates so clients drive cosmetics off phase changes; the server owns every transition, and the darkness animation is per-client MPC work synchronized by replicating the collapse start time. If the tracked player dies mid-event the fight resets in place (boss despawned, obelisk re-armed) rather than exiting the one-shot realm. Quest completion rides the boss data asset's kill-credit tags — nothing quest-side lives here.


Item Rolling

URemnantItemFactory::RollRemnantItem(Outer, Pool)

Static factory called server-side on event success. Pool is the realm's URemnantItemPoolDataAsset.

 Pick base manifest from Pool.BaseItems (random)
     │
 Copy manifest, run standard UItemGenerationLibrary::GenerateItemProperties
     (rolls prefix/suffix/implicit modifiers at item level — same as loot path)
     │
 Build FRemnantItemState:
     State = Sealed
     EchoMods: pick N unique defs from Pool.EchoModPool.ModifierDefinitions
               (N = Pool.EchoModSlotCount)
               Each wrapped in FEchoMod with Source=Echo, bIsRevealed=false
     ActiveDesire: pick 1 from Pool.DesirePool, Progress=0
     Era, PoolRef: stamped from the source pool
     │
 Item->AddStateModule<FRemnantItemState>(State)
     │
 Return UItemObject (caller drops it via ALootContainer)

Pool Data Asset

URemnantItemPoolDataAsset is a UPrimaryDataAsset registered under PrimaryAssetType "RemnantItemPool". Holds:

Field Purpose
Era Gameplay tag for the era this pool represents
BaseItems Soft references to UItemManifestDataAsset eligible for rolling
EchoModPool Separate UModifierPoolDataAsset (kept out of loot rolls — see below)
DesirePool Authored FDesire templates
EchoModSlotCount How many Echo Mods each roll gets (MVP: 2)
BurdenModPool Era-linked negative modifiers, registered as an auxiliary pool
BurdenSlotCount How many Burdens each roll carries (MVP: 1)

Era Registry

UEraRegistryDataAsset (single global asset, PrimaryAssetType "EraRegistry") maps each Era tag to its reward pool and realm levels. Realm event actors author only their Era tag and resolve the pool through the registry (ResolveItemPool); the explicit RewardPool override remains for hand-authored cases. Save-time validation cross-checks that each entry's pool is labeled with the same era, so a portal/pool era mismatch can't ship silently. A future Domain SourceEraTag (REC-2/REC-9) resolves through the same rows.

Where Era Lives — the Era → Item Chain

Era is a property of the realm that dropped the item, never of the item's manifest. This trips up designers looking for an "era" field in the Item Manager, so state the chain plainly:

ARemnantEventActor_HoldGround.Era        (authored per realm level, on the event actor inside it)
    │  ResolveRewardPool(): explicit RewardPool override wins, else...
    ▼
UEraRegistryDataAsset::ResolveItemPool(Era)
    │  FEraDefinition { EraTag, ItemPool, RealmLevels }
    ▼
URemnantItemPoolDataAsset  { Era, BaseItems[], EchoModPool, BurdenModPool, DesirePool }
    │  URemnantItemFactory::RollRemnantItem picks a base from BaseItems
    ▼
UItemObject  +  FRemnantItemState { State, EchoMods, Burdens, ActiveDesire, Era, PoolRef }
                                                                            ▲
                                              Era stamped here, on the rolled INSTANCE

Consequences worth internalizing:

  • FRemnantFragment on the manifest is a pure marker — no fields, and specifically no era. It only says "this base is eligible to become a Remnant". URemnantItemFactory skips any pool base that lacks it.
  • Two realms of different eras can roll the same base manifest into items whose FRemnantItemState.Era differs. The manifest cannot know which.
  • The portal carries no era. Its dead Era field was deleted in the world-validation pass; the realm's event actor owns it.
  • Answering "what era does this item belong to?" for a manifest is a reverse lookup: find every era whose pool lists the manifest in BaseItems. The Item Manager does exactly this and shows the result as a read-only Drops in era row on Remnant manifests (amber when no pool lists it — that base can never drop; amber when several do — the item's era depends on where it dropped).

Echo Mod Pool Registration

Echo Mods live in their own UModifierPoolDataAsset that is intentionally excluded from the global loot lookup. UModifierPoolManager keeps three parallel pool kinds:

Pool kind Contributes to FindModifierByID? Contributes to GetFilteredModifiers (loot rolls)?
LoadedPools (standard loot) ✅ ✅
DungeonPools ✅ ✅
RemnantEchoPools ✅ ❌

This means Echo Mods are resolvable by ID everywhere — tooltip rendering, modifier cache rebind on load, GE application — but cannot leak into ordinary loot rolls. Registration happens in UModifierSubsystem::LoadAndRegisterRemnantEchoPools at subsystem init by scanning PrimaryAssetType "RemnantItemPool".

Live Echo Mods

The pool ships with six Echo Mods, each a GrantedAbility proc backed by an ability base class (see Ability Classes):

Echo Mod Mechanic Ability base
echo_pressure_release Hits build pressure; nova burst at cap UPressureBuilderAbility
echo_static_charge Every 4th hit → small Electric AoE UPressureBuilderAbility (Event.StaticCharge.Released)
echo_hemorrhage_cascade Bleed stacks; burst all at 5 as Physical UStatusCascadeAbility
echo_ember_feedback When struck, 25% chance to Ignite attacker UOnDamagedAbility
echo_vital_surge Kills while ≤35% HP restore 10% MaxHealth (health-gated heal channel) UOnCreditAbility (HealEffectClass)
echo_blood_wager Blood Wager: a charged release pays a flat 8% of maximum health and lands 750% of it as flat Physical and 3 stance a percent paid; any stance break the wearer causes heals 16% of maximum health, whole under Famished UOnCreditAbility (GrantedEffectClasses → GE_BloodWager while granted; heal channel GE_BloodWager_BreakHeal on Event.Combat.PoiseBreakCredited, cue GameplayCue.BloodWager.BreakHeal). Design: Design/Abilities/BloodWager.ability.md. Fervor, which this row carried until 2026-11-11, is now the Killing Fervor Greed Blessing

Famished, the Feast Burden. burden_famished is "healing is weaker": an Increased roll of -30 to -25 on Stats.Combat.HealingReceivedMultiplier, always on while the Remnant is awake. Every heal that adds to Health through an effect is scaled where it executes (flask, kill heals, regeneration); Blood Wager's heal on a stance break carries Effect.Heal.Unscaled and passes whole. Old rolls of -10 to -20 (from when the row lowered health regeneration) stay valid and now mean 10 to 20% less healing. The row keeps its family tag Modifiers.Family.BurdenHealthRecoveryPercent.

UOnCreditAbility carries three independent channels: the health-gated heal (Vital Surge, Blood Wager at threshold 1.0), the unconditional OnKillEffectClasses applied on every credited kill or stance break the Blueprint triggers on (the Killing Fervor Blessing), and GrantedEffectClasses, held while granted (Blood Wager's price). The health threshold gates only the heal; it is not a heal-only base. See Ability Classes.


Desire Tracking & Awakening

URemnantTrackerComponent

Component on AEternalPlayer (player controller scope — matches inventory / compendium ownership). Lifetime spans the player's session; equipped items tick automatically.

 BeginPlay (server only):
     Subscribe to game-wide kill credit event

 HandleKillCredited(Victim):
     Compute kill facts once: bVictimIsBleeding, WearerHealthFraction
     For each UItemObject in equipment slots:
         if has FRemnantItemState and state == Sealed:
             if DoesKillSatisfyDesire(ActiveDesire.TaskTag, facts):
                 ActiveDesire.Progress += 1 (capped at Target)
                 MarkStateModulesDirty (forces replication)
                 if Progress >= Target: AwakenItem(Item)

 AwakenItem(Item):
     State = Awakened
     For each EchoMod:
         bIsRevealed = true
         bIsActive = true
     UEquipmentComponent::RefreshItemModifiers(Item)
         → equipment removes + re-runs apply loop for that item
         → Echo GEs now pass the source gate and spawn
     MarkStateModulesDirty

Found Remnants: the Fallen Bearer

A preset with bRemnantLeftByBearer does not start wearing its Sealed Remnant. The player finds it on a fallen earlier bearer, ARemnantBearerActor, placed in L_Room_Forest_Start on the ruins by the spawn. The world repeats, so someone always carried it first: they fed it most of the way, which is why it is found at the preset's progress (28/30 for Hungerpace).

The body glows (MI_Shimmer_Gold overlay, the gleam the Forge's metal sheet uses) and carries a "Search the body" prompt (URemnantSearchInteractableComponent), both only for a player whose Remnant still waits. The tracker's bWaitingToBeFound (replicated to the owner) answers that on every machine. Searching nudges the arm nearer the searcher on the searcher's machine: only that arm simulates, given a small lift toward the searcher (ArmLift, ArmPull), shown at ArmPhysicsShare (0.25) over the held pose, and put to sleep after ArmRestSeconds. The rest keeps its pose. The held death pose lies outside the physics asset's joint limits, so physics in full snaps it on the first frame: the whole body crumpled whatever the push, and a whole arm folded across the chest. The Remnant drops beside the body, and picking it up needs no hint of its own. M_WorldShimmer is flagged for skeletal meshes for this.

The search also plays SearchSound at the body (SW_Foley_Rummage_01, a placeholder mixed from Kenney's CC0 RPG Audio, on SCL_SFXWorld at about −28 for its loudest 400 ms; source in AudioSource/SFX/Foley/), and turns up the note the bearer left: a paper on the ground by the body's other hand (the Note component, MI_Note_Paper on a plane, placed in the editor where it will lie and hidden in play). It shows once the player has taken their Remnant, not at the search: the Remnant, its nameplate and the note gleaming together were too much at once. The tracker replicates bRemnantLying to the owner beside bWaitingToBeFound for this. The note gleams with the same overlay until it is read. A "Read" prompt (URemnantNoteInteractableComponent, offered only to a player the note shows for) opens it (NoteTitle / NoteBody on the actor, shown through UModalController::ShowNote); it can be read again. The note used to open by itself two seconds after the search, and players who had already picked up the Remnant lost its first desire line on the tracker behind it. The note says the Remnant was the bearer's own, so a player does not take searching the dead for the way Remnants are found. It is a strip of cloth, not paper: "Greed is a poisonous sin. Do not tread further. There is no well. Only lies and false hope." The piece on the ground is still MI_Note_Paper. It does not open over another modal (the death screen, the co-op return message).

 Load (server, UPersistenceComponent::RestoreLeavingFoundRemnant):
     FPresetBuildDerive::TakeSealedRemnant(Payload, Showcase.AnchorSlotTag)
         → the anchor slot's Sealed Remnant, else the first equipped Sealed one; an awakened one stays worn
     restore the rest; RestoreLooseItem(the Remnant) → URemnantTrackerComponent::HoldRemnantToBeFound

 Search (server, the bearer's OnInteracted; CanInteract = the player's tracker IsWaitingToBeFound):
     LayHeldRemnant at the next RemnantSpots entry
         → ground pickup in the bearer's level, AItemActor::SetExclusiveTo(player)
     the searcher's machine (OnInteractedLocally): MoveArmToward(searcher), glow off

 Pickup (AEternalPlayer::TryAddItem): bag, then WearFoundRemnant → Server_EquipItem into its slot
     (an occupant goes to the bag)

 Possession, or a finished node transition (UTransitionStateManager::OnTransitionComplete), with no bearer in the
 world (a guest joining elsewhere, another start node, a player who left the start without lifting it):
     HandlePossessed wears the held Remnant as the payload had it

Co-op. Each player searches the one bearer for their own Remnant; the moved arm is only seen by the searcher, so a partner still sees the body as it lay, glowing until they search it. SetExclusiveTo sets the owner and bOnlyRelevantToOwner, so it replicates to that player's machine alone; a listen host that is not the finder hides it locally (primitive visibility, collapsed nameplate, pickup sphere off) and TryAddItem refuses a withheld item. Actor and replicated-component visibility are not used for this because they would replicate to the finder.

Death reload. The pickup lives in the bearer's level, so a node reload takes it away; the Remnant is still held, and the bearer that streams back in refreshes every tracker's waiting state, so it glows and can be searched again.

PickUpNearestItem [NameFilter] (cheat) stands in for the walk-and-interact in agent tests.

How a Remnant Shows Itself

Every cue uses the Remnant's era colour from DA_EraDisplay (Forge #b86b3a, Verdant #82963c, Feast #993859), never gold: a Remnant is what an era left behind, and it still wants what that era wanted. Cues sit where a player in a fight looks (the body, the tracker row, the banner); menus repeat them but never carry them alone.

Moment What the player sees Where it lives
Meeting it (pickup) The tracker row slides in once with one line for 4 s: "Something sealed in your {slot} stirs" and the Desire in plain words URemnantDesireTrackerController::AnnounceMeeting, UObjectiveTrackerRowWidget
Feeding On the tracker row only: the bar flashes for 1 s, the icon swells once and a "+1" rises beside the count (a step while it shows counts on: "+2"). Nothing on the body (a thread from the enemy looked out of place, a small flare at the slot went unseen) and no text UObjectiveTrackerRowWidget
Near waking (last fifth) The step's sound is a heartbeat instead of the tick bNearComplete on the row VM
Awakening A beat after the act that woke it (AwakeningLeadInSeconds, 0.15 s; after a stance break AwakeningAfterBreakLeadInSeconds, 0.25 s, so the SUNDER's shatter and hit stop land first and the Echo that just acted is not captioned on that break), solo enemies slow to 30% for 0.3 s and a rumble answers; nothing is drawn on the body; the banner 0.6 s later, read one piece at a time: the band dragged in alone like a dry brush (1.1 s), then the icon, the name, and each Echo and Burden line inking in on its own, in two columns (category, then name) Client_NotifyRemnantAwakened, ShowRemnantAwakenedBanner, M_UI_DryBrushReveal
Echo acting Its name in a small serif caption beside the character, warmed by the era, every time an awakened Remnant's Echo ability activates. It hangs off the character, not the slot, so a swing does not shake it (owner, 2026-11-06: the slot rings and the 3-a-session limit were cut) URemnantTrackerComponent::HandleAbilityActivated, Client_NotifyEchoFired, URemnantFeedOverlayWidget::AddCaption
On the ground An eclipse: the ordinary loot plate with the same layout and text, its painted frame darkened nearly to black, a thin line of the era's light along its square edge and a corona flaring off it. Light leaves the edge outward and cools as it goes; how strongly each part of the edge emits changes slowly in place, so flares swell and fade round the plate without panning. One look for every Remnant, in its era's colour, with a slight era cast on the name. It marks an item type, not a rarity UItemDropWidget::RefreshEra, M_UI_RemnantPlate, Shaders/RemnantPlateEffect.ush
Awake, everywhere its icon shows The icon draws through its era's effect in the bag, equipment slot, tooltip and Awakening banner; the equipment slot also keeps the square era backdrop. A sealed Remnant shows its plain icon. The tooltip header names the state: "Sealed" in a muted ink, "Awakened" in the era colour FRemnantIconLook, UItemWidget, UItemTooltipWidget, UEventBannerWidget

The banner can name the input. The Awakening banner shows short names, not rolled effect text; the tooltip carries the numbers. A power the player must act to use can say how. FModifierDefinition::AwakeningHint (awakeningHint in the modifier JSON) holds a few words, for example "hold heavy". GetAwakeningLine() returns the modifier's name, with the hint after a colon when one is set: "Blood Wager: hold heavy". With no hint it returns the name alone ("Famished"). URemnantTrackerComponent builds every Echo and Burden line of the banner through it, on the server, because the RPC can land before the item's state replicates. Leave the hint empty for a power that needs no telling. Pinned by ProjectEternal.Unit.Remnant.AwakeningLine.

Icon effect. One UI material, M_UI_RemnantIcon, with an instance per era (MI_UI_RemnantIcon_*, set as FEraDisplayInfo::IconEffect). In the bag and the equipment slot the image covers the item's whole cell, not just the icon, and the item is fitted inside it at 84% of its tighter side (IconFill), so its light has room on every side and fades out with rounded corners before the cell's edge instead of stopping at the icon's own rectangle. In an equipment slot that cell-sized image sits centred in the slot frame. The material's Frame parameter places the icon (its extent across the image, the icon's and the image's width over height); the tooltip and the Awakening banner pass their own image as the frame. Shaders/RemnantIconEffect.ush builds the era's effect from the icon's own silhouette: Forge, the item as the body of a sun with a corona streaming off its edge in lobes and fine rays; Verdant, green-gold light rising gently off it; Feast, a steady crimson rim with drops that gather on its lowest edges and fall. It blends as AlphaComposite: the item covers what is behind it and the light is added. Added light shows in full on a dark ground and barely on a pale one, so each era's instance scales it (Glow: Forge 0.55, Verdant and Feast 0.6) and its hot parts ease toward a ceiling instead of clipping into flat patches. Only an awakened Remnant uses it; there is no gradual build-up while sealed. On the HUD (Motion 0) it holds as a still frame.

Baked flipbooks. Moving light that wraps an item reads far richer simulated than worked out live, so Forge and Verdant icons carry a flipbook baked around that icon's own silhouette by Tools/FlipbookForge (README there): DA_EraDisplay.IconFlipbooks maps an icon to its bake, FRemnantIconLook sets it on the material ("Flipbook", "HasFlipbook"), and the shader colours it per era and draws it behind the item, so the item's edge stays crisp, with a soft glow wrapping onto it beside the brightest light. Every icon bake shares one layout the shader expects: the icon at 0.704 of the bake's canvas (the material's Inset), 96 frames in an 8 x 12 grid at 15 fps, heat alone in one channel (BC4, about 2.6 MB an icon) stored as its square root. The flipbooks are soft references, loaded the first time their icon draws. Its patterns repeat over the 6.4 s loop, so the loop point never shows. An icon without a bake falls back to the live effect. Baked today: the Welder's Visor (Forge) and the Barbed Wreath (Verdant). Feast needs none.

Era backdrop. M_UI_EraBackdrop (MI_UI_EraBackdrop_*, FEraDisplayInfo::IconBackdrop) is the square behind an awakened Remnant in its equipment slot, and nowhere else. It stays square: in a slot frame that is taller than wide it sits centred at the frame's shorter side instead of stretching (UItemWidget::FitBackdropToLayout).

Not shown on purpose: world-map cues, tally scratches, text per counted act, a "fired N times" counter, a seal mark on awakened items (it read as "sealed"), any effect on a sealed Remnant, moss or other changes to the item itself, cues that live only in the inventory, and any always-on glow on the character.

FeedRemnant [Count] (cheat) credits the nearest enemy with the act an equipped Remnant's Desire wants, for agent tests.

Kill Attribution & Desire Routing

Kills credited through the GAS damage pipeline broadcast Event.Combat.KillCredited to every contributor's pawn. The tracker computes per-kill facts once (victim bleeding? wearer health fraction?) and tests each equipped sealed Remnant's Desire via DoesKillSatisfyDesire(TaskTag, bVictimIsBleeding, WearerHealthFraction):

FDesire.TaskTag Counts the kill when
Desire.Kill.Any (or empty) Always (back-compat fallback)
Unknown tag Always, but logs an error once per tag (authoring drift must not be silent)
Desire.Kill.Bleeding Victim was Bleeding
Desire.Kill.LowHealth Wearer was below 50% Health (LowHealthDesireThreshold)

bVictimIsBleeding reads the victim ASC's at-death status snapshot (GetStatusTagsAtDeath()), with the live tag only as a fallback: the ailment GEs author State.Dead as a removal requirement, so the live Bleed is already stripped by the time credit fires.

Environmental / hazard kills that bypass GAS (world damage volumes, fall damage) do not credit. Attribution through those paths is deferred — would require a world-damage → GAS bridge or a parallel credit event.


Echo Mod Reveal Gate

Echo Mods are standard FRolledModifier structs with Source = ECraftingModifierSource::Echo. They're stored inside FRemnantItemState::EchoMods (each wrapped in an FEchoMod adding bIsRevealed and bIsActive flags), not in the item's FEquipmentFragment::Modifiers array.

Apply-Time Gate

The equipment apply loop — the same one that handles implicit / prefix / suffix / scaling mods on every equipped item — runs a ShouldApply(Item, Mod) check before spawning a GE:

Modifier Source Gate
Drop (standard loot roll) Always true
Crafted (crafting station output) Always true
Echo (Remnant) True iff FEchoMod::bIsActive on the owning item's state module

Sealed Remnants equip normally; only their prefix/suffix/implicit mods apply. On awaken, bIsActive flips and UEquipmentComponent::RefreshItemModifiers(Item) re-runs the apply loop for that item, spawning Echo GEs as regular equipment-owned handles. No dual-ownership — equipment is the sole GE handle owner for all modifier sources.

Tooltip Reveal Gate

FModifierDefinition::FormatDescription(Value, bRevealValue) returns a placeholder (???) when bRevealValue = false. The tooltip ViewModel reads per-Echo-Mod bIsRevealed from the state module and passes it to the formatter. Non-Echo mods always reveal.

Desire line (Kill any enemy X / Y) renders on the tooltip while the item is Sealed, suppressed after awaken.


Replication Strategy

What Replicates

Property Where Replication
UItemObject::StateModules UItemObject ReplicatedUsing=OnRep_StateModules, broadcasts OnItemStateModulesChanged
Event ProgressSeconds, bActive, bIsClosing, ClosingSecondsRemaining ARemnantEventActor_HoldGround UPROPERTY(Replicated) — clients read for widget state
Wave ElapsedSeconds, NextWaveIndex, bActive ARemnantWaveSpawner UPROPERTY(Replicated) — clients use for UI countdowns

Sub-Struct Mutation Gotcha

TArray<TInstancedStruct<>> property mutations inside a contained struct (e.g. flipping FEchoMod::bIsRevealed) don't flag the parent array dirty automatically. Server callers mutate via GetStateModuleMutable<T>() and then call UItemObject::MarkStateModulesDirty() to force a net update. Listen-server host also broadcasts OnItemStateModulesChanged locally since it won't receive its own OnRep.

Client-Side Reaction

Tooltip ViewModels, equipment UI, and any other consumer of Remnant state subscribe to UItemObject::OnItemStateModulesChanged. On fire, they re-snapshot from the state module — no property-by-property change callbacks.

Multiplayer Scope

MVP is solo. All code paths are server-authoritative (so coop-safe in principle), but the edge cases (partial-death event exit policy, per-player leash radius, shared entry transforms for party entry) are deferred until coop rules are locked.


Public Contracts

URemnantRealmSubsystem (WorldSubsystem)

Method Parameters Purpose
EnterRealm (Player, EntryTransform, RealmLevel, SpawnLocation) Begin a realm run. Server-only.
ExitRealm (Player, bSuccess) End a realm run, teleport player back. Server-only.
IsPlayerInRealm (Player) Query whether a player is currently inside a realm.
GetActiveRealmLevel — Returns the streamed ULevel* while a realm is active, else nullptr. Used by GameState so items dropped during a realm run are owned by the realm level.

ARemnantPortalActor

Property Purpose
Era Gameplay tag passed through to the rolled item
RealmLevel Soft reference to the sub-level streamed on interact
RealmSpawnLocation Landing point inside the realm

ARemnantEventActor_HoldGround

Property Purpose
LeashRadius In-radius threshold for progress tick
ProgressTargetSeconds Event completion time
WaveSpawner Placed spawner reference
RewardPool Pool used for RollRemnantItem on success
ClosingDurationSeconds Time the realm stays open after reward drop

URemnantTrackerComponent

Lifecycle-driven — subscribes to kill events in BeginPlay, ticks equipped items internally. One pure helper is public/static for unit testing:

Member Purpose
DoesKillSatisfyDesire(TaskTag, bVictimIsBleeding, WearerHealthFraction) Static. Routes a kill to a Desire's TaskTag (Any / Bleeding / LowHealth)
LowHealthDesireThreshold Constant 0.5f — wearer health fraction for Desire.Kill.LowHealth

URemnantItemFactory

Method Parameters Purpose
RollRemnantItem (Outer, Pool) Static. Rolls a full Sealed Remnant with Echo Mods + Desire.

Data Types

Struct / Enum Purpose
ERemnantState Sealed / Awakened
FEchoMod Rolled modifier + bIsRevealed + bIsActive gates
FDesire TaskTag, Progress, Target, DescriptionTemplate
FRemnantItemState ERemnantState, EchoMods, ActiveDesire, Era, PoolRef — attached as state module
FRemnantFragment Empty marker fragment in item manifest
URemnantItemPoolDataAsset Primary data asset: base items, Echo Mod pool, Desire pool

Source References

Component Location
URemnantRealmSubsystem Public/Remnant/Subsystems/RemnantRealmSubsystem.h
URemnantTrackerComponent Public/Remnant/Components/RemnantTrackerComponent.h
URemnantItemFactory Public/Remnant/Factory/RemnantItemFactory.h
ARemnantPortalActor Public/Remnant/Actors/RemnantPortalActor.h
ARemnantEventActor_HoldGround Public/Remnant/Actors/RemnantEventActor_HoldGround.h
ARemnantWaveSpawner Public/Remnant/Actors/RemnantWaveSpawner.h
ARemnantBearerActor Public/Remnant/Actors/RemnantBearerActor.h
URemnantFeedOverlayWidget Public/UI/Widgets/HUD/RemnantFeedOverlayWidget.h
FRemnantIconLook Public/UI/Widgets/Items/RemnantIconLook.h, shader Shaders/RemnantIconEffect.ush
Era backdrop and plate materials Content/MaterialLibrary/UI/M_UI_EraBackdrop, MI_UI_EraBackdrop_*, M_UI_RemnantPlate
FRemnantFragment Public/Remnant/Fragments/RemnantFragment.h
FRemnantItemState, FEchoMod, FDesire Public/Remnant/Types/RemnantTypes.h
URemnantItemPoolDataAsset Public/Remnant/Data/RemnantItemPoolDataAsset.h
Echo pool registration Private/Inventory/SubSystems/ModifierSubsystem.cpp → LoadAndRegisterRemnantEchoPools
Echo pool storage Public/Inventory/Modifiers/ModifierPoolManager.h → RemnantEchoPools
Sublevel tracking for spawn routing Public/GameMode/Components/TransitionStateManager.h → NotifyDynamicSublevelLoaded() / GetActiveDynamicSublevel()
InWorldTeleport PlayerStart resolution Private/GameMode/Components/PlayerSpawnManager.cpp
Log category Public/Remnant/RemnantLog.h


Recent Changes

Date Change Impact
2026-11-11 Sunder split across the build Hungerpace's Echo becomes echo_blood_wager (a flat price on charged releases, a whole heal on any stance break); Fervor moves to a Greed Blessing on the weapon; the blood debt is gone
2026-11-11 Killing Fervor v3 and Famished as weaker healing The Feast Echo runs on stance breaks (gain, debt, repay; a stagger costs two, the wearer's break all; Fervor survives death); burden_famished targets Healing Received; the Awakening after a break waits 0.25 s for the SUNDER
2026-11-09 No lighting restore as the world tears down Leaving a run from inside the realm no longer restores lighting into the dying world; that stuck every later run unlit (regression from the lighting sublevel guard, f5d927177)
2026-11-09 The bearer's note is cloth Its copy is written ("Greed is a poisonous sin…"), titled "A strip of cloth" and read with "Read"; the note opens on T_UI_Panel_ClothNote
2026-11-06 Awakening lights the bag's dot Every Awakening marks the worn Remnant unseen (UInventoryController::MarkUnseen), so the menu strip's new-item dot shows until the inventory is opened
2026-11-06 Bearer fixes from review The note waits behind an open modal (it used to replace the death screen and strand a solo player); a Remnant left lying when the player leaves the start node is worn where they arrive
2026-11-06 Search the fallen bearer The Remnant is no longer laid at load: the body glows and says "Search the body"; searching nudges its nearer arm, rummages, drops the Remnant and opens the note the bearer left
2026-11-06 The bearer's note lies on the ground Once the Remnant is taken from the searched body, a gleaming note shows by its other hand, read when the player chooses ("Read the note"), instead of opening by itself over the Remnant's first tracker line
2026-11-06 First-time hints for a Remnant (test) Once per character: "Remnant equipped. View in Inventory" over the inventory button; "Sealed. Fulfill its Desire to unlock powers" beside the worn item; "Desire advanced" beside the tracker row on the first feed; on Awakening, "Remnant awakened" and "Powers unlocked. Hover to view". Copy in FRemnantFirstTimeHints
2026-11-06 Echo acting: caption only, every time The flare rings at the slot are gone; the caption beside the character is the only cue, shown on every Echo
2026-11-05 How a Remnant shows itself Tracker row meeting line, feed thread and slot flare, the Awakening on the body then the dry-brush banner with Echo and Burden in columns, era icon backdrops, the Remnant ground plate, Echo-fired flare and caption, "Sealed"/"Awakened" tooltip header
2026-11-05 Found Remnants: the fallen bearer Presets with bRemnantLeftByBearer (the three demo presets) leave their Sealed Remnant beside ARemnantBearerActor in the Ashwood start room; owner-only pickup that equips itself
2026-08-20 Kill credit reads the at-death status snapshot; realm respawn; boss event actor documented GetStatusTagsAtDeath() for Bleeding desires; FindRealmPlayerStart() keeps mid-realm deaths in the realm; ARemnantBossEventActor finale flow; awaken banner lists one Echo Mod: {Name} line per revealed mod
2026-08-14 Era.Feast (3rd era) + Hungerpace gauntlets RemnantItems_Feast (base hungerpace_gauntlets, echo echo_killing_fervor moved from the parked EchoModifierPool into MP_Echoes_Feast, burden burden_famished = -10..-20% Health Recovery in MP_Burdens_Feast, desire Desire.Break.Poise 30); registry row + FEAST era badge; Preset_Momentum anchor moved Head → Hands (sealed Hungerpace 28/30, plain knight_helmet in Head)
2026-08-06 Procedural portals + realm-owned lighting Portals arrive as chance-injected Room.RemnantRealm dungeon rooms (Forest ships RD_Forest_Remnant / L_Room_Forest_Remnant / LS_Factory); ARemnantPortalActor::RealmLighting swaps the world's lighting sublevel behind the transition fade, cached as PreRealmLighting and restored on exit and on disconnect cleanup. RealmSpawnLocation documented as a world offset — zero uses the subsystem's reserved offset, so procedural portals need no authored position. Dead Era property row removed
2026-07-08 Era → item chain documented; era provenance surfaced in the Item Manager Era belongs to the realm's reward pool, never to the manifest. A Remnant manifest's details panel now shows a read-only Drops in era row derived by reverse lookup through DA_EraRegistry, and flags bases no pool lists
2026-07-07 Killing Fervor Echo Mod (6th live mod) echo_killing_fervor → GA_KillingFervor, a UOnKillAbility using the new unconditional OnKillEffectClasses channel (stacking GE_KillingFervor_Power + GE_KillingFervor_Drain); the base class's health threshold now gates only the heal channel, not the whole ability
2026-06-11 Echo pool filled (5 live mods) + Desire TaskTag routing Pressure / Static Charge / Hemorrhage Cascade / Ember Feedback / Vital Surge Echo Mods backed by new proc ability bases; DoesKillSatisfyDesire routes kills to Desire.Kill.Any/Bleeding/LowHealth; new Event.Combat.KillCredited / DamageReceived events
2026-04 Remnant persistence via state module wrapper FRemnantItemState round-trips through save/load; equipped awakened Remnants survive relog
2026-04 Echo pool registered with UModifierPoolManager (3rd pool kind) Echo Mod IDs resolve everywhere via FindModifierByID; sealed from loot rolls
2026-04 Era + PoolRef moved from FRemnantFragment to FRemnantItemState Fragment is now a pure marker; origin identity persists with the instance
2026-04 Realm teleport routed through UTransitionStateManager::InWorldTeleport Unified freeze/fade/client-ready with hub/dungeon transitions; coop-ready machinery
2026-04-24 InWorldTeleport spawns routed to the streamed realm sub-level Realm PlayerStart resolves from the loaded sub-level exclusively (no hub fallback); fixes wrong-spawn from non-test boot paths and surfaces missing realm PlayerStarts as a loud authoring error
2026-04-21 Initial MVP Portal → realm → Hold-the-Ground → sealed item → equip → auto-awaken loop