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
preguntada hace 10 meses254 visualizaciones
1 Respuesta
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
respondido hace 9 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas