While working on a new gamemode I was looking to create ring effects around every player which have their color constantly updated to represent whether the player can move or not; you can only move once per second in this gamemode! Unfortunately, I’ve found that the servers will consistently crash after around one minute of gameplay with the effect loop activated.
After many more complex iterations, I’ve stripped down the code as much as possible to isolate the issue. Here is the most simple loop that causes the crash:
- Create Effect (Position of Event Player)
- Wait 0.25
- Destroy All Effects
- Wait 0.25
It works as expected… until the server crashes a minute in. I’ve done a lot of experimentation with this: The visual effect chosen is irrelevant, the reevaluation criteria are irrelevant, the color is irrelevant, the visibility doesn’t matter and the size is irrelevant. No matter what, it’ll still crash after enough effects are created and subsequently destroyed.
Import the following code, completely fill the server with bots (the more players, the faster the crash) and start the game. After around one to two minutes, it’ll crash. D6DAE