/gmas:gmas-setupfrom GMAS
Installs GMAS (GMC Ability System) into an Unreal project and wires a pawn to GMC_AbilitySystemComponent in C++ or Blueprint, including submodule setup and Build.cs dependencies.
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.
None: SKILL.md is the whole skill.
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.
This skill gets GMAS (GMC Ability System) into a project and a first pawn wired to it, in C++ or Blueprint. The rules that govern what you build afterwards live in gmas:gmas-rules (where state lives, binding order, effects, server operations) and gmas:gmc-prediction (GMC's move cycle). GMAS paths below are relative to Source/GMCAbilitySystem/; GMC paths to the GMC plugin root.
| Need | Detail |
|---|---|
| a GMC license | GMC (General Movement Component, GMCv2) is a paid plugin. Its source lives only in the project, under Plugins/GMC (module GMCCore); GMAS never ships it, and neither do the skills in this plugin. GMAS 1.4 is verified against GMC 2.3.x |
| Unreal 5.5 to 5.8 | 5.4 unverified. On 1.4.0 Public/Utility/GMASBoundQueueV2.h includes StructUtils/InstancedStruct.h without the ENGINE_MINOR_VERSION >= 5 guard the other GMAS headers carry (on 5.4 that header lives in the StructUtils plugin under a different path); 1.4.1 adds the guard |
plugins enabled in .uproject | GMC and GMCAbilitySystem. GMAS's .uplugin declares GMC, StructUtils and Niagara (1.4+) as plugin dependencies, so enabling GMAS enables them: Niagara is on by default anyway; StructUtils is a real plugin on 5.4 and a deprecated shim from 5.5 that still exists in 5.8. GMC's own .uplugin pulls EnhancedInput and OnlineSubsystemSteam |
| GameplayTags | an engine module, not a plugin: your Build.cs lists it; the tag editor plugin GameplayTagsEditor is enabled by default |
| GMC controllers | player controllers derive from AGMC_PlayerController, AI controllers from AGMC_AIController, and the game mode spawns exactly one AGMC_WorldTimeReplicator (gmas:gmc-prediction) |
GMAS has two modules, GMCAbilitySystem (runtime) and GMCAbilitySystemEditor (editor), plus from 1.4.1 GMCAbilitySystemTests (UncookedOnly: the specs and test stubs, never in a cooked or Shipping game); all load at the Default phase.
Submodule (recommended: upgrades are a pointer bump, and you can read the exact tree you build against):
git submodule add -b main https://github.com/reznok/GMCAbilitySystem.git Plugins/GMCAbilitySystem
git submodule update --init --recursive
-b main follows releases (tags v1.x.y); -b dev follows the integration branch, which the repository's docs/BRANCHING.md recipe uses and which moves daily. To pin a release: git -C Plugins/GMCAbilitySystem checkout v1.4.0, then commit the pointer. To update: git submodule update --remote Plugins/GMCAbilitySystem, rebuild, commit the pointer (gmas:gmas-upgrade).GMCAbilitySystem whatever the folder is called.Copied folder: download a release archive (or git clone --depth 1 -b v1.4.0) into Plugins/GMCAbilitySystem and drop its .git. You own updates from then on: diff against the release you copied when upgrading.
.uproject:
"Plugins": [
{ "Name": "GMC", "Enabled": true },
{ "Name": "GMCAbilitySystem", "Enabled": true }
]
Build.cs of every module that includes GMC or GMAS headers:
PublicDependencyModuleNames.AddRange(new string[] {
"Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput", "GameplayTags",
"GMCCore", "GMCAbilitySystem"
});
GMCAbilitySystem exports GMCCore, GameplayTags, GameplayTasks, EnhancedInput, StructUtils and NetCore as public dependencies (Source/GMCAbilitySystem/GMCAbilitySystem.Build.cs), so its headers compile in your module without more. List GMCCore and GameplayTags anyway: your own headers use them directly. List GameplayTasks yourself when you subclass the ability system component (a UGameplayTasksComponent) or write ability tasks. StructUtils is normally not needed on any version: on 5.5+ FInstancedStruct lives in CoreUObject (header StructUtils/InstancedStruct.h), and on 5.4 UBT propagates the module through GMAS's public dependencies; add it only if your 5.4 build complains.
Regenerate project files, build (a source plugin compiles with the project), open the editor: Edit → Plugins lists "GMAS - GMC Ability System" under the GMAS category.
| Piece | Class | Notes |
|---|---|---|
| pawn | AGMC_Pawn (Source/GMCCore/Public/Actors/GMCPawn.h) | an APawn that owns GMC's move pipeline: finds its replication component (GetReplicationComponent()), binds it from PostInitializeComponents (SetupReplicationComponent() calls BindReplicationData), and handles possession and move-state replication |
| convenience pawn | AGMAS_Pawn (Public/Actors/GMAS_Pawn.h) | AGMC_Pawn plus a capsule root, skeletal mesh, spring arm, camera, an ability system component (AbilitySystemComponent, subobject Ability Component) and an optional InputMappingContext added at priority 0. No movement component: you add yours. Purely optional |
| movement component | UGMC_OrganicMovementCmp (Source/GMCCore/Public/Components/GMCOrganicMovementComponent.h) for characters; UGMC_MovementUtilityCmp (GMCMovementUtilityComponent.h, same folder) for anything else | your subclass overrides the five hooks below and forwards them |
| ability system component ("the ASC") | UGMC_AbilitySystemComponent (Public/Components/GMCAbilityComponent.h), a UGameplayTasksComponent, replicated by default | one per pawn. Set its GMCMovementComponent pointer (UGMC_MovementUtilityCmp*, BlueprintReadWrite) yourself before the bind. 1.4.1+ resolves a null pointer from the owner's UGMC_MovementUtilityCmp at the bind and binds nothing (Error) when there is none; 1.4.0 dereferenced it unchecked and crashed |
Timing. AGMC_Pawn::PostInitializeComponents runs the bind, so your BindReplicationData_Implementation executes before any BeginPlay. The ASC reads AttributeDataAssets during the bind (InstantiateAttributes) and StartingAbilities, AbilityMaps, StartingTags in its own BeginPlay; StartingEffects go out from the server once the pawn has a controller. Fill all of them in class defaults, the constructor, or in the pawn's PostInitializeComponents before Super, identically on every machine (gmas:gmas-rules).
| Movement component override | Forward to the ASC |
|---|---|
BindReplicationData_Implementation() | Super, your own Bind* calls, then GMCMovementComponent = this and BindReplicationData() as the last line |
PreLocalMoveExecution_Implementation(const FGMC_Move& LocalMove) | Super, then PreLocalMoveExecution() |
GenPredictionTick_Implementation(float DeltaTime) | Super, your predicted logic, then GenPredictionTick(DeltaTime) |
GenSimulationTick_Implementation(float DeltaTime) | Super, then GenSimulationTick(DeltaTime) |
GenAncillaryTick_Implementation(float DeltaTime, bool bLocalMove, bool bCombinedClientMove) | Super, then GenAncillaryTick(DeltaTime, bCombinedClientMove); bLocalMove is not forwarded |
UGMC_OrganicMovementCmp implements four of the five itself (all but the ancillary tick), so always call Super first. Where the ASC call sits relative to your own logic inside a hook is yours to decide; keep it the same on every machine.
// MyMovementCmp.h
#pragma once
#include "Components/GMCOrganicMovementComponent.h"
#include "Components/GMCAbilityComponent.h"
#include "MyMovementCmp.generated.h"
UCLASS()
class UMyMovementCmp : public UGMC_OrganicMovementCmp
{
GENERATED_BODY()
public:
virtual void BindReplicationData_Implementation() override;
virtual void PreLocalMoveExecution_Implementation(const FGMC_Move& LocalMove) override;
virtual void GenPredictionTick_Implementation(float DeltaTime) override;
virtual void GenSimulationTick_Implementation(float DeltaTime) override;
virtual void GenAncillaryTick_Implementation(float DeltaTime, bool bLocalMove, bool bCombinedClientMove) override;
protected:
UPROPERTY(Transient) TObjectPtr<UGMC_AbilitySystemComponent> AbilitySystem;
};
// MyMovementCmp.cpp
void UMyMovementCmp::BindReplicationData_Implementation()
{
Super::BindReplicationData_Implementation();
// Your own Bind* calls go here (gmas:gmc-prediction).
AbilitySystem = GetOwner()->FindComponentByClass<UGMC_AbilitySystemComponent>();
check(AbilitySystem);
AbilitySystem->GMCMovementComponent = this; // explicit; 1.4.1+ would find it, 1.4.0 crashes without it
AbilitySystem->BindReplicationData(); // the ASC binds last
}
void UMyMovementCmp::PreLocalMoveExecution_Implementation(const FGMC_Move& LocalMove)
{
Super::PreLocalMoveExecution_Implementation(LocalMove);
AbilitySystem->PreLocalMoveExecution();
}
void UMyMovementCmp::GenPredictionTick_Implementation(float DeltaTime)
{
Super::GenPredictionTick_Implementation(DeltaTime);
// Predicted game logic that abilities depend on goes here (bound tags via MatchTagToBool).
AbilitySystem->GenPredictionTick(DeltaTime);
}
void UMyMovementCmp::GenSimulationTick_Implementation(float DeltaTime)
{
Super::GenSimulationTick_Implementation(DeltaTime);
AbilitySystem->GenSimulationTick(DeltaTime);
}
void UMyMovementCmp::GenAncillaryTick_Implementation(float DeltaTime, bool bLocalMove, bool bCombinedClientMove)
{
Super::GenAncillaryTick_Implementation(DeltaTime, bLocalMove, bCombinedClientMove);
AbilitySystem->GenAncillaryTick(DeltaTime, bCombinedClientMove);
}
The pawn adds the movement component (and, from a bare AGMC_Pawn, a root collision component plus CreateDefaultSubobject<UGMC_AbilitySystemComponent>); the pawn's root becomes GMC's updated component. Attribute data chosen at runtime (an archetype) is injected before the bind:
// MyPawn.h (includes: Actors/GMAS_Pawn.h, MyMovementCmp.h, Attributes/GMCAttributesData.h, InputAction.h;
// the .cpp adds EnhancedInputComponent.h)
UCLASS()
class AMyPawn : public AGMAS_Pawn
{
GENERATED_BODY()
public:
AMyPawn(const FObjectInitializer& Init);
virtual void PostInitializeComponents() override;
virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override;
protected:
void OnDash(const FInputActionInstance& Instance);
UPROPERTY(VisibleAnywhere) TObjectPtr<UMyMovementCmp> Movement;
UPROPERTY(EditDefaultsOnly) TObjectPtr<UGMCAttributesData> Attributes;
UPROPERTY(EditDefaultsOnly) TObjectPtr<UInputAction> DashAction;
};
// MyPawn.cpp
AMyPawn::AMyPawn(const FObjectInitializer& Init) : Super(Init)
{
Movement = CreateDefaultSubobject<UMyMovementCmp>(TEXT("Movement"));
}
void AMyPawn::PostInitializeComponents()
{
if (Attributes) { AbilitySystemComponent->AttributeDataAssets.AddUnique(Attributes); } // same asset everywhere
Super::PostInitializeComponents(); // GMC binds in here
}
The same five events, in the movement component Blueprint (a child of GMC_OrganicMovementCmp), with the ASC on the character. Step by step with screenshots: https://github.com/reznok/GMCAbilitySystem/wiki/Getting-Started (the wiki is stale: since 1.0 the tag-to-class rows live in GMCAbilityMapData assets, below, not in an editable map, and its Ability.Jump map key and activation tag are an Input.* tag today).
GMAS Pawn, which already has one).GMCMovementComponent (advanced-display, writable) to Self, then call the ASC's Bind Replication Data last.Delta Time; the ancillary tick's Combined Client Move).QueueAbility) with the Input.* tag and the Input Action pin connected; ability tasks that wait for key release read it.Tags. Project Settings → GameplayTags → Manage Gameplay Tags, Config/DefaultGameplayTags.ini, or native tags (UE_DEFINE_GAMEPLAY_TAG). The editor pickers enforce the prefixes: Attribute.* (FAttributeData::AttributeTag), Ability.* (UGMCAbility::AbilityTag), Input.* (the tag QueueAbility takes; the ability map's key is not filtered but must be that same tag). Use State.* for your own active tags.
Attributes are rows of a UGMCAttributesData asset (Public/Attributes/GMCAttributesData.h, array AttributeData of FAttributeData), listed in the ASC's AttributeDataAssets (Attributes in Details):
| Field | Set it to |
|---|---|
AttributeTag | Attribute.Stamina |
DefaultValue | 100 (or bStartFull (1.4+) to start at the upper clamp) |
Clamp (FAttributeClamp, GMCAttributeClamp.h) | Max = 100 or MaxAttributeTag = Attribute.MaxStamina: the default clamp holds the value at 0 (1.4+) |
bGMCBound | true, because predicted logic (the dash cost) reads it |
A MaxAttributeTag names another attribute of the same component (Attribute.MaxStamina, default 100, bound like the value it clamps, since the clamp is evaluated inside the move). Field defaults, the clamp flags, ValueCombineMode and the bound-versus-unbound rule: gmas:gmas-rules; everything else about attributes: gmas:gmas-attribute.
Ability map. A UGMCAbilityMapData asset (Public/Ability/GMCAbilityMapData.h) holds rows of FAbilityMapData: InputTag (Input.Dash), Abilities (every class that may answer that tag; the first granted one decides which tick the batch runs on), bGrantedByDefault (true). List the asset in the ASC's AbilityMaps; at the ASC's BeginPlay, InitializeAbilityMap copies the rows into the runtime AbilityMap and grants every default row, i.e. adds its tag to the bound GrantedAbilityTags. Runtime changes: AddAbilityMapData(UGMCAbilityMapData*), RemoveAbilityMapData, GrantAbilityByTag(Tag), or an effect's GrantedAbilities.
Starting lists on the ASC. StartingAbilities (tag container, granted at BeginPlay: for rows with bGrantedByDefault off, or tags you grant without a row), StartingEffects (effect classes the server applies as ServerAuth effects once the pawn is possessed; the owning client receives them through the bound queue), StartingTags (appended to ActiveTags at BeginPlay).
An ability is a UGMCAbility (Public/Ability/GMCAbility.h). Activation runs PreBeginAbility (cooldown, cost (1.4.1+), PreExecuteCheckEvent, blocked-by-other-ability checks, then the OnAbilityActivated broadcast) and then BeginAbility, which commits the cooldown when bApplyCooldownAtAbilityBegin (default true, needs AbilityTag), cancels conflicting abilities and finally calls the BeginAbilityEvent native event. Override the events, not BeginAbility, so that bookkeeping stays. Cost: on 1.4.1+ the activation refuses an AbilityCost the owner cannot pay (Stopped By Cost at Verbose); on 1.4.0 it does not, so override PreExecuteCheckEvent_Implementation() to return CanAffordAbilityCost() there. CommitAbilityCost() applies the AbilityCost effect class.
// MyAbility_Dash.h
#include "Ability/GMCAbility.h"
#include "MyAbility_Dash.generated.h"
UCLASS()
class UMyAbility_Dash : public UGMCAbility
{
GENERATED_BODY()
public:
UMyAbility_Dash() { bActivateOnMovementTick = true; } // the 1.4 default; false on older trees
UPROPERTY(EditDefaultsOnly) float DashSpeed = 1200.f;
virtual void BeginAbilityEvent_Implementation() override; // the cost gate is built in on 1.4.1+
};
// MyAbility_Dash.cpp
void UMyAbility_Dash::BeginAbilityEvent_Implementation()
{
CommitAbilityCost(); // AbilityCost: UMyEffect_DashCost, -20 Attribute.Stamina
const FVector Forward = GetOwnerPawn()->GetActorForwardVector();
GetOwnerMovementComponent()->AddImpulse(Forward * DashSpeed, /*bVelChange=*/true);
EndAbility();
}
Class defaults (or a Blueprint child): AbilityTag = Ability.Dash, AbilityCost = UMyEffect_DashCost (an instant effect with one modifier, Attribute.Stamina -20; gmas:gmas-effect), CooldownTime if wanted. With bActivateOnMovementTick = true (1.4+ default; set it explicitly on older trees, where false runs the ability on the ancillary tick and the impulse lands outside the move) the impulse runs inside the move on the owning client and the server alike, so it is predicted and replayed without further work. Longer-lived abilities, tasks and the bActivateOnMovementTick choice: gmas:gmas-ability.
Wire it: one row Input.Dash → UMyAbility_Dash in the ability map asset (granted by default), then activate from input through QueueAbility(FGameplayTag InputTag, const UInputAction* InputAction = nullptr, bool bPreventConcurrentActivation = false). On the owning client the activation rides the next move and is predicted; on a server-controlled pawn it becomes a server operation (gmas:gmas-rules):
void AMyPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent); // AGMAS_Pawn adds InputMappingContext
if (UEnhancedInputComponent* Input = Cast<UEnhancedInputComponent>(PlayerInputComponent))
{
Input->BindAction(DashAction, ETriggerEvent::Started, this, &AMyPawn::OnDash);
}
}
void AMyPawn::OnDash(const FInputActionInstance& Instance)
{
AbilitySystemComponent->QueueAbility(FGameplayTag::RequestGameplayTag(TEXT("Input.Dash")), Instance.GetSourceAction());
}
' (the Gameplay Debugger's default ActivationKey, Apostrophe); enable the GMCAbilitySystem category (registered by the runtime module in slot 9). It shows, server and client side by side, the granted abilities, active abilities, bound and client-auth active tags, attributes, active effects and cached operations of the debug actor. Your attribute rows and the Input.Dash grant must be listed before you press anything.Log LogGMCAbilitySystem Verbose in the console. A press that does nothing logs Input tag not granted: Input.Dash followed by No Abilities Granted for InputTag (the tag is not in GrantedAbilityTags: missing row, or bGrantedByDefault off and not in StartingAbilities), Input tag not in the ability map: Input.Dash (granted but no row), or Ability Activation for Ability.Dash Stopped ... (cooldown, cost, pre-execution check, blocking). On 1.4.0 the first two read Ability Tag Not Granted and Ability Tag Not Found ... Check The Component's AbilityMap. A missing movement component logs BindReplicationData on ...: no GMCMovementComponent (Error, 1.4.1+) at the bind.LogGMCReplication, never standalone (gmas:gmas-testing).GMC and GMCAbilitySystem enabled in .uproject; GMAS is a submodule on main (or a pinned release) or a copied release; Build.cs lists GMCCore, GMCAbilitySystem, GameplayTags (and EnhancedInput for input).AGMC_Pawn or AGMAS_Pawn; controllers from AGMC_PlayerController / AGMC_AIController; one AGMC_WorldTimeReplicator is spawned.Super first in each, sets GMCMovementComponent (required on 1.4.0, recommended on 1.4.1+) and calls BindReplicationData() as the last line of its bind; GenAncillaryTick forwards (DeltaTime, bCombinedClientMove).AttributeDataAssets, AbilityMaps, StartingAbilities, StartingEffects, StartingTags are filled before the bind or in class defaults, identically on every machine.Max, MaxAttributeTag, or bClampMax off) and bGMCBound only where predicted logic reads it.Attribute.*, Ability.* (the ability's own tag), Input.* (map key and QueueAbility argument).bActivateOnMovementTick = true, explicit on trees older than 1.4), has its cost refused when unaffordable (built in on 1.4.1+; CanAffordAbilityCost() from PreExecuteCheckEvent on 1.4.0), commits the cost, acts through GetOwnerMovementComponent(), and ends.QueueAbility with the input action; nothing calls TryActivateAbility* directly.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gmas, gmc, unreal-engine, ability-system, gameplay-abilities
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-debugUse when GMAS or GMC gameplay misbehaves - desync, double activation, late or missing effects, attributes stuck at zero, replay oddities, crashes in the ability component; covers logs, console variables, the debugger and a symptom table.Other plugins' skills for the same job