Skip to content

Commit 6f2935a

Browse files
committed
Warn upon non 34 boost pad count
1 parent fd5d152 commit 6f2935a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/necto/bot.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ class Necto(Bot):
5454
def initialize_agent(self):
5555
# Initialize the rlgym GameState object now that the game is active and the info is available
5656
self.obs_builder = NectoObsBuilder(self.field_info)
57+
58+
if len(self.field_info.boost_pads) != 34:
59+
self.logger.warning(
60+
"The standard number of boost pads is 34, but this map has %d:%s",
61+
len(self.field_info.boost_pads),
62+
"\n".join(map(str, self.field_info.boost_pads)),
63+
)
64+
5765
self.game_state = GameState(self.field_info, self.tick_skip)
5866

5967
self.logger.warning(

0 commit comments

Comments
 (0)