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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ