AiGameDev.com

“Join leading experts and industry veterans in Paris on June 23-24 for the largest independent conference about artifical intelligence in video games.” — Alex

This article was published for AiGameDev.com Premium Members, available by subscription. You can join here in a minute or less. If you're already a member, log-in from the top right menu.

Goal-Based Action Optimization and the Hybrid Hero AI in DEMIGOD

Alex J. Champandard

Demigod is an innovative hybrid between RPG and RTS games, challenging the player to control and manage a Hero-like unit to accomplish a variety of missions (e.g. Dominate, Conquest, Fortress) in a set of predefined maps. It's built mostly as a multi-player experience, but includes an offline Skirmish mode for both quick games and tournaments against the AI. Since the implementation is based on a goal-oriented action planner, I've been keen to play the game and dig into the Lua code for the last week.

I was expecting to find a textbook application of the goal-oriented action planner (GOAP) from F.E.A.R. pioneered by Jeff Orkin. On the surface that seems to be the case, as the architecture and many of the high-level concepts are similar. However, under the hood, almost everything is done differently — to the extent that it's more similar to other game AI approaches than goal-oriented planning. And indeed, due to the RPG nature of the game, the long term progress of the AI Demigods, and the dynamic yet tactical gameplay, the problem required a very different solution.

In this in-depth feature, you'll learn how the AI used for the Demigods was architected and implemented (a.k.a. Hero GOAP). You'll find out why the name "goal-based action optimization" fits better than calling it a traditional STRIPS-like planner implementation, and what was necessary to make such a system work on such a large search space with a wide range of choices available.

NOTE: This first article covers only Demigod's Hero AI — which is the lowest-level and most complex layer of the whole system. The next article will show how everything fits into a three-layer architecture with multiple planners that include a squad AI and strategic reasoning.



Access the rest of this feature by joining industry experts and other professionals as a Member in the leading Game AI training program.

3 + 1 Great Reasons to Join!

If you're dedicated to artificial intelligence and game development, here are the top three reasons for becoming a member:

  • High-resolution video recordings of masterclasses and interviews.
  • Expert reports distilled from the wisdom of industry veterans.
  • Industrial-strength source code examples, libraries and demos.

Of course, if you're not satisfied there's a 100% money back guarantee. Just email us and let us know what to improve, and we'll refund you.

Subscribe Now...