question

Paloma Costa Blanco avatar image
Paloma Costa Blanco asked

matchmake and CreateMatchmakingTicket

Hello, I created a perfectly working matchmaking system following this tutorial:

https://api.playfab.com/docs/tutorials/landing-tournaments/matchmaking-unity-quickstart

but matches the players without taking in consideration the statistics. I saw we can specify and statistic with matchmake, but I don't understand how I can use Matchmake in the structure I made with the tutorial.

Is there a tutorial or any examples of how I must use Matchmake?

Thank you very much :)

3 comments
10 |1200

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

Seth Du avatar image Seth Du ♦ commented ·

May I ask are you talking about the Statistic in Matchmaking - Get Queue Statistics?

0 Likes 0 ·
Paloma Costa Blanco avatar image Paloma Costa Blanco Seth Du ♦ commented ·

it worked perfectly @SethDu

Thank you so much! :)

1 Like 1 ·
Paloma Costa Blanco avatar image Paloma Costa Blanco Seth Du ♦ commented ·

Hi! :) I'm talking about player statistic:


https://api.playfab.com/documentation/client/method/Matchmake

StatisticNameString
Player statistic to use in finding a match. May be null for no stat-based matching.

I want to specify and statistic when matchmaking players, but the only way I see I can do that is with Matchmake, but I don't really know how to use matchmake and how I can add it to the code I made in this tutorial:

https://api.playfab.com/docs/tutorials/landing-tournaments/matchmaking-unity-quickstart

0 Likes 0 ·

1 Answer

·
Seth Du avatar image
Seth Du answered
2 comments
10 |1200

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

Seth Du avatar image Seth Du ♦ commented ·

Theoretically it should be simply: Skill, without any additional characters or notations. Give it a try and tell us if there is any issue.

1 Like 1 ·
Paloma Costa Blanco avatar image Paloma Costa Blanco commented ·

Thank you very much! :) Sorry, didn't see Matchmake was for Legacy Servers!!

One last question, please. I have this code in CreateMatchmakingTicketRequest:

PlayFabMultiplayerAPI.CreateMatchmakingTicket(
         new CreateMatchmakingTicketRequest
         {
             Creator = new MatchmakingPlayer
             {
                 Entity = new EntityKey
                 {
                     Id = entityId,
                     Type = entityType,
                 },


                 Attributes = new MatchmakingPlayerAttributes
                 {
                     DataObject = new
                     {
                         Skill = RankingActual
                     },
                 },
             },

             GiveUpAfterSeconds = 120,
             QueueName = "trialQueue",
         },

I have an Attribute named "Skill", that is the attribute I want to use to match users with equal ranking points. I know I must put that attribute in Attribute path (image below) but I don't know how to write a JSON sentence with that.

It's just {"Skill"} and that would do it? Or am I wrong?

Thank you very much for all! :)

0 Likes 0 ·
subir.png (27.7 KiB)
subir.png (38.1 KiB)

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.