Godot example errors
The Godot API and quickstart example template don't work the way I assume they're intended to work. For example, when running the unmodified template with 2 clients, you can see that after connecting both clients and then disconnecting one, the
Menu will also pop up on the client that you did not disconnect with. This is because the server_connected and server_disconnected signals are emitted for every other peer, but the code in main.gd of the example appears to assume that it is being called for whenever the client itself connects/disconnects to the server. Here's an example console output with some additional prints.2 Replies
I'm pretty sure the expected behavior for the
_on_server_connected and _on_server_disconnected callbacks are for them to be connected to multiplayer.connected_to_server.connect(_on_server_connected) and multiplayer.server_disconnected.connect(_on_server_disconnected) respectively. There's no need for RivetMultiplayerManager to try to forward the server_connected and server_disconnected signals out of multiplayer.peer_connected(id: int)
(Sorry if this post is a little long and confusing. I figured out the correct solution halfway through typing it.)hey, appreciate the bug report. godot is currently on the backburner (for now) but we'll make sure this gets fixed asap