Hi, i've been following the whole guide of Gamelift setup with FlextMatch, i already setup all the lambda functions and everything to receive the events of FlexMatch and save them on a DynamoDB Table, but no matter what rulesets on the flexmatch i always get the same behaviours: I Open first client login with Cognito Credentials with a Username called "X" and password then start matchmaking i receive the TicketID on the DynamoDB Table as MatchmakingSearching, Then i Open the second client login with Cognito Credentials with a Username called "Y", start matchmaking and then the two ticketsID on DynamoDB change to PotentialMatchCreated and then no gamesession is created and the two players stay like that until the two requests are Timeout. I Saw another post about the same that they could solve it by setting the values:
minSize: 1,
maxSize: 10,
on the fleet, i Tried to set them to minSize:1 and MaxSize 1: To ensure that a instance is running but same behaviour, i checked out that the instance is running by using SSM and remote accessing it to it and checking the logs.
My Current FlexMatch RuleSet : (Which is the same as the other post just to ensure that the ruleset was not causing issues)
{
"name": "simplest_match",
"ruleLanguageVersion": "1.0",
"playerAttributes": [],
"teams": [{
"name": "players",
"maxPlayers": 2,
"minPlayers": 2
}],
"rules": [],
"expansions": []
}
This is the output from SNS when trying to find a match:
When using the example rule set provided on the documentation of flexmatch: https://docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-examples.html
{
"name": "aliens_vs_cowboys",
"ruleLanguageVersion": "1.0",
"playerAttributes": [{
"name": "skill",
"type": "number",
"default": 10
}],
"teams": [{
"name": "cowboys",
"maxPlayers": 2,
"minPlayers": 1
}, {
"name": "aliens",
"maxPlayers": 2,
"minPlayers": 1
}],
"rules": [{
"name": "FairTeamSkill",
"description": "The average skill of players in each team is within 10 points from the average skill of all players in the match",
"type": "distance",
"measurements": [ "avg(teams[*].players.attributes[skill])" ],
"referenceValue": "avg(flatten(teams[*].players.attributes[skill]))",
"maxDistance": 10
}, {
"name": "EqualTeamSizes",
"description": "Only launch a game when the number of players in each team matches, e.g. 1v1, 2v2",
"type": "comparison",
"measurements": [ "count(teams[cowboys].players)" ],
"referenceValue": "count(teams[aliens].players)",
"operation": "="
}],
"expansions": [{
"target": "rules[FairTeamSkill].maxDistance",
"steps": [{
"waitTimeSeconds": 5,
"value": 50
}, {
"waitTimeSeconds": 15,
"value": 100
}]
}]
}
It would help your question if you can provide context, such as what is GameLift and FlexMatch and links to relevant guides that you're following.