question

Brent Batas (Lisk) avatar image
Brent Batas (Lisk) asked

Player not showing up in the correct game in Dashboard

screenshot-4-26-2017-8-36-36-am.png

I have a Lobby server (aelobby) which players connect to. Once the player decides to play, the Lobby server spins up a Game server (aeserver) and sends the player the hostname/port of that Game server.

The player successfully disconnects from the Lobby server and connects to the Game server.

However, in the Dashboard (see screenshot), the player still is shown in the Lobby server. Is there some call I am missing that would notify PlayFab that the player is in fact in the Game server now, and no longer in the Lobby server?

Custom Game ServersMatchmaking
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Yes, the game servers need to notify our service when players enter and leave. You can do this a couple of ways:

1. Use our matchmaker. If you're specifying a session to join, have the client use that Lobby ID in the Matchmake call. You get back a matchmaker ticket which the server then uses to verify the player is okay to join, using RedeemMatchmakerTicket. That API call tells us that the player joined the server. When the player leaves, use NotifyMatchmakerPlayerLeft.

2. Use the Matchmaker API. Specifically, use PlayerJoined and PlayerLeft to let us know when people join or leave servers.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.