FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login
    The current pre-release of the client ("pioneer" in the version) is only compatible to itself. So you can only play with other testers. Please be aware!

    Mini27AI

    Scheduled Pinned Locked Moved AI development
    2 Posts 1 Posters 330 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • maudlin27M Offline
      maudlin27
      last edited by

      For anyone interested in getting into AI development I've created 'Mini27AI' which is a very basic AI acting as a proof of concept of how to write an AI to carry out some simple tasks outside of the default AI framework, to help as a potential starting point for developers.

      Anyone is free to copy/make use of this AI as they wish and build on it for creating their own AI.

      At a high level, the AI takes the following approach (which obviously has a number of flaws, as the AI isn't intended to be competitive):

      • ACU will build land factories, power and mexes, unless there are nearby enemy units
      • Factories will build tanks and LABs
      • Tanks and LABs will attack the nearest visible enemy that it can path to (or the enemy base if there are no visible targets)

      Mini27AI can be downloaded from the FAF client as a mod, or from github:
      https://github.com/maudlin27/Mini27AI

      M27AI and M28AI developer; Devlogs and more general AI development guide:
      https://forum.faforever.com/topic/2373/ai-development-guide-and-m27ai-v71-devlog
      https://forum.faforever.com/topic/5331/m28ai-devlog-v150

      1 Reply Last reply Reply Quote 7
      • maudlin27M Offline
        maudlin27
        last edited by

        V2 update - fixed a bug where attacking units wouldnt get new orders when their target was dead.

        Also updated the wiki with a diagram of how the logic works:
        https://wiki.faforever.com/en/Development/AI/AI-Modding#overview-of-mini27ais-logic

        M27AI and M28AI developer; Devlogs and more general AI development guide:
        https://forum.faforever.com/topic/2373/ai-development-guide-and-m27ai-v71-devlog
        https://forum.faforever.com/topic/5331/m28ai-devlog-v150

        1 Reply Last reply Reply Quote 2
        • First post
          Last post