0 votes

I followed part 1 and 2 of this tutorial to make a multiplayer game, and then when I tried instancing more than 1 node into the server and then the client join, it gives this error:

ERROR: (Node not found: "World/Players/@[email protected]" (relative to "/root").)
at: (scene/main/node.cpp:1325)
ERROR: Failed to get cached path from RPC: World/Players/@[email protected].
at: processgetnode (core/io/multiplayerapi.cpp:267)
ERROR: Invalid packet received. Requested node was not found.

in Engine by (21 points)
retagged by

1 Answer

+1 vote
Best answer

RPC's work with the sceneTree paths and it must be identical on all connected peers.
So if one tree looks like this

 ┖╴World
    ┖╴Players
       ┖╴Player2

and the other like this

 ┖╴World
    ┖╴Players
       ┖╴@[email protected]

it will not work

to resolve the error, ensure you properly name all your instanced nodes so they can be reference correctly as this @[email protected] name scheme suggests you have duplicated nodes

by (6,934 points)
selected by

Thanks for the answer, I fixed the error. For some reason, when I instance the two nodes, the Player2 name is “Player3”. So I changed the name to match both client and server and it worked.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.