News

Ai StrategyDefs.xml questions?

happy holidays!

Posted on Tuesday, December 23, 2014

.

The aistrategydefs.xml file has some interesting stuff that I'd like to do some exploration with, but I haven't been able to find any info on what some of the values refer to & was hoping someone (or maybe a very festive amphibian!) could shed some light towards.

[code]AIStrategy>
<InternalName>ExpansionStrat</InternalName>
    <TurnStart>0</TurnStart>
    <TechAge>AgeOfExpansion</TechAge>
    <TurnLifetime>20</TurnLifetime>
Spending>SpendUntilBroke</Spending>
    <SpendUntilBrokeBuffer>50</SpendUntilBrokeBuffer>
    <ManufacturingSlider>0.50</ManufacturingSlider>
    <ResearchSlider>0.50</ResearchSlider>
    <MilitarySlider>0.50</MilitarySlider>
    <PreferToRush>Manufacturing</PreferToRush>
    <BuildShip>
      <ShipClass>Colony</ShipClass>
      <BuildFirst>2</BuildFirst>
      <Weight>10</Weight>
    </BuildShip>
    <BuildShip>
      <ShipClass>Constructor</ShipClass>
      <Weight>4</Weight>
    </BuildShip>
    <BuildShip>
      <ShipClass>Defender</ShipClass>
      <Weight>2</Weight>
    </BuildShip>
    <RecommendObjective>Expansion</RecommendObjective>
</AIStrategy>
...

    <RecommendObjective>ConquerNeighbor</RecommendObjective
[/code]
-this is the first few lines..
- internal and, just a name... Or is there some deeper meaning to expansionstrat vrs xxyyzz  or something?.. If so, which XML files might have info there?

- turnstart, I feel safe saying that's when the Ai will -start- this strategy.  But is there any way to influence it based on neighborly factors?..  If so, any hints or details on the extent?
-techage sounds like it's the tech age the Ai will use this strategy(?)... How will this affect extreme planet colonization later?... I'm guessing another tag further in?
-TurnLifetime how many turns it runs for, or something else?
- spending & SpendUntilBroke.  Spending sounds like just a definition of how they prioritize funds? What about SpendUntilBroke though, are  there other valid options & is this why the Ai always seems dirt poor broke?

- what about SpendUntilBrokeBuffer ==50? Is that 50 turns?, 50%\ weight ? Something else?-research/military/manufacturingslider.. Just where the color wheel slider thing goes foe this phase or something more/else?

-prefertorush==military Other values research/manufacturing?
- buildship & shipclass==colony just looks like the type of ship to build  & at first glance appears of little note yet.

-- what about BuildFirst==2 &weight =10 though? Build the first one two turns in? Weight=umm...?
- RecommendObjective seems self explanatory but with Expansion & ConquerNeighbor the only two known values... Are their others like TradeWithNeighbor or TradeWithNeighborsNeighbor as a couple possibilities?

edit: fix title typo