Skip to content

Quirk with manually started bots #142

Description

@swz-git

When you start a match with a bot that is started manually, you must wait for ~1-3 seconds before starting that bot for core to recognize it as ready. You should be able to connect with the bot immediately after the match manager has received the FieldInfo and MatchConfiguration packets.

Activity

  1. added theissue type on Jan 27, 2026
  2. VirxEC commented on Feb 2, 2026

    @VirxEC
    Collaborator

    This is not a trivial fix, and something I've know about for a while.

    The issue is that since the bot technically connected before the match started, it's treated as if the bot was a part of the previous match. The solution would be to put the server in some kind of intermediate state as soon as the match start request comes in, but due to the nature of multithreading it might shrink the "wait" phase down to 0.01ms or something but it might be hard to guarantee the expected behavior if a bot connects at the same time as a match start request.

    Either way 0.01ms is better than 1+ seconds. Perhaps some sort of global lock/flag can be implemented?

  3. NicEastvillage commented on Feb 2, 2026

    @NicEastvillage
    Contributor

    The issue is that since the bot technically connected before the match started, it's treated as if the bot was a part of the previous match.

    I think we can find a solution that satisfies the condition mentioned by swz:

    You should be able to connect with the bot immediately after the match manager has received the FieldInfo and MatchConfiguration packets.

    At the point where the MatchConfig and FieldInfo are sent out, the server should have enough information to know that the new connections belong to the new match. Maybe we are just need to clear the agent id reservation earlier?

  4. VirxEC commented on Feb 2, 2026

    @VirxEC
    Collaborator

    It depends on if the bot is being disconnected or if it's just not getting MC/FI. If it's the latter, we probably can just change the order something happens in to fix it.

  5. VirxEC commented on Feb 2, 2026

    @VirxEC
    Collaborator

    Upon first looking into it, I don't see any obvious problems with manually booting a bot right after the MM gets MC/FI. There shouldn't be any problem with that; I'll have to try and actually replicate what is definitely a bug.

  6. moved this from Todo to In Progress in RLBot v5.0 Releaseon Feb 2, 2026
  7. moved this from In Progress to Todo in RLBot v5.0 Releaseon May 29, 2026
  8. moved this from Todo to In Progress in RLBot v5.0 Releaseon Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions