JDare / GodotSteamHL

High Level implementation for Steam Networking in Godot
MIT License
61 stars 13 forks source link

OnLobbyDataUpdate method changed in GodotSteam #6

Closed roytu closed 2 years ago

roytu commented 2 years ago

The newest version of GodotSteam changed the _on_lobby_data_update call (dropping the key argument).

Lobby Created called
Created Steam Lobby with id: 109775240950723751
Relay configuration response: True
Initializing P2P Host as 76561198002642118
Lobby Joined!
ERROR: Error calling method from signal 'lobby_data_update': 'Node(steam_lobby.gd)::_on_lobby_data_update': Method expected 4 arguments, but called with 3..
   at: Object::emit_signal (core\object.cpp:1236)

Solution is to just change this line from

func _on_lobby_data_update(success, lobby_id, member_id, key):

to

func _on_lobby_data_update(success, lobby_id, member_id):
JDare commented 2 years ago

If you want to open a PR, I can review and merge.

Thanks!

roytu commented 2 years ago

Thanks! I've submitted PR #7