Hi, I'd like to know what would be the best way to avoid matching players that don't use the same client version. We currently set the skill and the matchshortcode when creating a new matchmaking request. There are other parameters available but it's not clear what they do.
Thanks!
Best Answer
V
Vincent Paquette
said
over 5 years ago
Thanks :) I ended up using the customQuery field this way:
MatchGroup parameter will allow you to match players that use the same client version. Only players with the same MatchGroup value are matched together. So if you pass in the client version as the MatchGroup string, only players within that client version will be matched.
Vincent Paquette
Hi, I'd like to know what would be the best way to avoid matching players that don't use the same client version. We currently set the skill and the matchshortcode when creating a new matchmaking request. There are other parameters available but it's not clear what they do.
Thanks!
Thanks :) I ended up using the customQuery field this way:
...
.SetParticipantData(new GSRequestData(new Dictionary<string, object>(){{ "version", Application.version }}))
.SetCustomQuery(new GSRequestData(new Dictionary<string, object>(){{ "players.participantData.version", Application.version }}))
...
And it works fine.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstTech Support
Hi Vincent,
MatchGroup parameter will allow you to match players that use the same client version. Only players with the same MatchGroup value are matched together. So if you pass in the client version as the MatchGroup string, only players within that client version will be matched.
More information here: https://docs.gamesparks.com/api-documentation/request-api/multiplayer/matchmakingrequest.html
Cheers,
Omar
Vincent Paquette
Thanks :) I ended up using the customQuery field this way:
...
.SetParticipantData(new GSRequestData(new Dictionary<string, object>(){{ "version", Application.version }}))
.SetCustomQuery(new GSRequestData(new Dictionary<string, object>(){{ "players.participantData.version", Application.version }}))
...
And it works fine.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics