Prevent GameUpdate
ticks triggered by non-terraria connections (like bots and scripts).
#2600
PotatoCider
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Imho this would be better to address in the base game, but it’s probably a good use case for an OTAPI patch. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Almost always, if you have a terraria server exposed to the internet, there will be bots which trigger the server's
GameUpdate
while the bot's connection is still alive. This happens becauseNetplay.HasClients
is set totrue
even if the client hasn't sent a single game packet. More annoying, they also trigger backups and weird things happening like bee queen spawning in a bee world (probably due to a falling star hitting the hive when the game ticks) even when there are no players online (2nd Picture).I'm wondering if it is better to suppress game updates and backups for when these bots are connecting to the server. Suppressing game update ticks would require OTAPI to be able to suppress the
Main.Update
method. Is this feature safe and sound to implement?(xPanini's Terraria-Chat-Relay)
Beta Was this translation helpful? Give feedback.
All reactions