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
질문됨 10달 전254회 조회
1개 답변
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
답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠