def base_create_agent_configurations(cls) -> ConfigObject: """ This is used when initializing agent config via builder pattern. It also calls `create_agent_configurations` that can be used by BaseAgent subclasses for custom configs. :return: Returns an instance of a ConfigObject object. """ config = ConfigObject() location_config = config.add_header_name(LOCATIONS_HEADER) location_config.add_value(PYTHON_FILE_KEY, str, description="Bot's python file.\nOnly need this if RLBot controlled") location_config.add_value(REQUIREMENTS_FILE_KEY, str, description="Python requirements.txt file listing needed dependencies.") location_config.add_value(NAME_KEY, str, default='nameless', description='The name that will be displayed in game') location_config.add_value(LOGO_FILE_KEY, str, description="Location of an image file to use as your bot's logo") location_config.add_value(SUPPORTS_EARLY_START_KEY, bool, description="True if this bot can be started before the Rocket League match begins.") location_config.add_value(REQUIRES_TKINTER, bool, description="True if the tkinter library is needed.") location_config.add_value(USE_VIRTUAL_ENVIRONMENT_KEY, bool, description="True if the runnable wants to run in a virtual environment.") details_config = config.add_header_name(DETAILS_HEADER) details_config.add_value('developer', str, description="Name of the bot's creator/developer") details_config.add_value('description', str, description="Short description of the bot") details_config.add_value('fun_fact', str, description="Fun fact about the bot") details_config.add_value('github', str, description="Link to github repository") details_config.add_value('language', str, description="Programming language") details_config.add_value('tags', str, description="Comma separated list of tags, used by RLBotGUI") cls.create_agent_configurations(config) return config
def create_bot_config_layout(): config_object = ConfigObject() rlbot_header = config_object.add_header_name(RLBOT_CONFIGURATION_HEADER) rlbot_header.add_value( EXTENSION_PATH_KEY, str, default=None, description='A path to the extension file we want to load') team_header = config_object.add_header_name(TEAM_CONFIGURATION_HEADER) team_header.add_value( "Team Blue Color", int, default=0, description="Changes Blue team color, use 0 to use default color") team_header.add_value( "Team Blue Name", str, default="Blue", description="Changes the Team name to use instead of 'Blue'") team_header.add_value( "Team Orange Color", int, default=0, description="Changes Blue team color, use 0 to use default color") team_header.add_value( "Team Orange Name", str, default="Orange", description="Changes the Team name to use instead of 'Orange'") add_match_settings_header(config_object) add_mutator_header(config_object) add_participant_header(config_object) return config_object
def base_create_agent_configurations(cls) -> ConfigObject: """ This is used when initializing agent config via builder pattern. It also calls `create_agent_configurations` that can be used by BaseAgent subclasses for custom configs. :return: Returns an instance of a ConfigObject object. """ config = ConfigObject() location_config = config.add_header_name(BOT_CONFIG_MODULE_HEADER) location_config.add_value(LOOKS_CONFIG_KEY, str, description='Path to loadout config from runner') location_config.add_value(PYTHON_FILE_KEY, str, description="Bot's python file.\nOnly need this if RLBot controlled") location_config.add_value(BOT_NAME_KEY, str, default='nameless', description='The name that will be displayed in game') details_config = config.add_header_name(BOT_CONFIG_DETAILS_HEADER) details_config.add_value('developer', str, description="Name of the bot's creator/developer") details_config.add_value('description', str, description="Short description of the bot") details_config.add_value('fun_fact', str, description="Fun fact about the bot") details_config.add_value('github', str, description="Link to github repository") details_config.add_value('language', str, description="Programming language") cls.create_agent_configurations(config) return config
def create_bot_config_layout(): config_object = ConfigObject() rlbot_header = config_object.add_header_name(RLBOT_CONFIGURATION_HEADER) rlbot_header.add_value( EXTENSION_PATH_KEY, str, default=None, description='A path to the extension file we want to load') rlbot_header.add_value( NETWORKING_ROLE_KEY, str, default='none', description= 'Defines the behavior when connecting multiple RLBot instances over a network.' ) rlbot_header.add_value( NETWORK_ADDRESS_KEY, str, default='127.0.0.1', description='The IP address to connect to if networking is desired.') rlbot_header.add_value( LAUNCHER_PREFERENCE_KEY, str, default=None, description="Determines whether to launch with epic or steam.") team_header = config_object.add_header_name(TEAM_CONFIGURATION_HEADER) team_header.add_value( "Team Blue Color", int, default=0, description="Changes Blue team color, use 0 to use default color") team_header.add_value( "Team Blue Name", str, default="Blue", description="Changes the Team name to use instead of 'Blue'") team_header.add_value( "Team Orange Color", int, default=0, description="Changes Blue team color, use 0 to use default color") team_header.add_value( "Team Orange Name", str, default="Orange", description="Changes the Team name to use instead of 'Orange'") add_match_settings_header(config_object) add_mutator_header(config_object) add_participant_header(config_object) add_scripts_header(config_object) return config_object
def base_create_agent_configurations(cls) -> ConfigObject: """ This is used when initializing agent config via builder pattern. It also calls `create_agent_configurations` that can be used by BaseAgent subclasses for custom configs. :return: Returns an instance of a ConfigObject object. """ config = ConfigObject() location_config = config.add_header_name(BOT_CONFIG_MODULE_HEADER) location_config.add_value( LOOKS_CONFIG_KEY, str, default='./atba_looks.cfg', description='Path to loadout config from runner') location_config.add_value( PYTHON_FILE_KEY, str, default='./atba.py', description="Bot's python file.\nOnly need this if RLBot controlled" ) location_config.add_value( BOT_NAME_KEY, str, default='nameless', description='The name that will be displayed in game') cls.create_agent_configurations(config) return config
def base_create_agent_configurations(cls) -> ConfigObject: """ This is used when initializing agent config via builder pattern. It also calls `create_agent_configurations` that can be used by BaseAgent subclasses for custom configs. :return: Returns an instance of a ConfigObject object. """ config = ConfigObject() location_config = config.add_header_name(BOT_CONFIG_MODULE_HEADER) location_config.add_value( LOOKS_CONFIG_KEY, str, description='Path to loadout config from runner') location_config.add_value( LOADOUT_GENERATOR_FILE_KEY, str, description="A file that provide dynamic bot loadouts (optional).") location_config.add_value( PYTHON_FILE_KEY, str, description="Bot's python file.\nOnly need this if RLBot controlled" ) location_config.add_value( BOT_NAME_KEY, str, default='nameless', description='The name that will be displayed in game') location_config.add_value( LOGO_FILE_KEY, str, description="Location of an image file to use as your bot's logo") location_config.add_value( SUPPORTS_EARLY_START_KEY, bool, description= "True if this bot can be started before the Rocket League match begins." ) location_config.add_value( MAXIMUM_TICK_RATE_PREFERENCE_KEY, int, default=60, description= "The maximum number of ticks per second that your bot wishes to receive." ) details_config = config.add_header_name(BOT_CONFIG_DETAILS_HEADER) details_config.add_value( 'developer', str, description="Name of the bot's creator/developer") details_config.add_value('description', str, description="Short description of the bot") details_config.add_value('fun_fact', str, description="Fun fact about the bot") details_config.add_value('github', str, description="Link to github repository") details_config.add_value('language', str, description="Programming language") cls.create_agent_configurations(config) return config