The sorian PA AI thread

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

  1. cdrkf

    cdrkf Post Master General

    Messages:
    5,721
    Likes Received:
    4,793
    You know, we need to do an 'AI' tournament some time with a whole host of different personalities... Who can make the best overall AI? ;)
    devoh likes this.
  2. crizmess

    crizmess Well-Known Member

    Messages:
    434
    Likes Received:
    317
    I'm pretty sure it would be absolutely boring to normal people, but it would be really cool.
    cdrkf likes this.
  3. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    It used to be quite popular. I remember playing games like that where you would build competing AIs, but there doesn't seem to be anything much out there anymore. I only found Battlecode, which admittedly looks pretty cool. But yeah, PA AI tournaments not boring, but really cool! :)
    cdrkf likes this.
  4. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    We can already have AIs fight one another.

    I actually ranked Kohan II AIs against each other once through a round-robin tournament.
    cdrkf and websterx01 like this.
  5. websterx01

    websterx01 Post Master General

    Messages:
    1,682
    Likes Received:
    1,063
    If you don't tell the viewers that they're AIs, I'd bet the will never know! (For the most part)
    cdrkf and stuart98 like this.
  6. cdrkf

    cdrkf Post Master General

    Messages:
    5,721
    Likes Received:
    4,793
    What would be even funnier is get someone to cast (e.g. Marshall) and *don't inform the caster its AIs* I can just hear him getting more and more frustrated with it....
    devoh, stuart98 and websterx01 like this.
  7. exterminans

    exterminans Post Master General

    Messages:
    1,881
    Likes Received:
    986
    They will know. The neural net controlling the platoons still has rather distinct faults, and there are more hard coded functions as well.

    Platoon movement, target priorities, flaws in interpreting implicit intelligence (tracers and alike), tendency to have units lingering around the base unused indefintely because no platoon building rule can be satisfied, inability to actually choose between two platoons for a certain task.

    Every AI which is using the current framework is going to exhibit the very same behavior in these terms. All you can measure is build order and army composition efficiency.

    Given the additional constraints implied by the framework, this means that you can still compare two AIs to each other under the prerequisite of using the same framework, but it allows no conclusion whatsoever how these AIs would fair against humans or against AI using different frameworks, or even just different versions of the framework.
  8. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Of course it does, by the only measure that matters: did it win?
    igncom1 likes this.
  9. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Okay, so I'm seeing this:
    Code:
    [16:12:23.109] ERROR The AI has ancountered an error. Please enable AI logging to see more information.
    Firstly, WTH does "ancountered" mean? :rolleyes:
    Secondly, how can I enable AI logging to see this additional information?

    I think I've already solved this particular instance, but would be good to know for the future.
  10. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    You would have to add --ai-log to the server command line to see AI log info.
    SXX and stuart98 like this.
  11. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    It means next time you make a spelling or grammar mistake yourself, some people will laugh :)
  12. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Don't be silly. Stuart never makes spelling mistakes <3
    proeleert, igncom1 and stuart98 like this.
  13. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    @Sorian If there's a slash missing from the start of a spec_id in a unit map (eg "pa/units/blah/blahblah/blahblahblah.json") then the server will crash instantly with no message in the server log or a crash uploaded.
  14. DarkGift

    DarkGift New Member

    Messages:
    14
    Likes Received:
    17
    Ever play Omega back in the day?
    DeathByDenim likes this.
  15. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Heh, cool, but no I didn't.
    DarkGift likes this.
  16. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Sorian, won't the AI mistakenly include Unit Cannons in artillery platoons? There's no factory exclusion in its rules.
  17. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    This is what I have locally:

    Code:
            "UnitCannon":
            {
                "units":
                [
                    { 
                        "unit_types": "Structure & Artillery & Factory",
                        "min_count": 1,
                        "max_count": -1
                    }
                ]
            },
            "Artillery":
            {
                "units":
                [
                    { 
                        "unit_types": "(Structure & (Artillery | Tactical)) - Factory",
                        "max_count": 1
                    }
                ]
            } 
    
    Is that different then what you have?
  18. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Oh sorry, not the templates, the platoon_misc_builds file. It will try to form artillery platoons with Unit Cannons.

    Code:
    {
             "name":"Artillery Platoon",
             "to_build":"Artillery",
             "instance_count":-1,
             "priority":100,
             "build_conditions":[
                [
                   {
                      "test_type":"UnitPoolCount",
                      "unit_type_string0":"Structure & (Artillery | Tactical)",
                      "compare0":">=",
                      "value0":1
                   }
                ]
             ],
             "task_type":"Artillery"
          }
  19. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    It will try, and fail. I'll fix it, but it wont break anything in live the way it is. It will just do unnecessary work.
    Remy561, cdrkf and Quitch like this.
  20. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Great, now time to get back to integrating all your cool new AI tests.

Share This Page