fix: a seamless instance move keeps the player in scope, in place and without the white fade

The source no longer destroys the player's own ghost: losing it hid the character, and the target's construction
brought it back with the login effect (LWOGhostComponent::OnGhostReceiveDestruction, 0x00c99410,
LWOBaseRenderComponent::OnEnterScope, 0x00be2150). The target constructs the player to its own client without a
position and with world transition state 3. The client sends PlayerLoaded itself after that construction, so the
server only runs it when none came within 5 s, and PlayerReady (camera pitch reset) is not sent. A seamless arrival is
only expected for 30 s, so a later login gets LOAD_STATIC_ZONE.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 15:15:16 -06:00
parent f081dafb94
commit 1113775741
4 changed files with 39 additions and 11 deletions

View File

@@ -51,7 +51,12 @@ namespace WorldMigration {
// not be sent LOAD_STATIC_ZONE (that tears the scene down); load it at once instead
bool ArrivesSeamlessly(LWOOBJID characterId);
// Its player entity was created and constructed: run what the client's PlayerLoaded would have
// While `keep` is set, constructions of a seamlessly arriving player leave out what would reset its client's own
// player: the position (the client stands where it is) and the world transition (no fade from white). Set only
// around the construction that goes to the player's own client; does nothing for other players.
void KeepClientPlayer(Entity* player, bool keep);
// Its player entity was created and constructed: the client sends PlayerLoaded itself; a fallback runs it if not
void OnSeamlessArrival(Entity* player);
// MIGRATE_STATUS from master: tell the GM who asked, if they are here