def write(self, player_configuration: PlayerConfiguration, name_dict: dict): # This is a dirty trick. With bot = False and rlbot_controlled = True, we have a "party member bot" # which is not supported in RLBot.exe anymore and will just get skipped over. That's what we want. player_configuration.bot = False player_configuration.rlbot_controlled = True player_configuration.spawn_id = -1 player_configuration.name = ""
def write(self, player_configuration: PlayerConfiguration, name_dict: dict): player_configuration.bot = self.bot player_configuration.rlbot_controlled = self.rlbot_controlled player_configuration.bot_skill = self.bot_skill or 0 player_configuration.human_index = self.human_index or 0 player_configuration.name = get_sanitized_bot_name( name_dict, self.name) player_configuration.team = self.team player_configuration.spawn_id = self.spawn_id if self.loadout_config: self.loadout_config.write(player_configuration)