matchmaking
Raizen884 opened this issue · comments
Hello! I've been using greenworks for my game, but I'm unable to use the matchmaking part of it, I've read the doc about it:
https://github.com/greenheartgames/greenworks/blob/master/docs/matchmaking.md
But those lobby methods do not appear to be accessible,
Do I need something else? I do have your latest release and all.
Edit: seeing the date and reading the experimental, it probably means its unfinished work, so its not available right?
In the last build from this repo exist Lobby methods
https://greenworks-prebuilds.armaldio.xyz/
Even so, there are still essential methods missing.
The method "greenworks.setLobbyData" work only with lobby owner.
Then, it is not possible to have communication in a lobby
There needs use/export these two methods:
ISteamMatchmaking::GetLobbyMemberData = greenworks.getLobbyMemberData
ISteamMatchmaking::SetLobbyMemberData = greenworks.setLobbyMemberData
Then, when other user updates the data, it can be accessed here
greenworks.on('lobby-data-update', function(m_ulSteamIDLobby, m_ulSteamIDMember, m_bSuccess ) {
log('lobby-data-update');
log( m_ulSteamIDLobby ); //String: the Steam ID of the Lobby.
log( m_ulSteamIDMember ); //String: Steam ID of either the member whose data changed, or the room itself.
log( m_bSuccess ); //Boolean: whatever the lobby data was successfully changed.
});
References:
https://partner.steamgames.com/doc/features/multiplayer/matchmaking
https://github.com/greenheartgames/greenworks/blob/master/docs/matchmaking.md
https://github.com/greenheartgames/greenworks/blob/master/docs/events.md