question

twoten avatar image
twoten asked

Is there a way to prevent the Matchmake call to return a random server and instead pick the most approrpiate.

Hello!

Currently from my experiance and some reading it appears that if I don't use any critera (tags) got matchmaking it just picks a random one.

Is there a way to prevent this and instead make it fill one up, then the next one so they don't get spread out amongst servers for no reason?

Thanks, TwoTen.

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

·
brendan avatar image
brendan answered

The built-in matchmaker specifically provides a random slot from all those available that meet the criteria. If you use a statistic, so that players are matched by skill, it will sort the available slots by the stat value for each available server and choose the one that most closely matches, so that would be one way to weight the distribution. Alternately, you could use GetCurrentGames to get the list of available game sessions, and then use Matchmake with the specific Lobby ID to try to get an available slot in it.

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.

twoten avatar image twoten commented ·

Why was it the designed like that? Are there any advantages to giving a random one?

0 Likes 0 ·
brendan avatar image brendan twoten commented ·

The system was chosen as the basic matchmaker based on the requirements of our earliest games, which needed to support join-in-progress, wanted to ensure load balancing of players across the active game sessions, and to prevent a player who quits and rejoins (because he doesn't like the group in the current server) from being stuck back into the same game he just left.

If you have different requirements, such as a queue-style matchmaker, due to having a minimum number of players required per session to start for example, you should use our Matchmaker API to create a matchmaking service which meets your requirements.

0 Likes 0 ·

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.