From 2a304e9581ac6f54ea53b3e55c919bb89e9167e6 Mon Sep 17 00:00:00 2001 From: Meo Date: Tue, 25 Oct 2016 11:18:09 +0200 Subject: [PATCH] Back to lobby section had naming error in the remote function. At the remote func regisiter_player(). It contained rpc_id(id, "register_info", 1, my_info) where regisiter_info was wrong it should be _player instead of _info --- tutorials/high_level_multiplayer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/high_level_multiplayer.rst b/tutorials/high_level_multiplayer.rst index 16392fe7..2bf37266 100644 --- a/tutorials/high_level_multiplayer.rst +++ b/tutorials/high_level_multiplayer.rst @@ -168,10 +168,10 @@ Let's get back to the lobby. Imagine that each player that connects to the serve # If I'm the server, let the new guy know about existing players if (get_tree().is_network_server()): # Send my info to new player - rpc_id(id, "register_info", 1, my_info) + rpc_id(id, "register_player", 1, my_info) # Send the info of existing players for peer_id in player_info: - rpc_id(id, "register_info", peer_id, players[peer_id]) + rpc_id(id, "register_player", peer_id, players[peer_id]) # Call function to update lobby UI here