Hi -
I already have a matchmaking server in-place, so I wanted to make use of the PlayFab Matchmaking API to reflect the status of the players and be able to view it in the dashboard. After trying a few things, I'm either misunderstanding some of the docs, or there might be a bug with one of the calls. Using the PostMan collection, I'm able to reproduce the sequence of events. Here's what I'm doing
1. Create a GameMode/Version combo in Multiplayer. In this case I'm using Survival/test-version
2. Call Server/RegisterGame
{ "code": 200, "status": "OK", "data": { "LobbyId": "5174896170163967513" } }
As expected, I can see the server in the "Active Games" tab, with the details specified.
3. Call Matchmaker/PlayerJoined with the LobbyId (returned in #2) and a valid PlayFabId
{ "LobbyId": "5174896170163967513", "PlayFabId": "2EEE6BD3EB131348" }
Response:
{ "code": 200, "status": "OK", "data": {} }
At this point, I'd expect to see the player listed under "Players" in the "Active Games", but they're not showing up. Am I missing something here?
Thanks!
-Courtland
PS Thank you so much for the PostMan collection. Makes testing things super easy!
Answer by Brendan · Jul 24, 2017 at 02:22 AM
Aha! Sorry, the Server/RegisterGame should have tipped me off. You're using externally hosted servers. The Matchmaker API is specifically designed for an external matchmaker which is used with our server hosting. I'm afraid it doesn't work with external hosting. We'll update the PlayerJoined call to return an appropriate error for that case.
Answer by Brendan · Jul 22, 2017 at 05:10 AM
That actually sounds correct. Can you give us the Title ID in question, so that we can have a look?
TitleID is 781E (Survive-Dev). It's my internal test account, so feel free to try those calls on that title directly if you need to.
Thanks - I've reproduced this and opened a bug on it for the team.