Hello,
Currently trying to understand how the new matchmaking works. In this link: tutorial There's this section:
Once your players have matched, you will want to have them join each other - either through a server, or by peer-to-peer connections.
If you are using a dedicated server, you can rely on the Match ID to uniquely identify the group of players they should be in. If you are using PlayFab's multiplayer servers, GetMatch
will provide a server and port for your players to connect to.
We're not using PlayFab Multiplayer, we run our dedicated servers on our own systems. From this paragraph, I understand PlayFab matchmaking only takes me through client tickets and then I have to process that match id and manage game server allocations myself. But this leads me to 2 questions:
1) How would backfill work, in this case?
2) Or, if I use "Create Server Matchmaking Ticket" and "Create Server Backfill Ticket" APIs, will playfab still assign matches to my custom game servers who registered themselves to playfab?
I didn't find any mention of custom game servers other than that one sentence under "Connecting your players together", would be amazing if someone could help me figure this out.
Answer by Sarah Zhang · Jan 06, 2021 at 07:26 AM
>> 1) How would backfill work, in this case?
Backfill tickets can work with the custom dedicated server. When you call the API CreateServerBackfillTicket, you can fill the IP address and Ports in the its ServreDetails fieldto let thematched players can connect to the corresponding server. This ServerDetails can be the details of PlayFab Multiplayer Server instance, it also can be the details of your own server.
>> 2) Or, if I use "Create Server Matchmaking Ticket" and "Create Server Backfill Ticket" APIs, will playfab still assign matches to my custom game servers who registered themselves to playfab?
The API CreateServerMatchmakingTicket and CreateServerBackfillTicket can be used with your custom game server. The CreateServerMatchmakingTicket is used to create a new matchmaking ticket on server. And the CreateServerBackfillTicket is designed to create a backfill ticket for the ongoing game. After you called the CreateServerMatchmakingTicket on the server, you need to complete the process of “Get Ticket” and “Get Match” on the server too. Then you can get the MatchID then allocate the server for every MatchID on your own. CreateServerBackfillTicket is designed for ongoing games, in other words, it’s designed for the allocated servers. You needn’t allocate new servers for the MatchIDs generated by backfill matchmaking.
Hey Sarah,
Thanks for the info. Could you give me some examples about "completing the process of Get Ticket and Get Match". It's not exactly clear to me specifically what I need to do to allocate the server for every MatchID on my own. Are there any documentation or online examples about this?
You can find the example in this repository -- https://github.com/PlayFab/PlayFab-Samples/tree/066ff3aede91923e0650ee4d8ee3da185ec3f2a7/Samples/Win32/ThunderRumble.
Custom game server instance (unity) does not start 1 Answer
What is the best way for a player to pass parameters into the server during matchmaking? 1 Answer
How do you get a QueueName on a game server? 3 Answers
How do I find the fields to input into RedeemMatchmakerTicket in UE4? 1 Answer
Check Playfab ID format 1 Answer