Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New AI Teams Selector #810

Open
wants to merge 53 commits into
base: develop
Choose a base branch
from

Conversation

FS-21
Copy link
Contributor

@FS-21 FS-21 commented Dec 3, 2022

More details in the documentation:

  • New AI system for selecting valid triggers in multiplayer randomly. Unlike the original method this one checks prerequisites and take care of other details.
  • It can split the valid triggers into 4 categories: ground, air, naval & mixed categories. If set, AI picks a random trigger in a random category.
  • Categories can have different chance probabilities. It can be set globally or customized per house. by default each category has a 25% chance to be selected.
  • NewTeamsSelector.MergeUnclassifiedCategoryWith can be used for merging the mixed category (units are from different categories) into one of the main categories.
  • In case of picking a category without valid triggers exist a fallback mode that allow picking a trigger from all valid triggers like if categories were disabled.
  • if Autocreate=yes AI will care about all units prerequisites so if the house's tech tree is incomplete for the trigger it gets discarded. It understand Ares tags like Prerequisite.RequiredTheaters, Prerequisite.Negative, Prerequisite.Lists & Generic prerequisites section.
  • If it finds a trigger with 5000 current probability weight then discard valid triggers all and start searching all valid triggers with weight 5000. AI will pick 1 randomly and decrease by 1 the current weight of the selected trigger (so if nothing happens in the next teams selection loop it won't appear in this special list). Under this scenario categories are disabled.

Summary by CodeRabbit

  • New Features

    • Introduced a new AI teams selector for enhanced AI behavior in multiplayer.
    • Overhauled AI system for selecting triggers with improved categorization and probability settings.
    • Added new AI trigger conditions for more dynamic gameplay.
    • Implemented a SecretLab feature allowing AI to use unlocked units from captured Secret Labs.
  • Bug Fixes

    • Adjusted AI prerequisites checking to ensure proper conditions are met before actions.
    • Fixed issues with AI trigger processing to align with new AI teams selector logic.
  • Documentation

    • Updated AI scripting and mapping documentation to reflect new AI features and trigger conditions.
    • Added release notes for the new AI teams selector feature.
  • Refactor

    • Enhanced building and building type logic to support the SecretLab feature.
    • Improved house and house type data management for better AI decision-making.
    • Streamlined rules extension with new AI teams selector properties.
  • Style

    • Standardized code formatting across new and modified files for consistency.
  • Tests

    • Implemented new unit tests to verify AI trigger conditions and SecretLab functionality.
  • Chores

    • Performed general codebase maintenance and cleanup.

@github-actions
Copy link

github-actions bot commented Dec 3, 2022

Nightly build for this pull request:

FS-21 added 2 commits January 11, 2023 07:11
…I teams go to the right category depending the members of the Taskforce.

Added 2 new boolean tags for overwriting the categorization of some units:
- ConsideredNaval
- ConsideredVehicle
@Starkku Starkku force-pushed the develop branch 2 times, most recently from aae92fd to a32076e Compare June 3, 2023 10:14
@github-actions
Copy link

github-actions bot commented Jul 22, 2023

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@Phobos-developers Phobos-developers deleted a comment from coderabbitai bot Aug 29, 2024
@TaranDahl TaranDahl added ⚙️T2 T2 maintainer review is sufficient Major Big stuff to do labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Major Big stuff to do Needs improvement ⚙️T2 T2 maintainer review is sufficient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants