#[Netcode] Sending ClientRpc to non-observer!

1 messages · Page 1 of 1 (latest)

balmy fiber
#

I use CheckVisibility and NetworkShow, NetworHide, i am getting this error,

[Netcode] Sending ClientRpc to non-observer! TargetClientIds contains clientId 15 that is not an observer!

I think its because rpc getting called on the object which is hidden for player, but netcode should know this and avoid calling rpc to them right?

ripe atlas
#

Are you still using the older [ClientRpc]? Does the same thing happen when using [RPC(SendTo.Everyone)]?

balmy fiber
#

Nope I am not using Client Rpc in any code

balmy fiber
ripe atlas
balmy fiber
#

But why it sends on network hide object

ripe atlas
#

Dunno, sounds like a bug. Which version of NGO are you on?

nova thicket
#

Does the error actually break anything? Does it fire for more than once?

ripe atlas
#

Yea, if its just a warning you can probably ignore it

nova thicket
#

Components like NetworkTransform and NetworkAnimator send updates very frequently. It's not uncommon for a single message to get interrupted or lost occasionally when you do something like change observers or have a disconnect.

ripe atlas
#

The Network Animator is probably caching the observers on startup and not updating them later

balmy fiber
balmy fiber