Facepunch / sbox-issues

177 stars 12 forks source link

[Network] Component added at runtime on a gameobject are not synced between clients #6895

Open bub-bl opened 1 week ago

bub-bl commented 1 week ago

Describe the bug

When you add a component on a gameobject at runtime, then you call an rpc in the component, the host throw an error like this: OnObjectMessage: Unknown Component f951a37f-49fe-46b0-bbdc-d40297a59119 on Phone for RPC LoadConversationsRpcRequest

Phone is the component that call the rpc (Added from the editor) LoadConversationsRpcRequest function that trigger the error. This function is in the component ConversationService (This component is added at runtime)

To Reproduce

Expected behavior

The component should be networked correctly and rpc should work as expected

Media/Files

No response

Additional context

If you can't repro this issue, i can make a repro for you

bub-bl commented 1 week ago

I think the component itself is not networked on other client when created..