def start_match(self): self.wait_until_loaded() # self.game_input_packet.bStartMatch = True rlbot_status = self.game.StartMatch(self.start_match_configuration) if rlbot_status != 0: exception_class = get_exception_from_error_code(rlbot_status) raise exception_class() self.logger.debug('Starting match with status: %s', RLBotCoreStatus.status_list[rlbot_status])
def start_match(self): self.wait_until_loaded() # self.game_input_packet.bStartMatch = True rlbot_status = self.game.StartMatch(self.start_match_configuration, self.create_status_callback( None if self.extension is None else self.extension.onMatchStart), None) if rlbot_status != 0: exception_class = get_exception_from_error_code(rlbot_status) raise exception_class() self.logger.debug('Starting match with status: %s', RLBotCoreStatus.status_list[rlbot_status])
def start_match(self): self.wait_until_loaded() self.wait_until_ready_to_communicate() # self.game_input_packet.bStartMatch = True if self.start_match_flatbuffer: flatbuffer_bytes = self.start_match_flatbuffer.Output() rlbot_status = self.game.StartMatchFlatbuffer( bytes(flatbuffer_bytes), len(flatbuffer_bytes)) else: rlbot_status = self.game.StartMatch(self.start_match_configuration) if rlbot_status != 0: exception_class = get_exception_from_error_code(rlbot_status) raise exception_class() self.logger.debug('Starting match with status: %s', RLBotCoreStatus.status_list[rlbot_status])