Terminate game session

0

Hello guys! I'm kinda new to Gamelift for Unreal Engine and I'm using eeldev plugin. It's working great but now I'm having a problem. For example, in some cases when someone creates a new game session and suddenly decides to leave without joining the session, that session will remain empty and active. What I want to do is to check every 2-3 minutes if the server is empty and destroy it after 2 minutes (in case it's empty). This is what I've done but it's crashing the session. Enter image description here Enter image description here Enter image description here

I also have another question. I'm using StartMatchmaking to search/create a game session. After the ticket is in queued, I use DescribeMatchmaking to get the status of the ticket. What I want, is to display the matched players but this is showing only if the matchmaking result is completed (which it's after 10-15 seconds). Is this the time it takes to match multiple players? Even if I started the game at the same time? I get the players from DescribeMatchmaking, using the game session arn -> Describe Player Session. Thank you!

zerox
asked 9 months ago247 views
1 Answer
0

Hey zerox,

Regarding your question about matchmaking, if you've attached a GameSessionQueue and Fleets to your MatchmakingConfiguration the ticket status will reach "COMPLETED" once the players have been matched together, the game session has been placed on your fleet, the game session has activated successfully, and finally the player sessions have been created.

If you'd like to access the list of players as soon as they have been matched, you can integrate an SNS topic with your matchmaking configuration and listen for the PotentialMatchCreated event.

Regarding your other question can you provide more information on what you mean by the session crashing?

Regards,

AWS
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions