Spawn & Transition Ordering¶
Summary: Player spawning is gated behind level streaming.
UTransitionStateManager(on the replicated GameState) runs a phased transition and holds the loading screen until every player actually has a pawn;UPlayerSpawnManager(on the GameMode) queues spawns while levels stream and refuses to spawn into an empty world. The two coordinate through theOnReadyToSpawndelegate and a placement poll so the screen never drops onto an unpossessed camera. Each machine then lifts its own loading screen on its own clock: a minimum dwell for a screen with text, warm-up frames, a wall-clock fade, and a hand-off from the hard-load screen with no cut. Coming back from death in a world-map node is a transition too: the node reloads, or the party respawns behind a leg that loads nothing. A separate ordering hazard — possession running before provider init — is handled by a two-sided latch for ability-kit grants.
Table of Contents¶
- Why This Architecture
- Transition Lifecycle
- The Spawn Window
- Loading-Screen Settle-Hold
- The Loading Screen
- Stale-Node Discard
- The World-Map Gate
- Honest Spawn Refusal
- Possession-vs-Init Ordering
- Joining a Session Under Way
- Death Respawn
- Symptoms and Causes
- Source References
- Related Systems
- Recent Changes
Why This Architecture¶
A player pawn must never appear before the level it stands on. In a streaming world the destination level arrives asynchronously, after the engine's normal spawn point in the login flow. If the engine spawns a default pawn on schedule, the player falls through an empty persistent map — a black void — until something rescues them. Every piece below exists to keep the pawn, the camera, and the level in lockstep across all clients.
Ownership¶
| Concern | Owner | Why |
|---|---|---|
| Transition phase, freeze/unfreeze, when the screen may end | UTransitionStateManager on AEternalGameState |
Replicated; drives all clients via reliable multicasts |
| The loading screen on each machine (content, dwell, fade, hard-load hand-off) | UTransitionController (UI subsystem) with FTransitionScreenTimeline |
Presentation is local: each machine resolves its own screen and lifts it on its own clock |
| Spawn queuing, spawn-point resolution, pawn creation | UPlayerSpawnManager on AEternalGameMode |
Server-only; the GameMode owns restart |
| Coming back from death | AEternalGameMode::HandleDefeat, from AEternalPlayer::Server_RestartLevel |
Decides between a node reload, a respawn leg, a respawn beside a standing partner and an in-place respawn; the first two run through the transition flow |
| Where a player comes back (room entrance) | UDungeonSubsystem records it; UPlayerSpawnManager spawns there |
Recorded where room crossings are tracked; spawned where spawns are owned |
| Travel decision (which node, when) | AEternalGameMode |
Coordinates persistence load with world-map travel |
The state manager lives on the GameState because transition state must replicate to every client. The
spawn manager lives on the GameMode because only the server spawns and the GameMode owns the restart
path. RestartPlayerAtPlayerStart is the initial/queued spawn path only — it lives inside
UPlayerSpawnManager::SpawnPlayerPawn. A death respawn in a world-map node comes back through the
transition's spawn pass (at a room entrance through RestartPlayerAtTransform); a respawn in place
uses RestartPlayer; a respawn beside a standing partner spawns at once through QueueSpawnRequest, which reads the
room entrance too. See Death Respawn.
Transition Lifecycle¶
StartTransition freezes characters, shows the screen, and walks a set of phases. Phases are server-only
state (CurrentPhase); clients never see them — they react to multicasts and replicated flags instead.
ETransitionPhase (server-only)
None
| StartTransition()
v
Freezing Multicast_FreezeCharacters + Multicast_ShowTransition
|
v
Loading level/environment streaming; InWorldTeleport fires
| OnRequestDynamicSublevelLoad for feature subsystems
v
WaitingForClients each client reports ready via Server_ReportTransitionReady
| -> OnClientReady; when all ready -> CompleteTransition()
| (the server's own load done opens the clients' window; a backstop runs from the start)
v
Completing <-- THE SPAWN WINDOW (see below)
| OnReadyToSpawn.Broadcast(); hold screen until placed
v
None OnTransitionComplete + Multicast_EndTransition(HideDelayAfterReady)
(unfreeze; each machine's screen starts to end, see The Loading Screen)
Freezing happens on every machine: GravityScale does not replicate, so each client zeroes it
locally or the frozen pawn falls. Input is disabled only where the pawn is locally controlled.
A new travel arriving mid-transition supersedes the in-flight one — client tracking resets but the screen stays up, so the player never sees a flicker between two destinations. World-map travel, the node reload and sub-dungeon entry refuse while a leg runs, and a defeat waits for the running leg to end, so none of them supersedes a leg half way. The Remnant portal's realm entry still starts a leg without that check.
A leg that streams nothing on any machine (FTransitionRequest::bNoClientLoad, or a return teleport)
has no "level shown" moment to report from: StartTransition multicasts
Multicast_ReportReadyWithoutLoad and reports the server's own ready at once, so the leg completes as
soon as each client's answer arrives (in the same call when no other machine is connected) and never waits
out the readiness timeout.
When a leg stops waiting¶
Two timers, both in world time on the server:
- The clients' window,
ClientReadinessTimeout(10 s), opens when the server's own load for the leg is done (ReportLocalReadyon the server: its dungeon rooms, fixed level or realm shown, and its side loads such as lighting). Every leg's destination reaches the clients before or while the server loads its own copy (a fixed level's multicast, a dungeon's replicated room list, a realm's replicated path), so from there a client still loading is measured on its own. A second report from the server does not move the window. - The backstop,
ReadinessBackstop(30 s), runs fromStartTransition. It ends a leg whose server load never reports, and it caps the clients' window when the server's load ran long.
A leg that ends on either timer is counted (GetReadinessTimeoutCount), logs which one fired, and still runs the spawn
pass and the settle hold. A ready that lands after that end (the server's or a client's) starts no second spawn pass.
The readiness log (LogTransitionState) gives each machine's ready in world and wall seconds from the start.
Two things keep a leg from waiting on a ready that cannot come. A player who leaves during the leg is let go
(HandlePlayerLeft, from AEternalGameMode::Logout), and the leg ends if everyone left has reported; a player who joined
during the leg was never waited for. A load that fails on any machine (a node with no level or dungeon config, a fixed
level or realm whose stream cannot be created) still reports, so the leg ends on the clients' window, not the backstop.
The window used to run from StartTransition. A co-op node reload unloads and loads every room on the server first,
and only then can the clients finish theirs, so the server's own 6–11 s of reload ate the clients' 10 s: on a loaded
PIE machine the dedicated co-op test ended the reload on the timeout about one run in three, with a client a frame or two
from ready. Counting from the server's ready measures a silent client, not the server's load.
The Spawn Window¶
Spawning happens in the Completing phase, not before. CompleteTransition broadcasts
OnReadyToSpawn while characters are still frozen, so pawns are placed before anyone can move.
The subtlety: ready callbacks that normally trigger spawns (dungeon ready, fixed-level streaming
complete) fire during Completing because dungeon rooms can stream after client readiness. Those
callbacks must process spawns during Completing rather than deferring to an OnReadyToSpawn broadcast
that has already happened. So IsTransitionInProgress() deliberately treats Completing as spawnable:
// UPlayerSpawnManager::IsTransitionInProgress
return TSM->IsTransitioning() && TSM->GetTransitionPhase() != ETransitionPhase::Completing;
Everywhere else in the transition, QueueSpawnRequest queues instead of spawning immediately —
OnReadyToSpawn owns the actual spawn. Only in Completing does a late-arriving ready callback get to
run a spawn directly.
Loading-Screen Settle-Hold¶
Client readiness only proves that levels streamed, not that pawns exist. A refused restart
re-queues on the next ready callback; dungeon rooms stream after readiness. Dropping the screen here
shows the void with the camera still unpossessed. So CompleteTransition does not end the transition —
it starts a poll:
CompleteTransition()
OnReadyToSpawn.Broadcast() // spawn attempt (frozen pawns)
SpawnSettleDeadline = now + SpawnSettleTimeout
TryFinishTransition()
|
+-- ArePlayersPlaced()? ---- YES ---> finish: OnTransitionComplete + unfreeze + hide
| (no pending spawns AND every PC has a pawn)
|
NO
|
+-- IsLoadInFlight()? ---- YES ---> push deadline forward (a slow load is progress)
|
+-- now < deadline? ---- YES ---> re-poll in 0.25s (SpawnSettleTimerHandle)
|
NO (deadline passed, nothing loading)
|
v
finish anyway, logging an unplaced-player warning
ArePlayersPlaced() is the exit condition: no pending spawn requests and every player controller
has a pawn. IsLoadInFlight() (world-map streaming in progress, or an active dungeon whose rooms are
not ready) keeps extending the deadline so a cold-editor stream that takes minutes is not mistaken for
a wedge. SpawnSettleTimeout (EditDefaultsOnly, default 15s) bounds only the genuinely wedged case:
nothing loading, players still unplaced. The poll itself only observes placement — spawning stays
owned by the ready callbacks and the spawn manager's retry timer.
The Loading Screen¶
The transition decides when the destination is ready; each machine's screen decides when to stop covering it. The two are kept apart on purpose: everything below is presentation on one machine and never touches readiness, so a slow screen cannot hold a leg open and a fast leg cannot cut a screen short. A dedicated server has no screen and ends legs at readiness, as always.
One screen, resolved on each machine¶
There is one loading screen for every load. SEternalLoadingScreen paints it: on the movie player's loading thread during
a hard load, and hosted by UWorldMapLoadingScreen during an in-world transition. UTransitionController puts it up at
full opacity from its first frame and stops the world rendering under it (FOpaqueScreenWorldRenderHold), because it
covers every pixel.
The display data carries no text or textures. It names the destination (TargetNodeID) and whether the travel enters
its domain from outside (bDomainEntry), and each machine resolves the painting, eyebrow, title, passage and mist from
its own copy of the map (UTransitionController::ResolveDestinationScreen → FWorldMapLoadingContent::Resolve; the
rules are in World Map System). A client that
shows a transition before the session's map has reached it resolves the screen when it arrives. A transition that names no
node (a Remnant realm leg, a late-join hold) shows the neutral screen: ground, vignette and the mark.
The timeline¶
FTransitionScreenTimeline is the screen's state machine, pure and driven once per frame from the core ticker on the wall
clock (FPlatformTime):
Hidden ──Show──▶ Covering ──RequestEnd──▶ Ending ──dwell, warm-up, hold, player all done──▶ FadingOut ──▶ Hidden
(opaque, (opaque, world renders (alpha follows
world held) again under it) the wall clock)
▲ │ │
└──── a new transition puts the screen back at full opacity ◀─────────────────┘
- One show per transition.
UTransitionStateManager::StartTransitionnames each transition (TransitionID, the next number). A client hears of one transition from its start multicast and again from the replicated state kept for late joiners (OnRep_TransitionActive); the second show is aDuplicateand changes nothing. A screen a machine puts up on its own (after a hard load) has ID 0 and is never taken for a duplicate. - The end, either way round.
Multicast_EndTransitionhands the server'sHideDelayAfterReady(1.0 s onBP_GameState) toHideTransitionAfteras the end's hold;OnRep_TransitionActive(false)callsHideTransition. A guest's screen ends through the same warm-up, dwell and fade as the host's whichever arrives first, and a second end only keeps the later hold. - What the end waits for. On the end the world renders again under the still opaque screen, and the fade starts once all of these are over:
Eternal.UI.LoadingScreenWarmupFrames(20) frames, which keep the costly first frames over newly streamed rooms (shadow pages, distance fields, the GI surface cache) out of sight;- the minimum dwell,
Eternal.UI.LoadingMinDwell(3.5 s) counted from when the screen went up, for a screen with text only (MinDwellFor), so the passage can be read. A destination ready sooner waits for it; one ready later fades without adding it; - the end's own hold;
- the local player's new pawn, while they are dead with a respawn under way (
FTransitionScreenTimeline::SetPlayerHeld), for at mostPlayerHoldLimitSeconds(10 s) after the end. - A wall-clock fade. Alpha is
1 − (now − fade start) / FadeOutDuration(0.5 s), so a hitch shows the alpha of its own time instead of stretching the fade. - A transition during a fade or a dwell puts the screen back at full opacity and waits for its own end. Showing the
same picture is
Continued(the dwell keeps counting, and mist and mark carry on without a restart); showing something else isRestarted(the dwell starts again). - No blind walking. The leg unfreezes characters at its end, but the screen can stay up for the rest of its dwell, so
AEternalPlayer::IsMovementBlockedis true while the local screen covers the view (IsCoveringView). The leg's own end contract (characters movable, input enabled) is unchanged.
Eternal.WorldMap.FrameTrace records ScreenAlpha, ScreenAlphaAt and ScreenPhase each frame, to check a fade against
the clock.
Respawn-only legs and readiness¶
A leg that streams nothing on any machine (FTransitionRequest::bNoClientLoad: a respawn where the node stands, a return
teleport) reports ready through Multicast_ReportReadyWithoutLoad (see Transition Lifecycle), so it
ends as soon as the clients answer; each screen still holds for its dwell and fades by itself. The server's ready comes
inside StartTransition there (for a return teleport that brings lighting back, once the server's lighting is shown), so
the clients' window opens then and a silent client still times out after ClientReadinessTimeout. Every other leg
opens the window when the server's own load is done (see When a leg stops waiting).
The hard-load hand-off¶
Menu → game, game → menu and a guest's join are hard loads (OpenLevel); node travel never is. Before a menu → game load
the front end's landing step resolves the landing node's screen and passes it to UEternalGameInstance::SetNextHardLoadScreen;
the other hard loads show the neutral screen.
SetNextHardLoadScreen(content) front end, before OpenLevel
PreLoadMap ─▶ BeginLoadingScreen record the content and the load's start time
movie player paints SEternalLoadingScreen on its loading thread (mist on real time, the mark turning)
PostLoadMapWithWorld ─▶ EndLoadingScreen ─▶ HandOffHardLoadScreen
UTransitionController::ShowAfterHardLoad(content, load start)
the in-world screen is up with the same content, world held, before the first presented frame;
its dwell counts from the hard load's start (the passage was readable during the load)
first StartTransition for the landing node
resolves the same content ─▶ Continued: the screen carries on, nothing is prepared again
If no transition takes the screen over within 15 s it ends itself; a neutral hard load force-hides any screen the previous
world left up. What remains is a freeze of about 90 ms between the movie's last frame and the game's first presented frame
(LoadMap's tail and the first tick), with the same screen before and after it.
Stale-Node Discard¶
On a relaunch (a saved character, or a read-only preset) the world-map node in GameInstance state is
stale until persistence restores it. But possession happens first, and the possession-time
InitialSpawn request captures that stale node. Because EnsureSpawnsQueuedForAllPlayers skips
players who already have a queued request, the stale request would win and spawn the player at the
wrong node.
TravelToCurrentNode resolves the real target only after persistence settles (the GameMode waits on
PersistenceComponent::WillAutoLoad / OnLoadCompleted before travelling). Immediately before
handing off to WorldMapSubsystem::TravelToNode, it discards the stale requests:
// AEternalGameMode::TravelToCurrentNode, after resolving TargetNodeID
if (SpawnManager)
{
SpawnManager->DiscardPendingInitialSpawns();
}
DiscardPendingInitialSpawns drops only InitialSpawn requests. The travel-completion callbacks then
re-queue every pawnless player against the freshly resolved node. A player who already received a
match-start default pawn is covered too — the re-queue produces a LevelTransition (teleport) request
for them rather than a second spawn.
The World-Map Gate¶
The engine's login flow tries to spawn a default pawn on its own schedule, before the destination
level streams in. SpawnDefaultPawnFor / SpawnDefaultPawnAtTransform are overridden to return null
when IsLevelReadyForSpawn says no — that is the first line of defence.
IsLevelReadyForSpawn returns false in the one case that matters most for boot: a world map governs
the session (WorldMapSubsystem::HasWorldMap()), no dungeon is active, and nothing is streamed yet. The
boot travel simply has not delivered a level. Reporting ready here would let the engine drop the
match-start default pawn into the empty persistent map — the black void, falling until the post-travel
teleport rescues it. Refusing keeps the request queued until streaming completes.
The other branches: an active dungeon is ready only when its rooms are ready; a requested world-map node is ready only when the currently streamed node matches. With no world-map or dungeon subsystem managing levels at all (standalone test maps), it falls through to ready so PIE test maps still work.
Honest Spawn Refusal¶
Even after the gate, RestartPlayerAtPlayerStart can be silently refused downstream (the same
level-ready check inside SpawnDefaultPawnFor). SpawnPlayerPawn does not assume success — it checks
whether a pawn actually resulted and, if not, logs and returns for re-queue rather than pretending the
spawn happened:
GM->RestartPlayerAtPlayerStart(Player, SpawnPoint);
if (!Player->GetPawn())
{
// refused by the level-ready gate — a later ready callback re-queues via
// EnsureSpawnsQueuedForAllPlayers; do not proceed as if we have a pawn
return;
}
This honesty is what makes the settle-hold correct: ArePlayersPlaced() stays false while a refused
restart is outstanding, so the screen keeps holding instead of dropping on a pawnless controller.
ProcessPendingSpawns similarly re-queues when no spawn point is found yet (spawn-point actors may not
be registered) and schedules a 0.1s retry.
Possession-vs-Init Ordering¶
A second, unrelated ordering hazard lives on the ability side: possession can precede provider init
and even BeginPlay. The PIE PlayPreset relaunch spawns and possesses the pawn before the
controller's BeginPlay runs, so AEternalCharacter::InitAbilityActorInfo (called from
PossessedBy) runs while PersistenceComponent's preset provider has not yet resolved ActivePreset.
At that moment the composed ability kits cannot be granted — the preset is not known.
The fix is a two-sided latch so whichever side resolves last performs the grant exactly once:
PossessedBy -> InitAbilityActorInfo (server) PersistenceComponent::InitializeProvider
GiveComposedKits(Controller, ASC) (runs from the component's BeginPlay)
preset not resolved yet? -> no-op preset now resolved; possession already
bStartupKitsGranted = true happened (bStartupKitsGranted)? ->
GiveComposedKits(PC, ASC)
\ /
\ /
v v
GiveComposedKits self-latches on bComposedKitsGranted
-> the grant runs on exactly one side, never both
- On a dedicated-server join,
BeginPlayruns before possession — the ASC is not initialized yet, soInitializeProvider'sbStartupKitsGrantedcheck is false and it skips;InitAbilityActorInfoperforms the grant later. - On a PIE PlayPreset relaunch, possession runs first with a null preset —
InitAbilityActorInfono-ops the composed grant;InitializeProviderperforms it once the preset resolves.
GiveComposedKits latches on bComposedKitsGranted after the grants run (a preset with zero kits
still latches — nothing is left to grant), which is what makes the two entry points collapse to a
single grant. Both bStartupKitsGranted and bComposedKitsGranted live on the ASC, which lives on the
(persistent) PlayerState, so a pawn respawn re-running InitAbilityActorInfo does not re-grant.
The same persistence cuts the other way on death: death state does not launder away with the pawn.
UEternalAbilitySystemComponent::ResetForRespawn() is the single place that removes State.Dead and
strips finite-duration effects — the DoT that killed the player is still active on the PlayerState ASC
and would resume ticking on the fresh pawn the moment the tag lifts. Infinite effects (equipment
modifiers, kit passives, auras) are deliberately left alone: they belong to the character, not the life.
See Ability Kits for the kit-grant flow in full.
Joining a Session Under Way¶
Every player after the session's first, in a world-map session, is a joiner (UPlayerSpawnManager::AdmitJoiner, from
AEternalGameMode::HandleStartingNewPlayer); test maps without a world map spawn as before. A joiner has no pawn until,
in this order (FJoinRules::Decide):
- the character it brings has arrived (a guest's upload);
- no transition runs, and no Remnant realm is active or about to pull the party;
- the host's own level can take a spawn (
IsLevelReadyForSpawn); - its own machine shows the world the party stands in.
The last is a question the server asks. A client checking only its own loads would report done before the room list,
the level path or the lighting had even reached it. The server sends FJoinWorldExpectation (fixed level, dungeon
room count and layout, lighting theme) through AEternalPlayer::Client_UpdateJoinHold; the joiner's machine checks
it every 0.1 s and answers Server_ReportJoinWorldReady with the request's number. A new request goes out whenever
what stands changes, and a joiner's machine that never answers comes in after JoinWorldWaitSeconds (60 s). The
server re-evaluates every 0.25 s while anyone is held.
It then spawns on the first clear spot beside a standing player (the listen host first), the spots of
FRespawnSpread moved onto the navmesh where the world has one, and is protected until its own loading screen has gone
(the same report a respawn uses, ProtectedUntilScreenDown with transition 0). With nobody standing or no clear spot it
starts at the late-join start. Nobody else is frozen, and no transition runs.
A player who logs in during a leg was never expected by it: its reports do not count toward the leg
(OnClientReady ignores players the leg does not wait for), EnsureSpawnsQueuedForAllPlayers and ArePlayersPlaced
leave held joiners out, and the join is decided when the leg ends. PlayerCanRestart refuses a held joiner, so a
client's ServerRestartPlayer cannot place it at a start.
On the joining machine, UEternalGameInstance::HandOffHardLoadScreen puts the neutral screen up for any client world
with UTransitionController::HoldForJoin ("Joining FTransitionScreenTimeline::SetHeldUntilReleased), through any transition it shows meanwhile, until the local player
has a pawn; the server's hold reason updates its line (travelling, in a Realm). It gives up after 10 minutes.
Level instances every machine streams carry one name on all of them (FSharedLevelInstance; fixed levels add the
server's load number, ReplicatedLevelSerial). The engine's default name has a per-process counter, and a joiner whose
name differed from the host's was dropped with MissingLevelPackage.
Death Respawn¶
Restart used to be a session-wide ServerTravel("?Restart") — it reloaded the map for every player,
and an aborted travel in a packaged build exits to desktop with no error at all. Restart is a request on
AEternalPlayer::Server_RestartLevel, gated on the caller actually holding State.Dead so a client
cannot spam it. Inventory lives on the controller and equipment on the PlayerState, so both survive a
pawn swap; nothing needs a map travel. The RPC hands the request to AEternalGameMode::HandleDefeat.
The decision¶
HandleDefeat gathers the facts and asks the pure FDefeatRules::Decide, in this order:
| Facts | Response | What happens |
|---|---|---|
| The player is inside a Remnant realm | RespawnInRealm |
In-place respawn; ChoosePlayerStart returns the realm's start |
| No world map governs the session (test levels) | RespawnInPlace |
In-place respawn at a start |
| A preset runs the session (playtests) | RespawnInPlace |
In-place respawn at the level start; nothing loads again, as before the world map |
| A partner still stands | RespawnBesidePartner |
The player comes back alone at their own room entrance, at once: no transition, no reload, nobody else moves |
| Everyone fell, the node's fight is open and its dungeon not cleared | ReloadNode |
UWorldMapSubsystem::ReloadCurrentNode: the node loads again from the same generation |
| Everyone fell, anything else (a cleared node, a beaten boss whose way out is untaken, a camp) | RespawnInNode |
UWorldMapSubsystem::StartRespawnInCurrentNode: a leg that loads nothing |
"A partner still stands" is FDefeatRules::PartnerStands: someone other than the requester has a pawn and is not
dead. A partner whose own respawn has not landed yet (no pawn) does not stand, so when the last standing player falls
the party still comes back together. The request is ignored while the requester's own respawn is on its way
(UPlayerSpawnManager::IsRespawnPending), so a second press cannot queue a second spawn.
A request that arrives while a transition runs waits for it: HandleDefeat binds
OnTransitionComplete and runs again on the next tick (the ending transition still clears its own
state after the event, so a leg started inside it would be swept away). In co-op this is what makes the first Restart
the party's: once everyone has fallen, the first press starts the reload for all of them, and a partner's press that
arrives during it runs afterwards, finds them alive and does nothing.
The two legs¶
Both legs show the current node's own loading screen (MakeTravelDisplay(CurrentNodeID)), with the
dwell and fade of any destination screen.
- Reload. A procedural node regenerates in place:
UDungeonSubsystem::RegenerateCurrentDungeonreplays the config, seed and HQ flag the standing dungeon was generated with, so a sub-dungeon reloads as itself rather than as the node's own dungeon. Clients receive the new room list and report ready throughOnDungeonReady, as for any dungeon leg. A room level's name is built from the generator, the seed and the room's index, so a reload asks for the names the old rooms hold; and a client counts its old rooms as gone as soon as the new list replicates (its copies of them are deleted), while their levels are still unloading. The load was then refused and the plugin crashed on the missing level.AEternalDungeonActor::Tickholds the generator's unload step until no level of its rooms is still on its way out (at mostMaxUnloadHoldSeconds), as the server already waits. A fixed level unloads first on every machine (streaming a level that already stands reports done at once and reloads nothing) and then streams again. The reload counts no entry and leaves the node's state, the entry record and the intel alone; only a Lord attempt can change map state, and it reaches guests through the usual sync. - Respawn only.
bNoClientLoad: every machine reports ready at once (see Transition Lifecycle). On a listen host or alone the whole leg, the spawn included, completes insideStartTransition; a dedicated server waits one round trip for its clients' acks.
Ordering¶
HandleDefeat (server)
pick the anchor: the room entrance of the player who fell last (taken before a reload clears it)
for every fallen player (one inside a Remnant realm respawns in place instead):
SpawnManager->MarkRespawn(PC, anchor, dead pawn)
UnPossess() pawnless before the leg's spawn pass runs
Client_EndDeathScreen() for a player who never pressed Restart
ReloadCurrentNode() / StartRespawnInCurrentNode() the leg (falls back to the other, then to a plain spawn)
OnReadyToSpawn -> ProcessPendingSpawns, for a marked player:
the anchor's room, by floor/index in the dungeon that stands (room IDs are new each generation)
PlacePlayerInRoom(PC, room) before the pawn exists, no "may it be entered" check
RecordRoomEntry(PC, room, transform) the entrance stays the anchor for the next fall
ResetForRespawn() clear State.Dead + strip finite-duration effects
the first clear spot around the entrance (FRespawnSpread), away from players already standing;
clear = ground under it, room to stand, nothing that blocks a pawn on the way (triggers don't)
RestartPlayerAtTransform(PC, spot) ground-corrected by SpawnDefaultPawnAtTransform
area modifiers on the new pawn
FinishRespawn: spawn protection (held for this player's screen), then the dead pawn is destroyed
the player's machine, once its loading screen has faded:
Server_ReportTransitionScreenDown() -> protection ends SpawnProtectionGraceSeconds later
A partner still standing skips the leg: RespawnBesidePartner marks the player with their own entrance, unpossesses
them and calls QueueSpawnRequest, whose immediate path reads the mark like ProcessPendingSpawns does. The spot
around the entrance keeps clear of the partner if they stand there.
ResetForRespawn()runs at the spawn, just before the new pawn is possessed, so that pawn is possessed by an ASC already cleared of death state, and the body stays dead (untargetable, with nothing that could kill it a second time) for as long as the leg runs. A Restart pressed meanwhile waits for the leg and finds the player alive.- The dead pawn is destroyed last, once the new pawn is possessed. The PlayerState keeps state for
the pawn it had (its equipment visuals, for one) and lets it go on the next possession, which has to
find the old pawn still there. A reload takes seconds and its unload forces a garbage collection, so
destroying the body when the leg starts crashes the possession. That order holds on the server only: the
engine closes the body's channel when it is destroyed, before the new pawn is sent, so every client hears of the
body's end first, and a collection can run before the next pawn arrives.
UEquipmentComponenttherefore keeps its visuals (CharacterEquipmentMeshes,CharacterEquipmentVFX) as weak pointers, which read as gone instead of pointing at freed components. - Anchors. The server records one per player at each door crossing (
AEternalDoor): the spot just past the trigger, facing away from the door, and the room's floor/index. A room sealed until its neighbours clear (anAdjacentRoomsClearedencounter gate) is skipped: the reload seals it again with the player inside. With no anchor the player comes back at the dungeon or level start. - Spawn protection. A reload spawns the rooms' enemies before anyone is placed, and each machine's screen
leaves on its own clock after the leg ends (its dwell, warm-up frames, fade; a party's leg also waits for the last
player placed).
FinishRespawngrantsUEternalAbilitySystemComponent::GrantSpawnProtection:Effect.Invincible(which every damage path honours) andState.SpawnProtectedas loose tags on the server, ended early by the player's first input-bound ability. Made under a transition, it holds until the player's own machine reports its screen gone (AEternalPlayer::Server_ReportTransitionScreenDown, from the transition controller'sOnTransitionFadeOutComplete), thenShortenSpawnProtectionleavesSpawnProtectionGraceSeconds; a machine that never reports is cut off atMaxScreenProtectionSeconds. Until that report a key pressed under the screen ends nothing (GrantSpawnProtection(Seconds, bUntilScreenDown)): the player is pressing blind, and input is bound again as soon as the new pawn is possessed, which is under the screen. Made with no transition (beside a standing partner) it lasts the minimum dwell plus the fade plus the grace.
On the player's machine¶
A client hears of the respawn in pieces that travel separately: the body's death (a multicast on the pawn), the
death screen and Client_EndDeathScreen (on the controller), the new pawn and its possession, the transition's end
(on the game state). None is ordered against the others under packet loss, so the end of death waits for the one
that matters, the new pawn:
- Death screen and dead input.
AEternalPlayermarks the death on its own machine (HandleLocalPawnDiedfrom the body's death, orShowDeathScreen, whichever comes first) and ends it inAcknowledgePossessionof a pawn that is not the body (FinishLocalRespawn: the modal, if still up, and the dead input context). Restart only hides the modal;Client_EndDeathScreenonly notes that the respawn is coming. A body's death heard after the player already controls something else changes nothing, so a late death message cannot block the respawned player's input. The HUD comes back in the same possession (RebindPawnBoundUI). - Loading screen. While the player is dead with their respawn underway (
IsAwaitingRespawnPawn), the transition screen does not start its fade (FTransitionScreenTimeline::SetPlayerHeld), so it never lifts onto a view with nobody in it; it gives up afterPlayerHoldLimitSeconds(10 s) from the end.
In place¶
The realm and no-world-map responses keep the old per-controller path in
AEternalGameMode::RespawnInPlace: ResetForRespawn, UnPossess, RestartPlayer, and on a refused
restart a queued RequestPlayerSpawn (SpawnDefaultPawnFor returns null while the level-ready gate is
closed, and RestartPlayer has no retry of its own). The dead pawn goes last, after the new one exists.
Symptoms and Causes¶
| Symptom | Cause | Where it is handled |
|---|---|---|
| Black void on boot, pawn falling | Default pawn spawned into the empty persistent map before travel delivered a level | IsLevelReadyForSpawn returns false when a world map governs the session but nothing is streamed; SpawnDefaultPawnFor returns null |
| Camera stuck unpossessed after a transition | Loading screen dropped while a spawn was still in flight (refused restart / dungeon rooms still streaming) | Settle-hold: TryFinishTransition polls ArePlayersPlaced() until placed or SpawnSettleTimeout, extended by IsLoadInFlight() |
| Player spawns at the wrong (previous) node after relaunch | Possession-time InitialSpawn captured the stale pre-persistence world-map node |
DiscardPendingInitialSpawns before travel; travel-completion callbacks re-queue against the resolved node |
| Spawn silently "succeeds" but no pawn exists | RestartPlayerAtPlayerStart refused by the level-ready gate but treated as success |
SpawnPlayerPawn checks GetPawn() and returns for re-queue instead of proceeding |
| Abilities missing after a preset relaunch | Composed kits skipped because possession ran before the preset provider resolved ActivePreset |
Two-sided latch: PersistenceComponent::InitializeProvider performs the grant InitAbilityActorInfo skipped |
| Double ability grants | Both init sides granting, or a respawn re-granting | GiveComposedKits self-latches on bComposedKitsGranted; bStartupKitsGranted gates the per-session grant on the persistent ASC |
| Respawned player takes no damage; Restart stays spammable | State.Dead latched on the persistent PlayerState ASC — it never cleared with the pawn |
ResetForRespawn() removes the tag; it is the only place that does |
| A DoT keeps ticking after respawn | Finite-duration effects live on the PlayerState ASC and outlive the pawn they killed | ResetForRespawn() strips finite-duration effects; infinite ones (gear, kit passives, auras) survive by design |
| HUD and input dead after respawn | OnUnPossess tears down HUD/input, and death respawn is the first mid-session repossession |
AEternalPlayer::AcknowledgePossession rebinds the pawn-bound UI on the local side of every possession |
| Crash in equipment visuals when a respawned pawn is possessed | The dead pawn was destroyed (and collected) before the new pawn was possessed; the PlayerState still pointed at its visuals | The body is handed to MarkRespawn and destroyed in FinishRespawn, after the new pawn is possessed |
| A second fall in a room sends the player to the dungeon start | A reload starts a generation with no anchors, and coming back did not count as entering the room | TrySpawnAtAnchor records the entrance it spawns at as the anchor again |
| Players killed under a respawn's loading screen | The reloaded rooms' enemies spawn before players are placed, and the screen dwells after the leg ends | FinishRespawn grants spawn protection for the dwell and fade plus a grace |
| Respawn leg ends on the readiness timeout | A leg that loads nothing had no ready to report | bNoClientLoad legs report through Multicast_ReportReadyWithoutLoad |
| A co-op node reload (or a dungeon travel) ends on "Client readiness timeout (0/2 ready …)" while the clients are a moment from ready; the dedicated co-op test flakes on a loaded machine | The clients' timer ran from StartTransition, so the server's own unload and load used it up |
The clients' window opens when the server's own load is done; ReadinessBackstop bounds the leg from its start |
A client crashes in URoom::LoadInstance during a co-op reload ("LoadLevelInstance called with a name that already exists") |
The reload asks for the room level names the old rooms still hold, and the client stopped waiting for them once its old rooms were deleted by replication | AEternalDungeonActor::Tick holds the unload step until no old room level is left unloading |
| Two players stuck in each other after a party respawn | Both were spawned on the one anchor transform | TrySpawnAtAnchor takes the first clear spot of FRespawnSpread::Spots, away from players already standing |
| A player never comes back after a party wipe or beside a living partner at a start ("nothing around EternalPlayerStart_0 takes … pawn - trying again", forever) | The spot test's line from the entrance counted every WorldStatic/WorldDynamic object it touched, so a trigger volume round the start (a quest trigger in the forest start room) refused every spot but the one the partner stood on | UPlayerSpawnManager::IsSpotClearFor counts only what blocks the pawn, through a multi trace so a trigger in front cannot hide a wall behind it (spec ProjectEternal.Content.WorldMap.RespawnSpotClear) |
| A client crashes in equipment visuals on a guest's respawn | The client always hears the body destroyed before the new pawn; a collection in between freed the visuals the PlayerState held | UEquipmentComponent holds its visuals as weak pointers |
| A guest takes hits behind their loading screen after a party respawn | Protection ran from the spawn, and the guest's screen stayed up past it | Protection holds until the player's machine reports its screen gone, then the grace |
| A player coming back under a loading screen loses protection before seeing anything | Input is bound again at possession, under the screen, and the first input-bound ability ended protection | Protection made under a transition ignores the player's acts until their screen is down |
| A respawned player's combat input stays blocked | The body's death reached the client after the respawn and set the dead input context again | HandleLocalPawnDied ignores a body the player no longer controls; FinishLocalRespawn lifts the context at possession |
| The loading screen flashes past on a fast leg, its passage unreadable | Nothing held a screen once the destination was ready | A screen with text dwells Eternal.UI.LoadingMinDwell (3.5 s) from when it went up |
| A fade stretches or stutters under a hitch | The fade stepped per frame | FTransitionScreenTimeline sets alpha from the wall clock |
| A client shows each transition two or three times | The start multicast and each replicated transition property all called ShowTransition |
TransitionID: a show of the transition already up is a Duplicate |
| A guest's screen cuts to the world with no fade | The replicated end force-hid the screen before the end multicast arrived | OnRep_TransitionActive(false) ends through HideTransition, the same warm-up, dwell and fade |
| A transition started during a fade-out is never shown | A show during the fade was dropped | A new transition puts the screen back at full opacity (Continued / Restarted) |
| The player walks blind under a dwelling screen | The leg unfreezes characters before the screen goes | AEternalPlayer::IsMovementBlocked while the screen covers the view |
| A burst of slow frames as the screen lifts over new rooms | The world's first frames over newly streamed levels were visible | The world renders again under the opaque screen for Eternal.UI.LoadingScreenWarmupFrames before the fade |
| A cut to another painting right after a hard load | The in-world screen started fresh after the movie closed | HandOffHardLoadScreen shows the same content before the first presented frame; the first transition continues it |
Source References¶
Transition State Manager¶
UTransitionStateManager::StartTransition/CompleteTransition/TryFinishTransition—Source/ProjectEternal/Private/GameMode/Components/TransitionStateManager.cppUTransitionStateManager::ArePlayersPlaced/IsLoadInFlight—Source/ProjectEternal/Private/GameMode/Components/TransitionStateManager.cppSpawnSettleTimeout,ClientReadinessTimeout,ReadinessBackstop(EditDefaultsOnly) —Source/ProjectEternal/Public/GameMode/Components/TransitionStateManager.hUTransitionStateManager::ReportLocalReady(opens the clients' window) /OnClientReadinessTimeout/OnReadinessBackstop/HandlePlayerLeft—Source/ProjectEternal/Private/GameMode/Components/TransitionStateManager.cpp- Spec
ProjectEternal.Unit.WorldMap.TransitionReadiness—Source/ProjectEternal/Private/Tests/WorldMap/TransitionReadiness.spec.cpp ETransitionPhase—Source/ProjectEternal/Public/UI/ViewModels/Transition/TransitionTypes.h
Loading Screen¶
UTransitionController::ShowTransition/HideTransitionAfter/ShowAfterHardLoad/ResolveDestinationScreen/MinDwellFor—Source/ProjectEternal/Private/UI/Controllers/TransitionController.cppFTransitionScreenTimeline—Source/ProjectEternal/Public/UI/Controllers/TransitionScreenTimeline.hSEternalLoadingScreen/UWorldMapLoadingScreen—Source/ProjectEternal/Public/UI/Widgets/Transition/UEternalGameInstance::SetNextHardLoadScreen/BeginLoadingScreen/EndLoadingScreen/HandOffHardLoadScreen—Source/ProjectEternal/Private/GameMode/EternalGameInstance.cppUTransitionStateManager::Multicast_EndTransition/OnRep_TransitionActive—Source/ProjectEternal/Private/GameMode/Components/TransitionStateManager.cppFOpaqueScreenWorldRenderHold—Source/ProjectEternal/Public/UI/Widgets/WorldMap/OpaqueScreenWorldRender.h
Player Spawn Manager¶
UPlayerSpawnManager::QueueSpawnRequest/ProcessPendingSpawns/OnReadyToSpawn—Source/ProjectEternal/Private/GameMode/Components/PlayerSpawnManager.cppUPlayerSpawnManager::IsLevelReadyForSpawn(world-map gate) —Source/ProjectEternal/Private/GameMode/Components/PlayerSpawnManager.cppUPlayerSpawnManager::SpawnPlayerPawn(honest refusal) —Source/ProjectEternal/Private/GameMode/Components/PlayerSpawnManager.cppUPlayerSpawnManager::DiscardPendingInitialSpawns—Source/ProjectEternal/Private/GameMode/Components/PlayerSpawnManager.cppUPlayerSpawnManager::IsTransitionInProgress(Completing is spawnable) —Source/ProjectEternal/Private/GameMode/Components/PlayerSpawnManager.cpp
Game Mode¶
AEternalGameMode::TravelToCurrentNode/HandleStartingNewPlayer—Source/ProjectEternal/Private/GameMode/EternalGameMode.cppAEternalGameMode::SpawnDefaultPawnFor/SpawnDefaultPawnAtTransform—Source/ProjectEternal/Private/GameMode/EternalGameMode.cpp
Death Respawn¶
AEternalPlayer::Server_RestartLevel/Client_EndDeathScreen/Server_ReportTransitionScreenDown—Source/ProjectEternal/Private/Character/EternalPlayer.cppAEternalPlayer::HandleLocalPawnDied/FinishLocalRespawn/IsAwaitingRespawnPawn(the death's end on the player's machine) —Source/ProjectEternal/Private/Character/EternalPlayer.cppAEternalGameMode::HandleDefeat/RespawnPartyInNode/RespawnBesidePartner/RespawnInPlace—Source/ProjectEternal/Private/GameMode/EternalGameMode.cppFDefeatRules(the decision table,PartnerStands) —Source/ProjectEternal/Public/GameMode/DefeatResponse.hFRespawnSpread(spots around an entrance) —Source/ProjectEternal/Public/GameMode/RespawnSpread.hUPlayerSpawnManager::NotifyTransitionScreenDown/IsRespawnSpotClear/IsSpotClearFor—Source/ProjectEternal/Private/GameMode/Components/PlayerSpawnManager.cppFTransitionScreenTimeline::SetPlayerHeld—Source/ProjectEternal/Public/UI/Controllers/TransitionScreenTimeline.hAEternalDungeonActor::Tick(unload hold) —Source/ProjectEternal/Private/Dungeon/EternalDungeonActor.cppACoopDeathReplicationTest(both players on the real game map) —Source/ProjectEternal/Private/Tests/Replication/CoopDeathReplicationTest.cppUWorldMapSubsystem::ReloadCurrentNode/StartRespawnInCurrentNode—Source/ProjectEternal/Private/WorldMap/WorldMapSubsystem.cppUDungeonSubsystem::RegenerateCurrentDungeon/RecordRoomEntry/PlacePlayerInRoom—Source/ProjectEternal/Private/Dungeon/DungeonSubsystem.cppUPlayerSpawnManager::MarkRespawn/TrySpawnAtAnchor/FinishRespawn—Source/ProjectEternal/Private/GameMode/Components/PlayerSpawnManager.cppUEternalAbilitySystemComponent::GrantSpawnProtection/ShortenSpawnProtection—Source/ProjectEternal/Private/AbilitySystem/EternalAbilitySystemComponent.cppAEternalPlayer::AcknowledgePossession/OnUnPossess(HUD + input rebind) —Source/ProjectEternal/Private/Character/EternalPlayer.cppUEternalAbilitySystemComponent::ResetForRespawn—Source/ProjectEternal/Private/AbilitySystem/EternalAbilitySystemComponent.cpp
Kit Grant Ordering¶
AEternalCharacter::InitAbilityActorInfo—Source/ProjectEternal/Private/Character/EternalCharacter.cppUPersistenceComponent::InitializeProvider—Source/ProjectEternal/Private/Persistence/Components/PersistenceComponent.cppUEternalAbilitySystemLibrary::GiveComposedKits(self-latch) —Source/ProjectEternal/Private/Utils/EternalAbilitySystemLibrary.cpp
Related Systems¶
- Replication Overview — property replication and multicasts
- Server Authority — the server-only mutation model these components follow
- Ability Kits — composed kit grant flow and the two-sided latch
- Persistence — auto-load timing that gates initial travel
- World Map System — travel, what a loading screen shows, death and Return to Camp in a node
Recent Changes¶
| Date | Change | Reason |
|---|---|---|
| 2026-07-07 | Initial documentation | Capture the spawn/possession/transition ordering contract, the settle-hold, and the kit-grant latch |
| 2026-08-06 | Documented per-controller death respawn; corrected the restart-path ownership note | Restart moved off session-wide ServerTravel (an aborted travel exits a packaged build to desktop); RestartPlayerAtPlayerStart is now the initial/queued spawn path only, and respawn must explicitly reset death state on the persistent ASC |
| 2026-10-17 | Death respawn in a world-map node is a transition leg: a node reload or a leg that loads nothing, at the room entrance, with spawn protection; bNoClientLoad; the body is destroyed when its respawn lands |
Death reloads the node from the same generation (solo now, co-op wipes next); the respawn has to wait for the reload, and the old in-place respawn kept the node's state |
| 2026-10-17 | Protection made under a transition ignores input-bound abilities until the player's screen is down; a leg that loads nothing into a cleared node is covered by the co-op functional test | A key pressed blind under the screen ended the protection meant to last until the player can see |
| 2026-10-17 | Co-op deaths: a partner standing means a respawn at the player's own entrance with no leg; a party respawn spreads players around one entrance; protection holds for each player's own screen; on the player's machine the death ends at the new pawn's possession and the screen waits for it; clients wait out old room levels before a reload; equipment visuals held weakly | A wipe reloads the node once for everyone and a partner's death reloads nothing; each fix closes a co-op case the solo reload never met (stacked spawns, a guest hit behind its screen, client crashes on reload and on a guest's respawn, input or screen ending before the pawn) |
| 2026-10-18 | The respawn spot test ignores overlap-only volumes | A trigger round the forest start refused every spot around it, so the second player of a party never came back there (found in the world map's final verification) |
| 2026-10-18 | New "The Loading Screen" section: one screen resolved on each machine, its timeline (one show per transition, the end in either order, warm-up frames, the 3.5 s dwell for a screen with text, the wall-clock fade, the player hold), respawn-only legs and readiness, the hard-load hand-off; symptom rows | The screen's rules were only in code and the plan; the death rows stand as written |
| 2026-10-18 | New "When a leg stops waiting": the clients' 10 s window opens at the server's own load done, a 30 s backstop runs from the start, a ready after a timed-out end starts no second spawn pass, a player who leaves mid-leg is let go, a failed load still reports, and the readiness log gives each machine's time; symptom row; the no-load leg ends when the clients answer, not in the same call | A co-op reload's server load used up the clients' timer, so the dedicated co-op test ended reloads on the timeout under machine load (the respawn spot rule was ruled out by an A/B in one binary) |
| 2026-10-20 | New "Joining a Session Under Way": the joiner hold, the world report, the spawn beside a standing player, the join screen, shared level-instance names | A guest spawned at the dungeon start and left its screen before its own dungeon had streamed; late joiners were dropped with MissingLevelPackage |