Remote Function On Server Not Working

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Obese Termite

This is the error i got. I tried looking at all of the previous forums to fix this, but none worked. I tried changing the remote function to master and puppet, and all of them. Im new to godot multiplayer so i dont know whats wrong.

E 0:00:03.087 _process_rpc: RPC ‘SendButtonPresses’ is not allowed on node /root/Server from: 419113552. Mode is 0, master is 1.
<C++ Error> Condition “!can_call” is true.
<C++ Source> core/io/multiplayer_api.cpp:295 @ _process_rpc()

We’ll need more code than that to figure out what is wrong. maybe make a git repo and link it.

here is a project I worked on with multiplayer: GitHub - ACB-prgm/Godot_GamePad: The Godot GamePad is a two part project that allows players to use their mobile devices as controllers with games made in Godot. The mobile app will be free to download on the Google Play and Apple App stores when it is finished. The aim of this project to make local multiplayer games more accessible.. Idk if it will help you, but I know there aren’t a lot of good resources on making multiplayer so I figured I would share. Be aware though, I have a dedicated server and client rather than having them both in the same script, which might confuse you.

scrubswithnosleeves | 2021-05-03 21:01

I figured it out. I apparently had my script renamed to Server2 when starting the server. Preventing the client server as a singleton fixed it.

Obese Termite | 2021-05-03 23:55