Replicating to client from a ChildActorComponent does not work

Hi, I have a spell system class.
I have it attached to my character like so:

44233-spellsystemascomponent.png

I grab the actual spell system object and save it as a replicated variable:

44234-spellsystemasvariable.png

I have the class itself set to replicate as well

44235-spellsystemitself.png

And yet a simple replication to the client like this does not happen on a stand alone game or in a packaged game. But does work in PIE…

44236-replicatedevent.png

Is this a bug? Or intentional?

I tried calling the replicated event various different ways with nothing working. My way to force it to work was to make an interface function that gets implemented in the character class, and replicate down inside there… Then call the client stuff in the spell system from there.

Hi, i think you should also mark the component itself for replication, see: Networking Overview for Unreal Engine | Unreal Engine 5.2 Documentation

That was a good guess, but no effect :frowning:
There was no checkbox like it shows in the doc, I had to set it manually in blueprint. Still didn’t work however.

could you try also selecting “always relevant” in the actor of the component? also what version are you using? I just implemented something similar a week ago and got it working instantly on 4.7.6

I’m working on a 4.8 promoted branch. And yes I have tried setting always relevant. It works perfectly fine in PIE, but in packaged… nope

I think the issue was that I had too much stuff replicating too often. I removed some stuff that didn’t necessarily need replicated and it worked.