fix(interaction): restore distant use after runtime cutover
Runtime GetObjectA lookup became intentionally non-constructing, so static doors and corpses entered MoveToObject without a physics host and their target snapshot timed out at the origin. Ensure the canonical minimal host exists before routing the server move. Runtime first-entry also grounds the local player before graphical PartArray attachment. That could leave an unmatched startup CMotionInterp node ahead of all later use and cast motion. Drain matched PartArray entries first, then retire only the impossible pre-attach suffix at the presentation attach boundary. Add focused regressions for static-target host materialization and attach-order reconciliation. User verified near and distant object use in the connected client; focused App tests pass 3/3.
This commit is contained in:
parent
670f307c84
commit
1fc529cdcb
4 changed files with 183 additions and 1 deletions
|
|
@ -334,6 +334,17 @@ internal sealed class PlayerModeController :
|
|||
controller.Motion.DefaultSink =
|
||||
new MotionTableDispatchSink(sequencer);
|
||||
sequencer.Manager.HandleEnterWorld();
|
||||
// C3c constructs and grounds the Runtime-owned player before
|
||||
// graphical PartArray presentation attaches. Ground entry can
|
||||
// therefore enqueue CMotionInterp work while no animation sink
|
||||
// exists; that work has no matching PartArray completion and
|
||||
// would permanently sit ahead of later MoveTo/cast motions.
|
||||
// First let the newly attached PartArray drain every matching
|
||||
// animation above, then retire only the unmatched pre-attach
|
||||
// interpreter suffix. In retail both owners exist together,
|
||||
// so this suffix cannot arise; this is the split-lifetime
|
||||
// reconciliation at their single attach boundary.
|
||||
controller.Motion.HandleExitWorld();
|
||||
}
|
||||
|
||||
var legacyCamera = new ChaseCamera { Aspect = _viewport.Aspect };
|
||||
|
|
|
|||
|
|
@ -417,7 +417,17 @@ internal sealed class LiveEntityMotionRuntimeController
|
|||
if (update.MotionState.MovementType == 6
|
||||
&& path.TargetGuid is { } tgtGuid
|
||||
&& _liveEntities is { } liveMoveEntities
|
||||
&& liveMoveEntities.TryGetInteractionEligibleEntity(tgtGuid, out var tgtEnt))
|
||||
&& liveMoveEntities.TryGetInteractionEligibleEntity(tgtGuid, out var tgtEnt)
|
||||
// Retail resolves the CPhysicsObj itself here. Even a static,
|
||||
// animation-less object (door, chest, corpse, NPC prop) can
|
||||
// therefore accept AddVoyeur and immediately publish its
|
||||
// position. C3c moved the local player's GetObjectA seam into
|
||||
// Runtime, where lookup is intentionally non-constructing;
|
||||
// eagerly materialize the existing canonical minimal host at
|
||||
// this App composition boundary before PerformMovement asks
|
||||
// Runtime for it. Without this, MoveToObject arms but receives
|
||||
// no target snapshot and times out at (0,0,0).
|
||||
&& ResolvePhysicsHost(tgtGuid) is not null)
|
||||
{
|
||||
ms.Type = AcDream.Core.Physics.MovementType.MoveToObject;
|
||||
ms.ObjectId = tgtGuid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue