1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

The A.I. Masterplan

Discussion in 'Oliver's Lab (The AI/Living Universe Forum)' started by dirkgently, Nov 3, 2015.

  1. dirkgently

    dirkgently Lord of Statistics
    Staff Member Developer Forum Admin Testing The Galaxy, One Star At A Time

    Country:
    United Kingdom
    Joined:
    May 5, 2015
    Messages:
    158
    Likes Received:
    36
    Hi everybody! Today I'm going to talk about how our characters' AI works. Our design for the AI has three main layers. Each has a different role, and together they'll produce a rich and believable Empire for you to grapple with!

    The first layer is bottom-up and pro-active: a decision-tree-cum-state-machine for each character, which selects their approach to each of their goals, down to the individual action – there are more than 200 nodes planned currently, with more likely to come as we develop new AI strategies. The innermost nodes on the tree are ultimate goals – to survive, to get rich, to destroy an enemy, and so forth – and, as the character progresses down the branches, the goals get more specific, until finally the character is issued a specific action to perform. However, the tree differs from a conventional decision tree in that, once the action is complete, the character doesn't return to the trunk to decide afresh; instead, they back up one level, and check whether that sub-(sub-sub-...)-goal is complete. If it is, they back up another level and check again; if not, the node selects another action or sub-goal for them to complete in pursuit of that node's completion conditions. So as well as being a decision tree, it's a sort of state machine, too.

    The second layer is also centred on individual characters, but is reactive: it looks at the threats and opportunities available to the character, and moves them from one branch of the decision-tree-machine to another in response to those changing circumstances. This layer maps the whole political landscape: it works out who's powerful and who's not according to the size, assets, influence, and integrity of their network of allies. It then works out where each character's attention is pointed: different potential goals bid for their attention (with their current activity having a significant advantage in the bidding process, to maintain stability) and successful bids cause the character to stop what they're doing and go engage in the successful activity instead. They can also pause what they're doing to take 'breaks' – address minor crises, go on holiday, that sort of thing – and then return to the task in hand!

    The third layer is focussed not on the characters but the player. This controls just how much plotting and scheming, how many invasions, and so forth can go on at any one time, to make sure there's always something going on, but not so much you get flattened with information overload – as well as spotting your go-to strategies and throwing a spanner or two in the works! It will also maintain game performance by controlling whether characters use the full power of the other AI systems, or whether they're out of sight enough to use lower-fidelity, lower-effort behaviour models instead.

    So that's the plan – I'm super psyched to get this system up and running! Don't forget to join us next week, when Steve will be talking about character depth. Ave Imperator!

    Oliver
     
    #1
  2. pavlosg

    pavlosg Art Director
    Forum Admin

    Country:
    Greece
    Joined:
    Jan 2, 2015
    Messages:
    176
    Likes Received:
    29
    ...that thread title really sounds ominous. It could trigger several conspiracy theories in a second.
     
    #2
  3. Texashawk

    Texashawk Developer
    Staff Member Developer Forum Admin

    Country:
    United States
    Joined:
    Dec 17, 2014
    Messages:
    464
    Likes Received:
    63
    As we say around here, "Better living though AI". And it helps if the AI is cunning. :)

    -Steve
     
    #3
  4. PanzerDuck

    PanzerDuck Alpha Tester
    Testing The Galaxy, One Star At A Time

    Country:
    Denmark
    Joined:
    Oct 29, 2015
    Messages:
    19
    Likes Received:
    1
    very nice setup for the AI, one thing that would be intensely computing intensive would be multilevel plots and goals for the AI so as to make at least one or two characters capable of being a new "palpatine" with the ability to form plots within plots. also having the ai form secret organizations which could become like a hydra, popping up to create trouble at different stages using agents while the core plotters remain in hiding biding their time until they can move up the ranks toward emperor...
     
    #4
  5. VineFynn

    VineFynn Viceroy-in-Training

    Country:
    Australia
    Joined:
    Feb 1, 2015
    Messages:
    26
    Likes Received:
    3
    Sounds excellent.
     
    #5

Share This Page