Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matchmaking #303

Open
Raizen884 opened this issue Nov 25, 2021 · 1 comment
Open

matchmaking #303

Raizen884 opened this issue Nov 25, 2021 · 1 comment

Comments

@Raizen884
Copy link

Raizen884 commented Nov 25, 2021

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,
image
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?

@Gurigraphics
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants