/gmas:gmas-debugfrom GMAS
Debugging guide for GMAS/GMC gameplay issues: desync, double activation, missing effects, replay oddities, and ability component crashes. Covers log categories, console variables, trace tags, and a symptom table.
Ships in GMAS. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Behavior below was verified against GMC 2.3.x and GMAS 1.4. Confirm signatures in this project's own headers (paths are relative to each plugin's root, e.g.
Source/GMCCore/Public/Components/GMCReplicationComponent.h); GMC's source is not part of this plugin.
A GMAS fault is almost always one of three things: the two sides of a move disagreed (a correction and a replay), an operation did not reach the move it was meant for (dropped or forced), or something ran on a replayed or combined move that should have run once. This skill lists the places where GMAS and GMC show that, a procedure that separates the three, how a healthy activation reads in the log, and a symptom table: references/symptoms.md. The rules the symptoms violate live in gmas:gmas-rules and gmas:gmc-prediction; the networked test setup in gmas:gmas-testing. GMAS paths below are relative to Source/GMCAbilitySystem/.
Log categories. Raise one with Log <Category> Verbose in the console (VeryVerbose for the per-move lines), -LogCmds="LogGMCAbilitySystem Verbose" on the command line, or [Core.Log] in DefaultEngine.ini. All default to Log.
| Category | Declared in | Covers |
|---|---|---|
LogGMCAbilitySystem | Public/GMCAbilitySystem.h | everything the ability component, abilities, effects, tasks and the bound queue log; the trace tags below. 1.4.1+: the only category GMAS writes to |
LogGMCReplication | Source/GMCCore/Public/Utility/GMCLogCategory.h | GMC moves, corrections, replays, smoothing, the world-time notice; on 1.4.0 also GMAS's task heartbeat timeout |
LogGMCMovement, LogGMCPawn, LogGMCController | same header | the movement components (VeryVerbose traces every executed move), pawn lifetime, controllers |
LogTemp | engine | 1.4.0 only: server-side mirrors of [AbilityCut], [TaskDiag], [BatchOp], [TaskHeartbeat] and one [ServerProcessOperation] rejection. 1.4.1+ writes nothing here |
Trace tags (1.4+). Bracketed prefixes in LogGMCAbilitySystem lines (Private/Components/GMCAbilityComponent.cpp, Private/Ability/GMCAbility.cpp, Private/Ability/Tasks/GMCAbilityTaskBase.cpp). op is the operation id: negative for client-made operations, positive for server-made ones; move_ts is the move timestamp, identical on both machines for the same move.
| Tag | Level | Traces |
|---|---|---|
[AckTrace:Client:GenTick], [AckTrace:Server:GenTick] | Verbose | the operation slot read at the start of each prediction tick: on the owner what it is about to process, on the server what the client's move carried |
[AckTrace:Client:WroteAck], [AckTrace:Client:BatchEnd], [AckTrace:Client:BatchAckWritten] | Verbose | the owner acknowledging a server operation (single, or a batch with the acknowledged ids) |
[AckTrace:Server:ProcessAck] | Verbose | the server receiving an acknowledgement: has_payload, has_grace must both be 1 for it to apply |
[ImpulseTrace] | Verbose | every AddImpulse operation applied, on both sides: auth, replay, move_ts, velocity before and after |
[ReconnectSnapshot] | Verbose | an owning client rehydrating active effects after a reconnect |
[TaskDiag] | Verbose for benign end races; Warning for task-id or ability-id divergence; Error for a task registered during a replay | task payload and heartbeat routing (gmas:gmas-task) |
[AbilityCut] | Error on the client confirm timeout; Warning for an ability ending with unfinished tasks or cancelled by the server | abnormal ability ends, with a diagnostics dump (below) |
[ReplayActivation] | Warning | an activation whose first run on this side happened inside a replay |
[AbilityGate] | Warning | a single-instance refusal whose blocker is older than 2 s |
[EffectLeak] | Warning | a declared effect id that no longer resolved at ability end (replay renumbering); removed by tag instead |
[BatchOp] | Error | a batched server operation whose payload is missing on this side |
[ReplayBurst] | Warning | the replay-burst detector tripped (settings below) |
[ServerProcessOperation] | Warning | the server rejecting a client-auth ability or effect |
[TaskHeartbeat] | Error (LogGMCAbilitySystem on 1.4.1+, LogTemp on 1.4.0) | the server watchdog cancelling (1.4.1+; ending on 1.4.0) an ability after 3 s without heartbeats |
[EffectID] <Generator>: (1.4.1+; <Generator> = Predicted, ServerAuth or ClientAuth) | Error | effect-id generation: ids are ActionTimer × 100 offset into the generator's range. ActionTimer is 0: no id, the apply fails (a smoothed listen-server pawn, or an apply before the first move). outside the id range ... ids wrap: the clock left the range (a session past about 83 days, or a negative clock) and ids wrap inside it from here on, reported once per component. every id ... is live or reserved: the range is exhausted. VeryVerbose: every id generated. On 1.4.0 the same faults were [ApplyAbilityEffect] / [GetNextAvailable*EffectID] lines, and the range overflow was Fatal |
[OperationLost] (1.4.1+) | Error | the server read a client operation (negative id) whose payload it never cached: not applied. Once per id |
[RemoveEffectByIdSafe] | Warning | a client-auth removal with an id outside the client-auth range, rejected |
[ProcessOp], [ServerOpAccept], [ServerOpDrop], [ApplyTrace] | Log (1.4.1+; Warning on 1.4.0), only while GMAS.LogApplyTrace is on (on 1.4.0 one [ServerOpDrop] Error, a failed base-struct cast, was always on) | every activation and effect operation through ProcessOperation, each client operation the server accepted or dropped (with the reason), and a C++ plus script call stack per effect instance created |
[AttrBindMap] (1.4.1+; [BLMoveEnqueue] on 1.4.0) | Log | the output of GMAS.DumpAttrBindMap |
[RPC] | VeryVerbose | the client receiving the server's confirm, end-ability and end-effect RPCs |
Untagged lines worth knowing, same category: RPCOnServerOperationAdded: N (Verbose, the owner received a server operation), Forcing Operation On Server (Verbose, the grace expired and the server applied the operation outside the move; one frame after the call for AI and unpossessed pawns), Activation operation N already consumed on this side (redelivery/replay) — skipped (Verbose, a replay re-delivering an activation that already ran), Ability Activation for Ability.Dash Stopped By Cooldown / ... Stopped By Cost (1.4.1+) / ... Failing PreExecution check / ... Blocked By Other Ability / ... Stopped by an OnAbilityActivated listener (1.4.1+) / ... Stopped By Tags (Verbose, a refused activation; Stopped (Already Instanced) at VeryVerbose), Input tag not granted: X / Input tag not in the ability map: X (Warning, 1.4.1+; Ability Tag Not Granted / Ability Tag Not Found before), Effect X Not Confirmed By Server (ID: N), Removing... (Error), Dropped client operation N: payload expired after M moves (Warning), No Abilities Granted for InputTag (Error), Client attempted to apply server-auth event (Warning), Client operation type X is not allowed by server as client input (Error), X is deprecated ... Reported once. (Warning, 1.4.1+: a deprecated function was called, once per component). GMAS <version> loaded (Log, 1.4.1+) is the module's version line; on 1.4.0 it was the [GMAS-LIVE-CHECK] Module loaded banner at Warning.
Console (1.4+, Private/Components/GMCAbilityComponent.cpp, not in Shipping builds).
| Name | Default | Does |
|---|---|---|
GMAS.LogApplyTrace (bool) | false | enables the four gated tags above (at Log on 1.4.1+). The [ApplyTrace] stack dump fires for every effect instance created on this machine whose class name contains the filter |
GMAS.ApplyTraceFilter (string) | empty (1.4.1+; 1.4.0 shipped a leftover non-empty default, so set it explicitly there) | class-name substring for [ApplyTrace] and the effect half of [ProcessOp]; empty traces every effect, so set it to your class (GMAS.ApplyTraceFilter MyEffect_Burn) to isolate one |
GMAS.DumpAttrBindMap (command; BL.GMAS.DumpAttrBindMap on 1.4.0, a deprecated alias until 1.5) | – | logs [AttrBindMap] lines: for the local player's pawn, each bound attribute's float binding index (Float[i] = Value, Float[i+1] = RawValue) with its tag and combine mode. GMC's own sync-data dumps (gmc.LogClientReplay, gmc.LogClientMoveTrace) list bound values by type and index, so this is how a deviating float becomes an attribute name |
GMC console variables. Full table, with the GMC .cpp files that define them: gmc-diagnostics.md. The five that matter most for GMAS work:
| Variable | Reach for it when |
|---|---|
gmc.ShowNetRole | anything differs per machine: label every pawn with its role on this machine first |
gmc.ShowClientCorrections | the owner snaps, an ability or effect misbehaves after a correction: marks each correction (predicted red, server green) |
gmc.LogClientReplay | a correction needs a name: dumps the client state, the server state and the replayed history, every bound value by type and index |
gmc.StatNetMovementValues | the live movement values of pawns with a chosen role (1 authority, 2 autonomous, 3 simulated) on screen |
gmc.LogClientMoveTrace | moves seem not to arrive: follows individual moves around the round trip |
Gameplay Debugger. The runtime module registers category GMCAbilitySystem (Private/GMCAbilitySystem.cpp, slot 9, enabled in game and simulate). Open the debugger with its activation key (' by default, an engine setting) and enable the category. For the debugger's selected actor it prints the server's data pack ([server]) and the local component ([client]) for granted abilities, active abilities, bound active tags, client-auth tags (1.4+), attributes, active effects (1.4.1+: one ToString() line each, with its state and the client's answer for its id: Pending, Validated, Timeout, or Authority on the server; 1.4.0 never showed the answer) and cached operation payloads (1.4+); a row whose count differs between the two is marked [INCOHERENCY] in red. 1.4.0 also had an Active Effects Data row that printed UNDER CONSTRUCTION; 1.4.1 removed it. On a listen server the server rows are read from the movement component's server state, so the host's own pawn shows its authoritative view.
Project Settings → GMC Ability System (1.4+), stored in DefaultGame.ini:
| Section / class | Field | Default | Meaning |
|---|---|---|---|
Network Timing, UGMASNetworkTimingSettings (Public/Settings/GMASNetworkTimingSettings.h) | ClientEffectApplicationTimeout | 0.5 s (min 0.05) | how long a client holds a Predicted effect in Pending before it becomes Timeout and is removed with Not Confirmed By Server. Not a rollback guarantee: the client writes its own id into the bound active-effect list it polls, so a predicted effect is normally Validated on its next tick before any server verdict, and a server rejection leaves it running until a correction or the server's end (gmas:gmas-rules) |
DefaultClientGraceTime | 0.5 s (min 0 on 1.4.1+, 0.05 before) | the bilateral defer window for removing ticking and periodic effects (ClientGraceTime = 0 on the effect means this): both sides end the effect at the same ActionTimer. Works again on 1.4.1; 0 turns the deferral off project-wide (instant removal on each side, up to about a round trip of drift). On 1.4.0 RemoveActiveAbilityEffect disabled the defer and the value changed nothing | |
ServerOperationGraceSeconds (1.4.1+) | 1.0 s (min 0) | how long the server waits for the owning client to acknowledge a server operation through its move stream before forcing it outside any move (Forcing Operation On Server). Pawns without an acknowledging client use 0 whatever this says. A fixed 1 s on 1.4.0 | |
Replay Burst Diagnostics, UGMASReplayBurstSettings (Public/Diagnostics/GMASReplayBurstSettings.h) | bEnableDetection | true | master switch; off also clears the buffer |
BurstThreshold | 5 (min 2) | occurrences inside the window that trip the alert | |
WindowSeconds | 2.0 (min 0.1) | sliding window, wall-clock | |
WarningWidgetClass, WidgetZOrder, WidgetDurationSeconds | none, 100, 3 s | optional UMG widget added to the local player's screen on each alert; one at a time; <= 0 keeps it until the next alert |
The detector counts frames in which the owner's prediction tick ran while CL_IsReplaying() was true, one occurrence per frame however many moves were replayed, on the local autonomous proxy only (GenAncillaryTick). Crossing the threshold logs [ReplayBurst] <Pawn>: N frames with a replay within W s (threshold=T). The client is being corrected repeatedly; ... (1.4.1+; 1.4.0 wording: observed N replay occurrences), broadcasts OnReplayBurstDetected(BurstCount, WindowSeconds) (BlueprintAssignable) and resets the buffer, so a sustained chain refires about once per window. It tells you the client is being corrected repeatedly; it does not say by which value (use gmc.LogClientReplay and GMAS.DumpAttrBindMap for that), and an honest lag spike trips it too.
gmas:gmas-testing sets it up. Prediction, replays, combined moves, grace forcing and smoothing do not exist in a standalone game, and a listen host's own pawn is never predicted or corrected.Log LogGMCAbilitySystem Verbose and Log LogGMCReplication Verbose on the server and on the client; gmc.ShowNetRole 1 and gmc.ShowClientCorrections 1 on the client. For one effect or one activation, set GMAS.ApplyTraceFilter and GMAS.LogApplyTrace 1 on both (1.4+). Keep the Gameplay Debugger open on the pawn.op=N), ability id (AbilityID=; on 1.4 it is op × 16, then the candidate index further from zero, so the two sides print the same number), effect id, and move_ts / ActionTimer, which is the move timestamp and therefore the same value on both machines for the same move. Wall-clock alignment: gmc.LogNetWorldTime. If timestamps live in different domains, there is no AGMC_WorldTimeReplicator (gmas:gmc-prediction): fix that before anything else. The side that logged the first abnormal line is the root cause; the other side follows seconds later.gmc.LogClientReplay block right before), a dropped or forced operation ([ServerOpDrop], Forcing Operation On Server), or a one-shot on a combined or replayed move. Only on simulated proxies? Smoothing and SimulationMode. Remove features one at a time (effects, then tasks, then the ability) until the trace is clean, then add the last one back.Automation RunTests GMAS.Unit.Effect (or GMAS.Unit.Ability, GMAS.Unit.Duration, GMAS.Unit.Attribute) headless from a project with GMC and GMAS enabled, plus your own. A green spec with a red PIE session narrows the fault to the network path.GMAS.LogApplyTrace 0, verbosity back to Log) before committing.A healthy predicted activation (owning client presses Input.Dash, 1.4+ line shapes):
QueueAbility makes operation -k and queues it. In the next move's prediction tick: [AckTrace:Client:GenTick] OperationData op=-k struct=...AbilityActivationOperation move_ts=T auth=0; at VeryVerbose [Server: 0] Generated Ability Activation ID: id with id = -k × 16 - index; the ability begins. Nothing more logs on success.[AckTrace:Server:GenTick] OpData received from client output: op=-k struct=... move_ts=T (the same T); with GMAS.LogApplyTrace: [ServerOpAccept] op=-k ... fromMove=1 then [ProcessOp] op=-k activate_ability tag=Input.Dash auth=1 fromMove=1 force=0; [Server: 1] Generated Ability Activation ID: id with the same id; the server runs the same gates and begins the ability.RPCConfirmAbilityActivation(id) sets the client instance's confirmed flag; the client logs it only at VeryVerbose ([RPC] Server Confirmed Long-Running Ability Activation: id). At Verbose the proof of health is the absence of [AbilityCut] Client cancelling unconfirmed ability (1.4.1+; Client removing on 1.4.0) after ServerConfirmTimeout (2 s), and no Effect X Not Confirmed By Server line within ClientEffectApplicationTimeout (0.5 s) for the effects the ability applied (a weak signal: see the settings table). On the ancillary tick the owner sends one task heartbeat per second while tasks run (gmas:gmas-task).A healthy server operation (ServerAuth effect, AddImpulse, activation on a server-controlled pawn): server EnqueueServerOperation queues op=k with the server-operation grace (ServerOperationGraceSeconds, 1 s; fixed 1 s on 1.4.0) and sends it; client RPCOnServerOperationAdded: k (Verbose); the client's next move carries it: [AckTrace:Client:GenTick] op=k, the operation is applied there ([ImpulseTrace] op=k auth=0 replay=0 move_ts=T ...) and an acknowledgement is written ([AckTrace:Client:WroteAck] op=k, or BatchEnd / BatchAckWritten for several); server, when that move executes: [AckTrace:Server:ProcessAck] op=k has_payload=1 has_grace=1 fromMove=1, applies it in the same move ([ImpulseTrace] op=k auth=1 ... move_ts=T) and clears the grace.
The three deviations:
| Looks like | Lines | Meaning |
|---|---|---|
| Dropped | server [ServerOpDrop] op=-k reason=IsValidClientOperation_failed (with Client operation type X is not allowed by server as client input, Error) or reason=IsValidGMASOperation_failed; or client Dropped client operation -k: payload expired after M moves; then client [AbilityCut] Client cancelling unconfirmed ability after 2.00s (Error; removing on 1.4.0) and, if the ability had a task, server [TaskDiag] Heartbeat for unknown AbilityID=id (Warning) | the client's operation never entered the server pipeline. The client predicted an activation the server never ran |
| Forced | server Forcing Operation On Server (Verbose) about ServerOperationGraceSeconds (1 s) after it sent op=k, [ProcessOp] op=k ... force=1, [ImpulseTrace] op=k auth=1 ... from_movement_tick=0; no [AckTrace:Server:ProcessAck] op=k ... has_grace=1 ever | the owning client never acknowledged: it could not apply the operation (candidates failed their gates there, a batch payload missing: [BatchOp]) or its moves stopped. The server applied it outside any move; the two sides disagree until the next correction. For AI and unpossessed pawns a force one frame after the call is the normal path (1.4+) |
| Replayed | client Client replay ::: block (gmc.LogClientReplay), [AckTrace:Client:GenTick] repeating earlier move_ts values, Activation operation -k already consumed on this side (redelivery/replay) — skipped (Verbose), [ImpulseTrace] ... replay=1 | a correction re-ran the pending moves. Those three lines are healthy. [ReplayActivation] op=-k ... first delivery (Warning) is not: the original run was discarded or refused here, so the server may hold an instance this client never had. [TaskDiag] Progress payload RE-dispatched during replay (Warning) names a task still registered that saw its payload twice |
[AbilityCut] marks the three ways an ability dies abnormally: the client confirm timeout (Error, Client cancelling unconfirmed ability after N s (no RPCConfirmAbilityActivation received); Client removing on 1.4.0), FinishEndAbility with tasks still running (Warning, both sides, Ability ending with N unfinished task(s): the side that logs it first is the cause), and RPCClientEndAbility reaching an instance still active on the client (Warning, Server force-ended an ability that was still active locally; cancelled; Server force-ended ability that was still active locally on 1.4.0). Each line ends with the ability's diagnostics: Ability= Tag= AbilityID= State= ServerConfirmed= MovementTick= Authority= Replaying= ActionTimer= ClientStartTime= Age= Tasks=N, then one line per task with its class, state, Completed, heartbeats received and the age of the last heartbeat received and sent. On 1.4.1+ all three are cancels: CancelAbilityEvent and OnAbilityCancelled fire, no end event, no OnAbilityEnded, no chain window. On 1.4.0 the confirm timeout, RPCClientEndAbility and the heartbeat watchdog ended the ability through EndAbility(), a natural end: its end event ran and a chain window opened for an activation the server never ran.
The full table, symptom → likely cause → how to confirm → fix and skill: references/symptoms.md. The five most common:
SetAttributeValueByTag (deprecated; returns false on 1.4.1+). On 1.4.1+ the first two log an Error at the bind (active [0, 0] clamp, a missing asset shows no row in GMAS.DumpAttrBindMap). Confirm in the debugger's Attributes row; fix the clamp or the bind order (gmas:gmas-attribute, gmas:gmas-setup).gmc.ShowClientCorrections and a doubled [ApplyTrace]; guard with the live-move condition and CL_DoNotCombineNextMove() (gmas:gmas-ability).ServerOperationGraceSeconds). Confirm with RPCOnServerOperationAdded on the client and Forcing Operation On Server on the server; design the first candidate to pass on both sides (gmas:gmas-rules).[INCOHERENCY] marker on Active Effects; pick the queue type from gmas:gmas-effect.[AbilityCut] Client cancelling unconfirmed ability and the server's [ServerOpDrop], [OperationLost] or Stopped By line (Stopped By Cost on 1.4.1+: a cost attribute that is not GMC-bound can differ between the sides); make both sides run the same gates (gmas:gmas-ability).gmc.ShowNetRole.LogGMCAbilitySystem and LogGMCReplication at Verbose on both machines; the two logs aligned by op, AbilityID, effect id and move_ts; the first abnormal line identified and its machine named as the cause.[ServerOpDrop], [OperationLost], payload expired, [AbilityCut]), forced (Forcing Operation On Server without a matching ProcessAck), or replayed (Client replay :::, [ReplayActivation]), or none of the three (standalone bug).GMAS.DumpAttrBindMap (BL.GMAS.DumpAttrBindMap on 1.4.0) consulted; the clamp and the bind order verified.[ReplayBurst] taken as a signal only; the deviating value named with gmc.ForceFullSyncDataValidation plus gmc.LogClientReplay, mapped to an attribute with GMAS.DumpAttrBindMap.GMAS.* specs for the area green before and after the change.[AbilityCut], no Warning-level [TaskDiag], no [BatchOp], no Not Confirmed By Server, no corrections at the moment of the former fault.GMAS.LogApplyTrace 0, verbosity back to Log, no trace settings left in DefaultEngine.ini or DefaultGame.ini.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gmas, gmc, unreal-engine, gameplay-abilities, network-debugging
npx claudepluginhub reznok/gmcabilitysystem --plugin gmas12 skills in this plugin
/gmas-abilityUse when creating or modifying a UGMCAbility - lifecycle hooks, cost and cooldown, activation tags, chains, tasks, input, and its visuals and sounds on every machine./gmas-attributeUse when adding or changing GMAS attributes - GMCAttributesData rows, clamps, GMC-bound versus replicated, reading and modifying values at runtime, custom modifier calculators./gmas-effectUse when creating or modifying a UGMCAbilityEffect or FGMCAbilityEffectData - duration and periodic settings, granted tags, modifiers and conditions, queue type, runtime-built effects, removal./gmas-maintainUse when working inside the GMAS repository itself - branches, the DeepWorlds sync, resolving a sync conflict pull request, running the GMAS specs, promoting and releasing./gmas-reviewUse when reviewing a change that touches GMC or GMAS code, before merging or after a coding agent implements it./gmas-rulesUse when changing gameplay that involves a GMC_AbilitySystemComponent (GMAS) - deciding where state lives (bound, replicated, derived), attribute binding, ability lifetime under replay, effect queue types, server operations, impulses and tags.Other plugins' skills for the same job