- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
To use parties you need to submit all players for the ticket in the same request. Just using the same ticket id will not work.
e.g., something like:
- match_response = gl_client.start_matchmaking(
- ConfigurationName=[MATCHMAKING_CONFIGURATION_NAME],
- Players=[{"PlayerId": firstPlayerId,"PlayerAttributes": firstPlayerAttr }, {"PlayerId": secondPlayerId, "PlayerAttributes": secondPlayerAttr}, etc...],
- TicketId= ticketIdForParty )
Thank you so much and I have one more question. Does that mean all party members share their attributes with each other to request their matchmakings like above start_matchmaking()? So if a party has 4 members, start_matchmaking() will be called with the same parameters four times. is it right?
Each player in the party has their own separate attributes which are then passed in on a single start matchmaking request. Typically the game developer will have a game service or similar where the party will be formed. Once the party is set and ready for matchmaking a single call (yes, only one call per ticket, regardless of the party size) will be made for that group of four. When the completion is observed (typically via SQS) the game service would notify each of the four players in the party that the game is ready to be joined.
Does that help?
Sorry to bring up an old thread, but to confirm... this means that since players have their own attributes that are passed onto flexmatch, the players in a party can end up on different teams depending on the ruleset that is used. Correct?
@REDACTEDUSER
Otherwise, this is probably the best pre-canned answer: from (https://forums.awsgametech.com/t/does-flexmatch-support-startmatchmaking-where-the-team-is-already-big-enough-to-satisfy-the-rule-used/5243/10)
"If you know all the players that you want to be together on a team, you submit all of them on a single ticket, and then the matchmaker will find players for the other team (assuming you have a match with 2 teams).
If you have all of the players you want for both teams, FlexMatch won’t be able to put the teams together in the same match – you would need to just start your game session by creating it and the player sessions directly."
If that doesn't help, could you describe the scenario you're trying to make work
I think you've answered my question. So I basically have all of my players for a match, and I was creating a flexmatch ticket with both players in the hopes that a game session would be created from that. The reason being is that the game server is built to use the player attributes that are passed through to flexmatch. If I don't go through flexmatch, I will have to do all of that manually which I was trying to avoid. But it seems that's the direction I need to go.
Thanks Pip!
Just to close this thread out - FlexMatch matchmaking data is only set for matchmaking generated game sessions and player session data is not set by FlexMatch at this time.
If you are making your own matches then you need a hybrid approach, ie read the matchmaker data if it exists, or send it along via GameSession data/properties or via player session data when it doesn't (ie manual match mode)
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 3 anni fa