/unreal-dev:unreal-replicationfrom unreal-dev
Guides Unreal Engine developers through multiplayer replication: replicated properties, RPCs (Server/Client/NetMulticast), ownership, relevancy, and Iris. Helps debug silent failures in networked games.
Ships in unreal-dev. 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; scripts run unread.
Replication is declared in headers and registered in one function; most bugs are a property that was never registered or an RPC called from a connection that does not own the actor.
The server is the authority: it changes state and sends it to clients as replicated properties. Clients ask for changes with Server RPCs on actors their own connection owns. Every missing piece fails silently, so check the declarations before the run and test with two players after it.
| The situation | Read |
|---|---|
| "Should this be a property or an RPC?" | Choose the mechanism below |
| Adding a replicated property, a condition, a repnotify | A replicated property below, reference/properties.md, templates/ParcelComponent.h |
| "Clients see the default value", "the host sees no change" | reference/properties.md §6 |
| Adding an RPC; where a call runs; reliable or not; validation | An RPC below, reference/rpcs.md, templates/ParcelPickup.h |
| "The Server RPC never arrives", "the client was disconnected" | reference/rpcs.md §5 |
HasAuthority, roles, net modes, the owner chain, relevancy, update rate | reference/ownership-and-relevancy.md §1 to §4 |
| "Does this class replicate at all?" | reference/ownership-and-relevancy.md §5 |
| Running two or more players in the editor or as processes | reference/ownership-and-relevancy.md §6 |
| Iris | reference/iris.md |
| Checking a project's declarations without the engine | scripts/rep_lint.py |
| Which framework class holds the state (game state, player state, pawn) | unreal-gameplay-framework |
| Attributes and abilities over the network | unreal-gas |
Specifiers in general, UFUNCTION and UPROPERTY | unreal-cpp-reflection |
| What it is | Use | Courier example |
|---|---|---|
| State every client must see, late joiners included | a replicated property on a replicating actor | CarriedParcels, bCollected |
| A request from a player to the server | a Server RPC on an actor that player owns | ServerDeliverParcel on the pawn's component |
| A message from the server to one player | a Client RPC on that player's controller or pawn | "route complete" |
| A one-off cosmetic event for everyone watching now | a NetMulticast, Unreliable RPC called by the server | MulticastCollectedBurst |
| Data only the owner needs | a property with COND_OwnerOnly | a private route hint |
| Rules, or anything on the game mode, game instance or a subsystem | nothing replicates there: move the data | reference/ownership-and-relevancy.md §5 |
bReplicates = true in an actor's constructor;
SetIsReplicatedByDefault(true) in a component's, on an actor that replicates.UPROPERTY(Replicated), or UPROPERTY(ReplicatedUsing = OnRep_CarriedParcels)
with a UFUNCTION() repnotify that may take the old value.GetLifetimeReplicatedProps, call Super:: first, then
DOREPLIFETIME(UParcelComponent, CarriedParcels) (or DOREPLIFETIME_CONDITION with a
COND_ value).#include "Net/UnrealNetwork.h" in the .cpp.HasAuthority(), or GetOwnerRole() == ROLE_Authority in a
component) and call the reaction there too: repnotifies run on clients, never on the server or
a listen-server host.void UParcelComponent::SetCarriedParcels(int32 NewCount)
{
const int32 OldCount = CarriedParcels;
CarriedParcels = NewCount;
OnCarriedParcelsChanged(OldCount, NewCount); // the server's reaction
}
void UParcelComponent::OnRep_CarriedParcels(int32 OldCarriedParcels)
{
OnCarriedParcelsChanged(OldCarriedParcels, CarriedParcels); // the clients' reaction
}
UFUNCTION(Server, Reliable, WithValidation) void ServerDeliverParcel(int32 Count);ServerDeliverParcel_Implementation in the .cpp, never ServerDeliverParcel itself
(the generated code defines that), and ServerDeliverParcel_Validate when WithValidation is
written. A false return from _Validate disconnects the caller: reject impossible input only.Reliable for what must happen once (handing in parcels) and Unreliable, the default,
for anything frequent or cosmetic; never a reliable RPC per frame or per key press.Where a call runs:
| Kind | Called on the server | Called on the owning client | Called on another client |
|---|---|---|---|
Server | the server | the server | dropped |
Client | the owning client (the server when nobody owns the actor) | that client | that client |
NetMulticast | the server and every client the actor is relevant to | the caller only | the caller only |
| Symptom | Cause |
|---|---|
| Clients keep the default value | not registered, no specifier, or the actor or component does not replicate |
| The listen-server host's display never updates | the reaction lives only in the repnotify |
| A client's change reverts or never spreads | the client wrote the property instead of asking the server |
| A Server RPC from a client does nothing | the client does not own the actor (a pickup, the game state, another courier) |
| A client is disconnected after a call | _Validate returned false |
| A multicast runs on one machine only | it was called on a client |
| A late joiner still sees a parcel that was already collected | the collection was sent as an RPC, not as state |
| A far-off actor vanishes on a client and comes back | relevancy, working as designed |
Causes and fixes in full: reference/properties.md §6, reference/rpcs.md §5,
reference/ownership-and-relevancy.md §5, reference/iris.md §4.
Run at least two players with a listen server and with a dedicated server: in the editor's
multiplayer play options, or as separate -server and -game processes connected with
open 127.0.0.1:<PORT> (reference/ownership-and-relevancy.md §6). Check that each client sees
the other's changes, the host sees its own, and a late joiner sees current state.
python3 scripts/rep_lint.py /path/to/CourierRun
python3 scripts/rep_lint.py /path/to/CourierRun --strict # warnings fail too
FAIL lines: a replicated property with no DOREPLIFETIME* registration, a registration for a
property without the specifier, replicated properties with no GetLifetimeReplicatedProps, a
ReplicatedUsing naming an undeclared function or one without UFUNCTION(), an RPC without its
_Implementation or (with WithValidation) its _Validate, and an RPC defined by hand. WARN
lines: no Super:: call, the macros used without Net/UnrealNetwork.h, a scanned actor or
component chain that never sets itself to replicate, a reliable RPC called from Tick, and a
Server RPC on a game state. NOTE lines: RPC names without the prefix, RPCs that name no
reliability, and classes whose .cpp was not scanned. It reads no Blueprint; exit 3 means no
class that declares replication was found.
unreal-gameplay-frameworkunreal-gasunreal-enhanced-inputunreal-cpp-reflectionunreal-modules-buildunreal-editor-pythonreference/iris.md (opens in a new tab)reference/ownership-and-relevancy.md (opens in a new tab)reference/properties.md (opens in a new tab)reference/rpcs.md (opens in a new tab)scripts/rep_lint.py (opens in a new tab)templates/ParcelComponent.cpp (opens in a new tab)templates/ParcelComponent.h (opens in a new tab)templates/ParcelPickup.cpp (opens in a new tab)templates/ParcelPickup.h (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub tipoli5890/game-studio --plugin unreal-dev17 skills in this plugin
/unreal-animationUnreal animation: Animation Blueprint or C++ UAnimInstance, NativeUpdateAnimation, montages, slots, sections, notifies and notify states, root motion./unreal-asset-importImport meshes, textures and animation into Unreal by script: AssetImportTask, Interchange pipelines, glTF and FBX options, static or skeletal mesh, budget check./unreal-automation-testsUnreal automation tests: IMPLEMENT_SIMPLE_AUTOMATION_TEST, Automation Spec, latent commands, Automation RunTest on the command line, the JSON report as verdict./unreal-blueprint-boundarySplit Unreal work between C++ and Blueprint: BlueprintCallable, BlueprintNativeEvent, BlueprintImplementableEvent, exposed properties, data assets, soft references./unreal-compile-loopCompile Unreal C++ from a terminal: target, platform and configuration, UnrealBuildTool and compiler errors, Live Coding or a closed-editor rebuild./unreal-config-logsUnreal config and logs: Default*.ini layering, [/Script/...] sections, console variables, UE_LOG categories and verbosity, Saved/Logs, Saved/Crashes.