PR-1 verification: GMAS lifecycle wiring¶
Status: static inspection only. No compiler, UnrealBuildTool, Build.bat, RunUAT, or PIE was run for this PR. A separate guarded build is required before runtime acceptance. Cedric Jones-Gaffney checked the installed headers read-only on 2026-10-24.
Files changed¶
Source/NarrativeGMC/Public/Character/NarrativeGMCMovementComponent.h: transient cached ASC and exact pre-move override declarations.Source/NarrativeGMC/Private/Character/NarrativeGMCMovementComponent.cpp: resolve/cache the owner's ASC during replication binding, assign its movement pointer, bind it once, and forward prediction/simulation/ancillary/local-pre-move/remote-pre-move hooks after superclass calls.Source/NarrativeGMC/Private/Character/NarrativeGMCPawn.cpp: assign the movement pointer before superclassPostInitializeComponentscalls binding.- This verification receipt.
Installed API evidence¶
Paths below are relative to C:/Program Files/Epic Games/UE_5.7/Engine/Plugins/Marketplace/ unless prefixed Engine. No installed file was modified.
| API | Installed declaration/evidence |
|---|---|
UGMC_AbilitySystemComponent::GMCMovementComponent |
GMCAbilitySystem-1.3.0.disabled/Source/GMCAbilitySystem/Public/Components/GMCAbilityComponent.h:515, public UGMC_MovementUtilityCmp* |
BindReplicationData() |
Same header :553 |
GenAncillaryTick(float, bool) |
Same header :556; bool is bIsCombinedClientMove, so forward GMC's bCombinedClientMove |
GenPredictionTick(float) |
Same header :559 |
GenSimulationTick(float) |
Same header :562 |
PreLocalMoveExecution() |
Same header :565 |
PreRemoteMoveExecution() |
Same header :568 |
GMC BindReplicationData_Implementation() |
GMCv2Adv86c4f5f6b4ebV10/Source/GMCCore/Public/Components/GMCReplicationComponent.h:230 |
GMC SV_PreRemoteMoveExecution_Implementation(const FGMC_Move&) |
Same header :346 |
GMC PreLocalMoveExecution_Implementation(const FGMC_Move&) |
Same header :559 |
| GMC prediction/simulation/ancillary override signatures | GMCv2Adv86c4f5f6b4ebV10/Source/GMCCore/Public/Components/GMCMovementUtilityComponent.h:432, :440, :451 |
| Assignment type compatibility | GMCv2Adv86c4f5f6b4ebV10/Source/GMCCore/Public/Components/GMCOrganicMovementComponent.h:699: organic movement derives from UGMC_MovementUtilityCmp; our movement derives through vendored GMCE organic movement |
| Inherited protected pawn ASC member | GMCAbilitySystem-1.3.0.disabled/Source/GMCAbilitySystem/Public/Actors/GMAS_Pawn.h:55 |
FindComponentByClass<T>() |
Engine Source/Runtime/Engine/Classes/GameFramework/Actor.h:3825 |
| Required initialization order | GMC Private/Actors/GMCPawn.cpp:55-74: PostInitializeComponents calls SetupReplicationComponent, which invokes BindReplicationData; therefore wire before Super |
| GMAS binding initializes attributes | GMAS Private/Components/GMCAbilityComponent.cpp:78-125: instantiates attributes and binds tags, tasks, queues; no second manual bind added |
Static checks¶
git diff --checkpassed after implementation.- Exact native override parameters verified against installed headers.
- Six GMAS entry points forwarded; ancillary flag mapping checked explicitly.
- Blueprint subclasses overriding these GMC events must call their parent to retain native forwarding.
Manual PIE acceptance (pending Andrew)¶
- Configure a NarrativeGMC pawn Blueprint with a ten-attribute
UGMCAttributesDataasset and sprint ability/map. Attribute asset creation and remaining ability behavior fixes are separate work. - Run listen server plus two clients. Confirm ASC movement pointer is non-null before binding and binding runs once per pawn. Compare configured defaults via
GetAttributeValueByTagon server, autonomous proxy, and simulated proxy. - Queue
Ability.Sprint; log/breakpoint confirmsBeginAbilityon client/server and forwarding of all lifecycle hooks. No null movement crash or outside-movement-cycle warning. - Repeat at roughly 100 ms, then 200 ms/5% loss. Toggle emulation to force correction; verify consistent attributes, reconciled activation, and no duplicate gameplay outcome from correction.
- Inspect local and remote moves separately: GMAS local pre-move receives local inputs and remote pre-move advances server queues. Confirm ancillary forwarding receives the combined-client-move flag.
These are pending acceptance steps, not claims that PIE passed. PR-1 connects the existing system; later gameplay and data-asset gaps remain outside this PR.