question

leonard-hansing avatar image
leonard-hansing asked

[Matchmaking] There were no latency measurements found for any of the users in the ticket

I am trying to do matchmaking with Thunderhead enabled.

var createResponse = await PlayFabMultiplayerAPI.CreateMatchmakingTicketAsync(new CreateMatchmakingTicketRequest
            {
                Creator = new MatchmakingPlayer
                {
                    Entity = new PlayFab.MultiplayerModels.EntityKey
                    {
                        Id = AuthService.Id,
                        Type = AuthService.Type
                    },
                    Attributes = new MatchmakingPlayerAttributes
                    {
                        DataObject = new
                        {
                            latencies = new object[]
                            {
                                new {
                                    region = "EastUs",
                                    latency = 150
                                },
                                new {
                                    region = "WestUs",
                                    latency = 100
                                }
                            }
                        }
                    }
                },
                QueueName = QUEUE,
                GiveUpAfterSeconds = 120
            });


            Debug.Log(createResponse.Error.ErrorMessage);

Debug.Log output:

There were no latency measurements found for any of the users in the ticket. Since the queue has thunderhead enabled, latency values are required to be sent for the region selection rule.
Matchmaking
screen.png (37.9 KiB)
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

·
leonard-hansing avatar image
leonard-hansing answered

When I changed the Attribute path in the region select rule from '$.latencies' to 'latencies' it worked.

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.