Explain how the campaign ai works
- User
Explain how the campaign ai works
Assistant
The campaign AI in FreeFalcon is a complex system that involves several components and processes. Here's a high-level overview of how it works:
- Campaign Loop: The campaign loop is the main loop that runs the campaign AI. It's responsible for updating the campaign state, processing events, and making decisions. The loop runs at a fixed interval, which is defined by the
CAMPAIGN_STAGE_TIME_MINUTESconstant. - Campaign Stages: The campaign is divided into stages, each representing a specific phase of the campaign. The stages are defined in the
CAMPAIGN_STAGEenum. The campaign loop iterates through these stages, performing specific actions and making decisions at each stage. - ATM (Air Tasking Manager): The ATM is responsible for managing air missions and tasks. It receives mission requests from the campaign AI and assigns them to available aircraft. The ATM also updates the mission status and notifies the campaign AI of any changes.
- GTM (Ground Tasking Manager): The GTM is responsible for managing ground missions and tasks. It receives mission requests from the campaign AI and assigns them to available ground units. The GTM also updates the mission status and notifies the campaign AI of any changes.
- NTM (Naval Tasking Manager): The NTM is responsible for managing naval missions and tasks. It receives mission requests from the campaign AI and assigns them to available naval units. The NTM also updates the mission status and notifies the campaign AI of any changes.
- Mission Request: A mission request is a data structure that represents a specific mission or task. It contains information such as the mission type, target, and priority. Mission requests are generated by the campaign AI and sent to the ATM, GTM, or NTM for processing.
- Mission Planning: When a mission request is received, the ATM, GTM, or NTM performs mission planning to determine the best course of action. This involves evaluating the mission requirements, available resources, and environmental factors to create a mission plan.
- Mission Execution: Once a mission plan is created, the ATM, GTM, or NTM executes the mission by assigning it to available units and updating the mission status.
- Event Handling: The campaign AI handles events such as unit movements, combat engagements, and mission completions. These events are used to update the campaign state and make decisions.
- Decision Making: The campaign AI makes decisions based on the current campaign state, mission requests, and events. It uses a combination of rules, heuristics, and algorithms to determine the best course of action.
Some of the key decision-making processes in the campaign AI include:
- Campaign Loop: The campaign loop is the main loop that runs the campaign AI. It's responsible for updating the campaign state, processing events, and making decisions. The loop runs at a fixed interval, which is defined by the
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.