More PlayerExitReason Enums

As a Roblox developer, it is currently too hard to tell why a player left the game. Roblox recently added Enum.PlayerExitReason which partially solves the issue but bundles game crashes, network time outs, and players leaving the game on their own with the game menu. Adding the following enums to this would help solve the issue:

  • enum.PlayerExitReason.Voluntary - Left using the game menu, Alt F4, Command Q, and anything equivalent on console and mobile
  • enum.PlayerExitReason.TimedOut - Their connection timed out
  • enum.PlayerExitReason.CaughtException - A crash that triggers the “Roblox detected an error and needs to close” popup
  • enum.PlayerExitReason.OutOfMemory - A crash that triggers the “Out of memory” popup

These would make it way more clear why the player left the game outside of just the three current enums

48 Likes

It would also allow developers to make features where if the player disconnections and rejoins they get their stuff back

10 Likes

Amazing idea! It would be super useful — if it gets added, every developer is going to use it, trust me.

data store

1 Like

Pretty sure they’re trying to say that it would make it possible for developers to have a system where items or progress is permanently lost under certain circumstances be more forgiving if they didn’t intentionally try to leave the game to avoid losing progress but had their connection disrupted by something out of their control.

4 Likes

enum.PlayerExitReason.CaughtException and enum.PlayerExitReason.OutOfMemory may not be reliably communicated to the server due to the fact, you know, the application suddenly exited.

1 Like

i’d say most crashes result in a dialogue popup and nearly all out of memory results in a kick-style popup, to the point that roblox has crash statistics available for games

3 Likes

It would be good to know if it was by Teleportation, that is, if TeleportService was used.

3 Likes

bump, need enums like these and more, would improve user experience

unfortunately, the staff member who made the announcement has stated twice they would not add a disconnect exit reason

i find his reasoning to be kind of stupid, as another person said, it’s something the developer should worry about

1 Like