Garbage Rooms on Server
Hi, I have a game that are runing in self hosted server. So I realized with this log that some rooms are still open with nobody inside them. This are like garbage rooms that couldn't be closed for some reason. How Can I resolve this to the server dont keep these rooms with 0/0 players? The link to the image with log are below.
https://imgur.com/a/h9rzI3s
https://imgur.com/a/h9rzI3s
0
Comments
-
hi, @PedroHN85
Are you using empty room ttl?
Are you using pluings?
did you change code or just use it as is?
best,
ilya0 -
Do you see those rooms on GameServer or on Master Server?
best,
ilya0 -
Yes, i'm Using Plugin and Empty Room TTL, and although the rooms still opened.chvetsov said:hi, @PedroHN85
Are you using empty room ttl?
Are you using pluings?
did you change code or just use it as is?
best,
ilya0 -
I made my own plugin.0
-
Your plugin and EmptyRoomTTL are the places where you should look for the bug
Try to not use them and see whether you will be able to reproduce the issue
best,
ilya0 -
Could it be that empty room ttl is too big?
best,
ilya0 -
I've setted EmptyRoomTTL to 1000
-
@PedroHN85
well, that is not too much.
Then check your plugin code.
First, try without your plugin, I'm sure your garbage rooms will disappear
best,
ilya0 -
I have a method in my plugin to kick all players from the room when some cases occur. This is the method:
private void KickAllPlayersAndCloseTable() { Game game = (Game)PluginHost; var actors = PluginHost.GameActors; foreach (IActor actor in actors) { PluginHost.RemoveActor(actor.ActorNr, "SERVER_COMMUNICATION_ERROR"); } game.OnClose(); game.Release(); }
Is there something wrong on my method that can cause this bug?0 -
@PedroHN85 what you are doing is a rude violation of plugin rules. It is not the responsibility of the plugin to call OnClose and Release methods. No, wonder that you have issues.
All you need to do is RemovingActors. Room will be closed by us.
best,
ilya0