added the chat update to see if the steam connection is right and its just the godot one that is broken
This commit is contained in:
@@ -23,7 +23,7 @@ func _ready() -> void:
|
||||
Steam.lobby_created.connect(_on_lobby_created)
|
||||
Steam.lobby_joined.connect(_on_lobby_joined)
|
||||
#Steam.lobby_match_list.connect(_on_lobby_match_list)
|
||||
#Steam.lobby_chat_update.connect(_on_lobby_chat_update)
|
||||
Steam.lobby_chat_update.connect(_on_lobby_chat_update)
|
||||
Steam.lobby_data_update.connect(_on_lobby_data_update)
|
||||
#Steam.join_requested.connect(_on_lobby_join_requested)
|
||||
Steam.persona_state_change.connect(_on_persona_change)
|
||||
@@ -176,6 +176,32 @@ func leave_lobby() -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_lobby_chat_update(lobby_id_update: int, user_changed_id: int, user_making_change_id: int, chat_state: int):
|
||||
print("Lobby chat update. Member: %s, State: %s" % [user_changed_id, chat_state])
|
||||
|
||||
# A member's state has changed, check what happened
|
||||
match chat_state:
|
||||
Steam.CHAT_MEMBER_STATE_CHANGE_ENTERED:
|
||||
print("User %s entered the lobby." % user_changed_id)
|
||||
get_lobby_members()
|
||||
|
||||
Steam.CHAT_MEMBER_STATE_CHANGE_LEFT:
|
||||
print("User %s left the lobby." % user_changed_id)
|
||||
get_lobby_members()
|
||||
|
||||
Steam.CHAT_MEMBER_STATE_CHANGE_DISCONNECTED:
|
||||
print("User %s disconnected from the lobby." % user_changed_id)
|
||||
get_lobby_members()
|
||||
|
||||
Steam.CHAT_MEMBER_STATE_CHANGE_KICKED:
|
||||
print("User %s was kicked from the lobby." % user_changed_id)
|
||||
get_lobby_members()
|
||||
|
||||
Steam.CHAT_MEMBER_STATE_CHANGE_BANNED:
|
||||
print("User %s was banned from the lobby." % user_changed_id)
|
||||
get_lobby_members()
|
||||
|
||||
|
||||
func _on_peer_connected(id: int) -> void:
|
||||
print("Peer connected: %s" % id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user