Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child replication issue when ReplicationTarget is changed on parent #649

Open
Skippeh opened this issue Sep 19, 2024 · 4 comments
Open

Child replication issue when ReplicationTarget is changed on parent #649

Skippeh opened this issue Sep 19, 2024 · 4 comments
Labels
A-Replication C-Bug Something isn't working

Comments

@Skippeh
Copy link

Skippeh commented Sep 19, 2024

Child entities with the Replicate component are not replicated along with parent when a new client is added to the parent's ReplicationTarget component

@cBournhonesque
Copy link
Owner

Hm normally it should work.
Is this your situation?

  1. spawning P1 with child C1, both have Replicate
  2. you update the ReplicationTarget on P1 to add a new client
  3. The ReplicationTarget is updated on C1 but C1 is still not replicated to the new client?

@cBournhonesque cBournhonesque added C-Bug Something isn't working A-Replication labels Sep 19, 2024
@Skippeh
Copy link
Author

Skippeh commented Sep 19, 2024

I have P1 with ReplicationTarget { target: NetworkTarget::Only(...) } and C1 with NetworkTarget::All

When i add more clients to P1, C1 is unchanged but should still replicate to the new clients that are added to P1, right?

@cBournhonesque
Copy link
Owner

And you have replicate_hierarchy: True?
I feel like if you add more clients to P1, then C1 will get the same ReplicationTarget and P1 and will also get replicated to the new client; but maybe there's a bug, it would require more testing

@Skippeh
Copy link
Author

Skippeh commented Sep 21, 2024

Yes, replicate_hierarchy is set to true. It works fine if the client is added to P1's network targets when the component is added. It only fails when P1's network targets is updated.

Also,

and P1 and will also get replicated to the new client

P1 is replicated to the new client, but C1 is not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Replication C-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants