Server and client not communicating when running them on separate scenes

Godot Version



I’m programming a chess-like war game on Godot 4.2.1. I’m currently programming the multiplayer functionality so that I could start coding the game logic (it would be hard to code the logic if you can’t test it). Currently, the networking works if I run two instances of either game_red or game_blue, but it doesn’t work if I run both game_red and game_blue simultaneously. Why is that? I don’t understand.

Here’s the project: GitHub - mankki/WarGame

PS. All critique on the code is warmly welcome.

On godot 4.2 I belive you should call receive_message.rpc(), not rpc(“receive_message”)