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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南