Dynamically create objects with component is invalid replication problem.

I have a parent building actor blueprint, marked it as Replicates(True), then i add a factoryComponent to the child building actor, checked the “Component Replicates” bool in the component, when i run it, listen server side can build units, but the client cannot and throws some error reports after stop.


finally call this event in component:
2023-12-10_123803
debug:

throw error:

so, what should i do?

It won’t work either when i try to change it like this:

RTS_ServerClient.zip (217.5 KB)

Made a little demo. Click the blocks (buildings) and queue up the units (right hand side menu)

Works on client & server, replicates. Of course in the normal game you should only be able to click the buildings you own (unless it is coop).

1 Like

Thank your kind reply, i will look into it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.