Sick Gaming
[Dev News] htn_planner – AAA Inspired Game AI Framework - Printable Version

+- Sick Gaming (https://sickgaming.net)
+-- Forum: Programming (https://sickgaming.net/forum-76.html)
+--- Forum: Game Development (https://sickgaming.net/forum-80.html)
+--- Thread: [Dev News] htn_planner – AAA Inspired Game AI Framework (/thread-113480.html)



[Dev News] htn_planner – AAA Inspired Game AI Framework - xSicKxBot - 09-30-2026

Former Guerrilla Games & Crytek AI developer Jose Escribano just dropped the AAA game (Horizon series) inspired AI framework called htn_planner. HTN stands for hierarchical task network and is a set of tools for AI planning in your game. It also includes several tools including domain editing tools, compilers, dynamic bindings for implementing it in your own C++ project, full samples and much more. The project is open source under the MIT license.

 

htn_planner is described as:

HTN Planner is a C++ hierarchical task network planner for game AI. Domains are written in a small declarative language and translated ahead of time into native C. The runtime executes the generated planner directly and does not parse domain source during gameplay.

The repository includes:
  • The generated planner runtime and its C ABI.

  • A C++ integration layer with planner hooks and planning units.

  • Code:
    HTNTranslator
    , which validates domains and emits C source.

  • A visual SDL and ImGui demo with generated execution debugging.

  • An editor, language server, hot reload example, tests and benchmarks.

  • A packageable Windows x64 SDK with CMake integration.


Key Links

htn_planner GitHub Repository

Exploring HTN Planners through Example

The AI of Horizon Zero Dawn

Hierarchical AI for Multiplayer Bots in Killzone 3

You can learn more about htn_planner and see the demos in action in the below.