Hi all, I'm using the PlayFab API, and trying to create matches. I set up a match queue, and sent a CreateMatchmakingTicket request from one player,
and a JoinMatchmakingTicket from another player. After calling GetMatchmakingTicket request with the prepper ticked id, I keep getting a response that says the ticket status is "WaitingForMatch". It doesn't change to "Matched". When I try to call GetMatch request, I don't have a match id to pass to it. If I try to pass it the ticket id, I get a "The match could not be found" error.
Am I doing something wrong here in the process? Is it correct to send a join request to another ticket? Or should each player open it's own ticket? How do I get a match id?
Thanks in advance 🙏🏻
#Can't get matches in Matchmaker
9 messages · Page 1 of 1 (latest)
You need to keep polling for the GetMatchmakingTicket until the result changes to matched and then you can get the match with GetMatch
Each player opens their own ticket if you expect them to be joining asynchronously
Yes that solved it. Thank you!
@glad surge No problem and glad to be of service!
If possible I would recommend you add a bot mode for If the ticket times out.
What do you mean by bot mode?
If a player is in ranked or random matchmaking you should try making a bot session if no players can be found
what you can do:
as people in here tried and documented somewhere below), constantly shrink the required people for a match with rules, when a match is created/players are matched; fill up the remaining players with bots as specified above 🙂
Yup and if there's no players at all give them all bots if possible. Genre may vary things abit