Skip to content

Doc_Agents

inXS212 edited this page Nov 5, 2018 · 1 revision

Agents

this page will present scripts in the Agents folder

Brief Presentation

This directory (Agents folder) contains the agents, the files inside each agent directory are just like most rlbot bots, there is a appearance config file, a bot config file, and a python file. This python file contains a class inheriting from BaseAgent, as any rlbot bot.

But there is only one class that directly inherit from BaseAgent,the BaseModelAgent. This class overwrite most of the base class methods, presenting a new interface. 3 new methods for any agent to overwrite onto:

  • create_model which select the model on call.
  • create_input_formatter which select an input formatter.
  • create_output_formatter which select an output formatter.

Theses methods are called inside the BaseModelAgent's initialize_agent method, in which the agent creates a ModelHolder, from those 3 previous methods.

Clone this wiki locally