diff --git a/rlbot/managers/bot.py b/rlbot/managers/bot.py index 1ec9976..3499df6 100644 --- a/rlbot/managers/bot.py +++ b/rlbot/managers/bot.py @@ -49,7 +49,7 @@ def __init__(self, default_agent_id: Optional[str] = None): self._handle_ball_prediction ) self._game_interface.controllable_team_info_handlers.append( - self._handle_player_mappings + self._handle_controllable_team_info ) self._game_interface.packet_handlers.append(self._handle_packet) @@ -97,7 +97,9 @@ def _handle_field_info(self, field_info: flat.FieldInfo): ): self._initialize() - def _handle_player_mappings(self, player_mappings: flat.ControllableTeamInfo): + def _handle_controllable_team_info( + self, player_mappings: flat.ControllableTeamInfo + ): self.team = player_mappings.team controllable = player_mappings.controllables[0] self.spawn_id = controllable.spawn_id diff --git a/rlbot/managers/hivemind.py b/rlbot/managers/hivemind.py index 4527738..3450022 100644 --- a/rlbot/managers/hivemind.py +++ b/rlbot/managers/hivemind.py @@ -50,6 +50,9 @@ def __init__(self, default_agent_id: Optional[str] = None): self._game_interface.ball_prediction_handlers.append( self._handle_ball_prediction ) + self._game_interface.controllable_team_info_handlers.append( + self._handle_controllable_team_info + ) self._game_interface.packet_handlers.append(self._handle_packet) self.renderer = Renderer(self._game_interface) @@ -97,7 +100,9 @@ def _handle_field_info(self, field_info: flat.FieldInfo): ): self._initialize() - def _handle_player_mappings(self, player_mappings: flat.ControllableTeamInfo): + def _handle_controllable_team_info( + self, player_mappings: flat.ControllableTeamInfo + ): self.team = player_mappings.team for controllable in player_mappings.controllables: self.spawn_ids.append(controllable.spawn_id) diff --git a/rlbot/managers/script.py b/rlbot/managers/script.py index 215e499..7e62663 100644 --- a/rlbot/managers/script.py +++ b/rlbot/managers/script.py @@ -47,6 +47,9 @@ def __init__(self, default_agent_id: Optional[str] = None): self._game_interface.ball_prediction_handlers.append( self._handle_ball_prediction ) + self._game_interface.controllable_team_info_handlers.append( + self._handle_controllable_team_info + ) self._game_interface.packet_handlers.append(self._handle_packet) self.renderer = Renderer(self._game_interface) @@ -91,7 +94,9 @@ def _handle_field_info(self, field_info: flat.FieldInfo): ): self._initialize() - def _handle_player_mappings(self, player_mappings: flat.ControllableTeamInfo): + def _handle_controllable_team_info( + self, player_mappings: flat.ControllableTeamInfo + ): self.team = player_mappings.team controllable = player_mappings.controllables[0] self.spawn_id = controllable.spawn_id diff --git a/rlbot/version.py b/rlbot/version.py index 4d6ed7e..008f4b7 100644 --- a/rlbot/version.py +++ b/rlbot/version.py @@ -1,4 +1,4 @@ -__version__ = "5.0.0-beta.9" +__version__ = "5.0.0-beta.10" RESET_SEQ = "\033[0m" @@ -15,6 +15,9 @@ def _get_color(color: int) -> str: ) RELEASE_NOTES = { + "5.0.0-beta.10": """ + Fix bug in hivemind & script start + """, "5.0.0-beta.9": """ Rename the `initialize_agent` method to `initialize` Update to new sockets spec diff --git a/tests/hivemind.toml b/tests/hivemind.toml index 8d3f741..99135c6 100644 --- a/tests/hivemind.toml +++ b/tests/hivemind.toml @@ -1,6 +1,5 @@ [rlbot] launcher = "steam" -auto_start_bots = true [match] game_mode = "Soccer"