- Newest
- Most votes
- Most comments
Unfortunately, it is not possible to set up a FlexMatch ruleset to match players based on a game session's properties in the way you've described. FlexMatch is designed to match players based on player attributes and team compositions, not on game session properties.
FlexMatch works by evaluating player attributes and forming matches before a game session is created or selected. The matchmaking process occurs independently of game session creation and properties.
When you create a game session with specific properties (like 'mode' and 'tournament_id' in your example), these properties are used to configure the game session itself, but they are not directly accessible to the FlexMatch matchmaking rules.
Instead of trying to match based on game session properties, you could consider the following approach:
- Use player attributes to represent the game mode or tournament preferences.
- Set up your matchmaking rules to group players based on these attributes.
- After a match is formed, use the matched players' attributes to determine the appropriate game session properties when creating or selecting a game session.
For example, you could include a player attribute like "preferredMode" in your matchmaking request, and then use that in your ruleset:
"rules": [{
"name": "mode-matching",
"type": "comparison",
"attribute": "preferredMode",
"operation": "=",
"value": "tournament"
}]
This would ensure that players are matched based on their preferred mode. Then, when creating the game session for the matched players, you can set the game session properties based on the matched players' attributes.
Remember, FlexMatch is primarily focused on grouping players together based on their attributes and your defined rules. The actual placement into a game session happens after the match is formed.
Sources
Buiding a Amazon GameLift FlexMatch matchmaker - Amazon GameLift
Adding FlexMatch matchmaking - Amazon GameLift
MatchmakingRuleSet - Amazon GameLift
Relevant content
- asked 2 years ago
- Accepted Answerasked a month ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 4 months ago