Sign In Register

How can we help you today?

Start a new topic

Custom MatchMaking on Player Fields and Location

Hi,

We want to set a matchmaking algorithm for our game. It will be like

Matching will search for 2 seconds First amongst game Friends

Matching will search for 2 seconds according to player level, player age and gender and country ( location/distance).

Matching will search for 2 seconds according to player level, player age and gender 

Matching will search for 2 seconds according to player level, player age 

Matching will search for 2 seconds according to player level

How can we manage such searching algorithm?


Hi Selcan,

Our tutorial here explains the MatchMaking framework to gain an understanding of how the system works. https://docs.gamesparks.com/tutorials/multiplayer/matching-players.html


You might be able to achieve this by manually matching the players with an implementation of your algorithm. Manual matching is explained here https://docs.gamesparks.com/tutorials/multiplayer/matching-players.html#manually-matching


There is also Custom MatchMaking which uses a custom query to match two players. This is explained here https://docs.gamesparks.com/tutorials/multiplayer/matching-players.html#customizing-matching


Hope this helps,

 - Steve

hi steve ,
i  have looked into all of the links u provided. but did not found anything where any custom field from\plalyer is getting compared for match making. can u plz provide an example code?

thanks


@Selcan Güner, did u solve it?

 So, the thresholds provided in the match config dont allow this kind of flexibility. There is only one value you can broaden the match-pool by, so it works more like an ELO rating.

You can use custom queries in your matchmaking request, which would look something like this, if you wanted to restrict matches to a region...

{
  "@class": ".MatchmakingRequest",
  "customQuery": { "country" : { "$eq" : "IE" } },
  "matchShortCode": "shortCode",
  "participantData": { "country" : "IE" },
  "skill": 1
}


But you'd need to write something on the frontend to match this kind of match work at timed intervals

Login to post a comment