- Home /
How to solve Couldn't send rpc function[server to player]
My question is.. how do I prevent the error "Couldn't send RPC function" from happening? it happens when i send an rpc constantly to players on the server and if a player disconnects it gives the error... I've tried 'catching' the error but I seem to be unable to..
I'm trying to send information from each player prefab that is on the server [from server] to all other players, instead of sending information constantly from player > player because i don't want some one to suffer and see a player like.. 'warp' around on the server because he has crappy internet.. and no deleting the rpcs when player leaves does not fix it for some reason.
so.. my 2 questions are: 1. how do i prevent Couldn't send RPC function error upon player disconnection when sending information constantly to client 2. if 1 is not possible due to a bug or something, how do i catch it? or should i just.. let it be? [ dont think it can cause harm ]
Answer by 34638a · Jul 09, 2014 at 11:07 AM
I think this error is caused when a RPC is sent and it expects a response but there is no longer anyone there to receive it. It shouldn't actually affect the runtime of the game I received this error for a while myself and am not sure what I did to fix it but it is a non-fatal error and runtime can still happen and this error should also never occur on the client as it is a server side only error.
Your answer
Follow this Question
Related Questions
Bug report // How do I do it then! ;[ 1 Answer
UNET - Trigging an action on one client from the server 0 Answers
RPC sync issues 0 Answers
ClientRpc is not being called on OnStartClient 0 Answers
UNET Rpc calls wrong inherited script 2 Answers