Custom game crashes after a period of time

My workshop game lobbies crash after about an hour, even with few players in the game. While the mode has about 165 rules to it and many player variables, there aren’t any rules that loop continuously.

Any idea why it could be happening?

It is very probably the inspector that has too much data, do disable inspector().

another thing is the game will stop games in servers that have run to long
probably to stop from overloading the server

In that case it would display “game lasted too long, shutting down”.

sometimes people dont point it out and even when then do i have had people who after it says that and it says “game error shuting down” they thing its from something else so i had to check

Thanks for the tip, gonna try it out.