Join lobby error checking

This commit is contained in:
Chris Bell 2024-12-11 19:26:37 -06:00
parent 9b36da6cf4
commit 00717ea2fe

View File

@ -67,6 +67,8 @@ func _on_lobby_joined(this_lobby_id: int, _permissions: int, _locked: bool, resp
lobby_id = this_lobby_id lobby_id = this_lobby_id
get_lobby_members() get_lobby_members()
make_p2p_handshake() make_p2p_handshake()
else:
GameConsole.log_error("Failed to join lobby: " + str(this_lobby_id) + " with response: " + str(response))
func read_all_p2p_packets(read_count: int = 0) -> void: func read_all_p2p_packets(read_count: int = 0) -> void:
@ -94,6 +96,7 @@ func create_lobby() -> void:
func join_lobby(this_lobby_id: int) -> void: func join_lobby(this_lobby_id: int) -> void:
GameConsole.print_line("Joining lobby: " + str(this_lobby_id))
Steam.joinLobby(lobby_id) Steam.joinLobby(lobby_id)