The sorian PA AI thread

Discussion in 'Planetary Annihilation General Discussion' started by Quitch, December 23, 2014.

  1. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    The focus target is the army the AI is focusing its attacks against. I could add a FocusTargetThreatRatio maybe, if that would help.

    [Edit]
    Also, HaveFullPlanetIntel might be what you are after for one of your other points. It checks to see if the AI has had intel on all metal points on the planet within a reasonable amount of time, based on the size of the planet. So, as long as the AI has intel, or has had intel within the last x amount of time on all metal spots, this would return true.
    [/Edit]
    Last edited: May 14, 2015
    Quitch likes this.
  2. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    More AI Unit Cannon work. Getting excited for this. Can you tell?

    unit_cannon_02.jpg
    Gorbles, igncom1, stuart98 and 6 others like this.
  3. Alpha2546

    Alpha2546 Post Master General

    Messages:
    977
    Likes Received:
    1,561
    I'm really interested in how you want the AI to use the unitcannon. Cool stuff sorian!

    yeah :D
    stuart98 and Remy561 like this.
  4. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Is an army a player/team or a unit grouping within an area? I'm assuming the latter given that the AI will send out multiple forces of varying sizes to different map areas.

    Platoons have proven to be the trickiest to do anything with because the check uses an absolute value, and I haven't found any way to get any meaning from the value (because I assume it ties into neural net numbers).
  5. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    Player/team
    stuart98 and Quitch like this.
  6. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Well now I'm really intrigued. I'll have to play with that check :)

    Given that higher levels focus on the weakest player that check probably isn't useful for FFAs as it's the biggest threat to the AI you want to know about i.e. can I tech or will that result in me getting crushed
  7. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    True, so maybe a PlanetHighestEnemyThreat might be in order.
    Quitch likes this.
  8. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    Something like this:



    Still a work in progress, of course.
    doud, cdrkf, MadGreyOne and 8 others like this.
  9. MadGreyOne

    MadGreyOne Member

    Messages:
    66
    Likes Received:
    28
    Hope you can train the AI to break into locked down planets by dropping a nuke (or four) and then firing it's unit cannons into into the blast zone. If launched from the same planet I find a delay of about 5 to 6 seconds is perfect, but I suppose the AI may have a transit time check for interplantary travel.
  10. igncom1

    igncom1 Post Master General

    Messages:
    7,961
    Likes Received:
    3,132
    Good to see the AI actually learning how to play on multiple planets past just lobbing nukes.
  11. MakkaHS

    MakkaHS New Member

    Messages:
    2
    Likes Received:
    1
    So excited to see Sorian is developing the AI for this game. Recently just started playing it and was actually looking for something like the Sorian AI mod in SupCom, and here I am.

    The AI does seem to perform very well on the planet you spawn on but has a lot of difficulty getting a foothold on locked down planets. Would definitely like to see the unit cannon used in conjunction with some nukes, orbital fighters and some orbital fabs to immediately start on a beachhead on some planets. I know I like to throw down some anchors, immediate nuke protection and a portal to begin with if I am landing on a hostile planet, after a good nuking of course. Then it is either a unit rush, or a turtle to hold my portal.

    Looking forward to your updates Sorian, and playing against your AI :)
    cdrkf likes this.
  12. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Queller AI :)
    cdrkf and MakkaHS like this.
  13. MakkaHS

    MakkaHS New Member

    Messages:
    2
    Likes Received:
    1

    Awesome. Will check it out.
  14. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Is Deep Space Radar increasing the OrbitalThreat? I saw one AI build an Umbrella (which it only does when OrbitalThreat > 0) but all its opponent had was a Deep Space Radar.
    cwarner7264 likes this.
  15. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    Thanks. Fixed.
  16. websterx01

    websterx01 Post Master General

    Messages:
    1,682
    Likes Received:
    1,063
    What exactly is your Queller AI? Is it a personality of Sorian's AI? A spin off?
  17. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    @Quitch Upcoming AI changes:
    • Added personality_tag to AI personality.
    • Added HasPersonalityTag AI build condition.
    Have fun :)
    cdrkf, wondible, Quitch and 2 others like this.
  18. zihuatanejo

    zihuatanejo Well-Known Member

    Messages:
    798
    Likes Received:
    577
    I believe @Quitch's Queller AI mod tweaks Sorian's AI for the 1v1 game, tries to make it a bit more realistic relative to competitive play (e.g. opening builds). I still haven't tried it yet but it is apparently quite good. Still needs an eco boost to match a good player, but that's about right considering the complexities of AI.
  19. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    So my guess is this means I can check which personality is in use using true/false checks? If I'm guessing right that is bloody awesome. All sorts of helpful hints could be given to the AI that way, for example the FFA personality.

    It's a replacement AI brain. Changes what the AI builds, when, what the composition of its armies looks like, etc.
    Last edited: May 28, 2015
  20. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    Bingo! Couple that with the fact that the AI will load all json files in its data directories, including in sub directories (ie content/ai/fabber_builds/ffa_ai), and you could do all sorts of stuff.
    stuart98, cdrkf, wondible and 3 others like this.

Share This Page