Why RPC doesn't work ?

GenoxGenox Posts: 7Member

Hi, after a lot of research, I didn't find a good answer on the net, so I ask you.

So, I created 2 projects, a client and a server. In my client, there is a textedit, when the text inside is changed, it send it to the server through rpc. This is the code :

In client :
func send_text(text):
rpc("get_text", text)

In server :
remote func get_text(new_text):
print(new_text)

But, when I do that, the server's debugger says that rpc failed to get path and node is not found

When I do print(self.get_path()) in server and client, path are same : "root\Network"

Help plz :anguished:


Tags :

Best Answer

  • GenoxGenox Posts: 7
    Accepted Answer

    Oh nevermind, I restarted a new project and now it works well

Answers

  • GenoxGenox Posts: 7Member
    Accepted Answer

    Oh nevermind, I restarted a new project and now it works well

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file