Skip to content

[Small issue] If you pause bots, they get disconnected due to inactivity. #165

@The-Gig

Description

@The-Gig

Description:
This is just a small issue because it's only relevant to a few development/testing scenarios, however I write it down anyway, as it actually happened to me while doing a few tests.
If you "pause" bots, they will be "disconnected" after three minutes, due to inactivity. In case you are doing some testing which requires to keep them quiet, stationary and unaggressive for a long time, this can be a problem.

How to reproduce:

  • load a map with devmap [mapname]
  • add one or more bots
  • bot_pause 1
  • wait three minutes (you can speed up things by tweaking timescale value)
  • see bots disconnect with "timed out" in console.
    UPDATE: It looks like the above happens with non-team-based modes (I tested gametype 0): in team-based modes (I tested 3, 5 and 8) the bot disconnects earlier (like one minute and half?) and with "server command overflow" in console instead of "timed out".

Suggested behavior:
I guess the inactivity check routine should verify whether the client is a bot, and whether bot_pause<>0: if both are true, the client should not be disconnected, assuming that there is a developer/tester which is purposedly testing something.
Or maybe just ignore bots at all?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot/aiIssue related with the AI/computer-controlled players/botsbugSomething went wrong.requires testingWe need to be sure this has been fixed. Posts with this tag have D/L links.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions