RPC Super Mystery

Hello I’m a super mystery.
I have a PRC code with various functions and studies was functioning normally. Of a sudden I can no longer create an RPC function.
for example

@RPC
function closeNow()
{
Application.Quit();
}

Then i have one button that make
networkView.RPC(“closeNow”, RPCMode.All);

Some functions are working normally but no new features. When I click the button, the customer who is running the button also performs the function and close, but not others. As if they did not receive the call from the PRC.

I appreciate the help

Debug the other side and make sure the RPC is not received.

It was debug and some RPC is not received.
Below a few lines of the log after the last line no other function can be received

Received RPC ‘atualizarCidadeRPC’- mode 2 - sender 192.168.1.101:3000

(Filename: …..\Runtime\Network\NetworkManager.cpp Line: 2531)

Relay RPC - name: atualizarCidadeRPC - mode 2 - sender 192.168.1.101:3000

(Filename: …..\Runtime\Network\NetworkManager.cpp Line: 2531)

Relay RPC - name: __RPCNetworkInstantiate - mode 2 - sender 192.168.1.101:3000

(Filename: …..\Runtime\Network\NetworkManager.cpp Line: 2531)

Received RPC ‘dadosCriarEmpresaRPC’- mode 2 - sender 192.168.1.101:3000

(Filename: …..\Runtime\Network\NetworkManager.cpp Line: 2531)

Relay RPC - name: dadosCriarEmpresaRPC - mode 2 - sender 192.168.1.101:3000

(Filename: …..\Runtime\Network\NetworkManager.cpp Line: 2531)

Received RPC ‘pausar’- mode 2 - sender 192.168.1.101:3000

(Filename: …..\Runtime\Network\NetworkManager.cpp Line: 2531)

Relay RPC - name: pausar - mode 2 - sender 192.168.1.101:3000

(Filename: …..\Runtime\Network\NetworkManager.cpp Line: 2531)


I realized that most of the functions that do not work are those that are present only on the clients.

The pause function is thrown by the game server and works at any time.

You need to check the docs on RPC’s but i think they need to excist in all instances.

Thank you! :slight_smile: Indeed all RPC functions must exist in all applications. In my case some of them were not on the server.