Official Codex Discord Server

  1. Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.
    Dismiss Notice

Game News Realms Beyond Kickstarter Update #18: Enemy AI

Discussion in 'RPG News & Content' started by Infinitron, Feb 21, 2019.

  1. Infinitron I post news Patron

    Infinitron
    Joined:
    Jan 28, 2011
    Messages:
    77,526
    Grab the Codex by the pussy Serpent in the Staglands Dead State Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Wasteland 2 Shadorwun: Hong Kong Divinity: Original Sin 2 A Beautifully Desolate Campaign Pillars of Eternity 2: Deadfire Pathfinder: Kingmaker
    Tags: Ceres Games; Realms Beyond: Ashes of the Fallen

    Realms Beyond has received its first major Kickstarter update since the conclusion of the crowdfunding campaign in November. With mundane tasks like setting up a Backerkit site now out of the way, it looks like Ceres have been able to start spending time on the game's more advanced features, such as enemy AI. The goal is to make the AI not only intelligent, but also reflective of the personalities of the game's various creatures.

    [​IMG]

    When we started out working on the combat system we had a lot to do to lay the basic foundations. We had to get our character animation system running and implement stuff like combat logic, hexboard generation from level topology, or hexboard queries for paths and floodings at runtime.

    That left little time to care about something as high level as AI (Artificial Intelligence). As a consequence our first prototype for AI ‘grew’ with time. At first, all it could do were melee attacks. Then we added ranged attacks. Then we implemented an enemy spell AI for intelligent placing of area spells (trying to maximize hits on enemies and minimize hits on allies). Finally we included rather specific routines (like fleeing) for characters that suffered from spells like fear. We realized that AI has to be able to deal with script spells that are loaded at runtime (a feature that could be interesting for future modifications). To allow for that we coded routines that simulate spell executions and judge their effects in a more general way.

    Thus our prototype grew and grew until we were sure that we covered every capability that could possibly be required. Then we started to build it from scratch to make it more flexible and debugable. And now we feel like we can finally talk about AI.

    The paradigm we had in mind for development has always been: What do we expect from a turn based AI?

    Well, technically, we expect a lot! A demon wizard that fails to choose his fireball spell over a magic missile, or who fails to place the fireball in a way that maximizes damage on the player party is a no-go. An assassin who simply attacks her closest target instead of trying to stab your wizard in the back is not only little immersive – it also obliterates strategic bottlenecks like doors. And a human NPC ally that is not able to plan his path avoiding enemy attacks of opportunity is an annoyance. So when we talk about expectations from a ‘technical’ point of view, one can say that we expect ‘a lot’. A proper (3.5e based) combat AI has to be able to perform a lot of intelligent choices for enemies that we expect to behave intelligent.

    Assuming that we built an AI that is able to live up to those expectations, it is time to consider a different connotation: What do we expect from AI not in terms of quality but in terms of personality?

    If every enemy behaved optimally the challenge would be maximized – and immersion would be all but gone. We want goblins to horde around their closest enemy. We want orcs to ignore attacks of opportunity. And an ogre might even be too stupid to leave an area that is affected by a damage-over-time spell. Even beyond ‘intelligence’ enemies should show personality in every decision that gameplay offers: While most races ignore unconscious or otherwise helpless enemies on the battle field and proceed to face those player characters that can still fight, certain foul creatures like goblins or gnolls should be known for finishing off their helpless foes. It’s those little twists that make combats immersive.

    We hope that – apart from the challenge of making our AI capable of ‘good’ decisions – we also do a good job to diversify enemy behaviours enough to allow you to detect patterns and become especially hateful of one enemy or the other.

    Once again, allow us to mention Knights of the Chalice here (btw, the developer Pierre Begue will launch a Kickstarter campaign for the sequel very soon) . It is owing to that game that we had a very precise idea about what we had to do when we first started prototyping our CPU-controlled opponents. The AI of KotC (and, of course, its excellent encounter design) made almost all combats interesting. It may be prone to crowd in bottlenecks (a fact can be exploited a lot once you get the stone wall spell) but hey – weaknesses are something you also expect from an AI to have fun, another fact that we are well aware of.

    Hopefully, we can soon present you some more combat vids that display various AI behaviours. Until then, feel invited to write us (here in the comments or in our forum) what you think about our ideas and what you consider important for a turn-based AI. And if you have a memorable story to tell about a combat against an especially cunning AI: please share it with us.
    That's a nice shout-out. Hopefully we won't have to wait long for the next update.
     
    • Brofist x 8
    • incline x 3
    • Informative x 3
    • cuck x 2
    • Interesting x 1
    ^ Top  
  2. Owlish Arcane

    Owlish
    Joined:
    Sep 14, 2013
    Messages:
    1,904
    I know nothing about this game, but damn that looks good.
     
    • Agree Agree x 3
    • Yes Yes x 1
    ^ Top  
  3. Thal Savant

    Thal
    Joined:
    Apr 4, 2015
    Messages:
    159
    Wouldn't it be interesting if AI was partly dependent on Int or Wis stat? Meaning you could affect their decision-making ability by debuffing that stat. Might be too powerful tool though
     
    • Interesting Interesting x 1
    • Creative Creative x 1
    ^ Top  
  4. AwesomeButton Cut a deal with the authorities Patron

    AwesomeButton
    Joined:
    Nov 23, 2014
    Messages:
    7,112
    Location:
    Temple of Decline
    PC RPG Website of the Year, 2015 Make the Codex Great Again! Grab the Codex by the pussy Divinity: Original Sin 2 A Beautifully Desolate Campaign Pillars of Eternity 2: Deadfire
    It's great to see them start with the AI topic. They mean business.
     
    • Agree Agree x 3
    • FAKE NEWS FAKE NEWS x 1
    • Prestigious Prestigious x 1
    ^ Top  
  5. dawcio Learned

    dawcio
    Joined:
    Sep 25, 2017
    Messages:
    322
    Wow, they have mentioned KotC. That's really interesting. I have a strong feeling that this game will be one of the greatest.
     
    • Fabulously Optimistic Fabulously Optimistic x 3
    ^ Top  
  6. Haba Harbinger of Decline Patron

    Haba
    Joined:
    Dec 24, 2008
    Messages:
    1,867,170
    Location:
    Land of Rape & Honey
    Codex 2012 MCA Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Wasteland 2
    Disappointments or failures?
     
    • Funny x 4
    • Yes x 3
    • nice x 1
    • Despair x 1
    • it is a mystery x 1
    • :M x 1
    ^ Top  
  7. MrMarbles Arbiter

    MrMarbles
    Joined:
    Jan 13, 2014
    Messages:
    372
    This is the kind of art style and feel I've been waiting for to replace the bland Unity-games. A more polished version of SitS:incline:
     
    • incline incline x 1
    ^ Top  
  8. Mr. Magniloquent Learned

    Mr. Magniloquent
    Joined:
    May 31, 2018
    Messages:
    219
    Location:
    The Present
    I like what they are doing, but talk is cheap. I'll get excited after I see demonstrations.
     
    • Agree Agree x 1
    ^ Top  
  9. Tigranes Prestigious Gentleman Arcane

    Tigranes
    Joined:
    Jan 8, 2009
    Messages:
    7,825
    Serpent in the Staglands Torment: Tides of Numenera
    Yep. This is just "we want to work hard on AI and we love KOTC." Fine. Show us something when you have something.
     
    • Agree Agree x 2
    ^ Top  
  10. AwesomeButton Cut a deal with the authorities Patron

    AwesomeButton
    Joined:
    Nov 23, 2014
    Messages:
    7,112
    Location:
    Temple of Decline
    PC RPG Website of the Year, 2015 Make the Codex Great Again! Grab the Codex by the pussy Divinity: Original Sin 2 A Beautifully Desolate Campaign Pillars of Eternity 2: Deadfire
    Do you even read?

     
    • Agree Agree x 1
    • NPC #61873 came up with this opinion all by his / herself NPC #61873 came up with this opinion all by his / herself x 1
    ^ Top  
  11. Fenix Cipher Vatnik

    Fenix
    Joined:
    Jul 18, 2015
    Messages:
    3,918
    Location:
    Russia atchoum!
    Every update hit the target.
    I definitely wait for your game guys!
     
    ^ Top  
  12. Darth Canoli Arbiter

    Darth Canoli
    Joined:
    Jun 8, 2018
    Messages:
    1,175
    Location:
    Perched on a tree
    :bounce:

    So far so good, i hope they're going to do something about the tactical grid's aggressive colors though, some nuances of brown or gray maybe ?
     
    • Brofist Brofist x 1
    • Fabulously Optimistic Fabulously Optimistic x 1
    ^ Top  

(buying stuff via the above buttons helps us pay the hosting bills, thanks!)