User Tools

Site Tools


en:modulebuilding:pathfinding-common-issues

This is an old revision of the document!


Pathfinding - Common issues

How to have good pathfinding in the map.

Choose proper tileset

Not all tilesets supports good pathfinding. Notoriously known tileset called “DOA” has amazing looking locations on the one hand, but on the other hand it has big problems with pathfinding. Character can get stucked easily when moving thru “fancy” hills and so on.

Original NWN tilesets like “Rural” don't have this kind of issue and despite looking not so great, it works perfectly.

Amazing DOA location:

Original NWN Rural location:

Always debug the tiles as a first step

Learn how to display the AABB mesh:

  1. In the game press Ctrl + Shift + F12 and select aabb mesh
  2. Or in the toolset press Environment → Render AABB nodes

Exmples of great AABB mesh (vanilla Rural tileset):

Exmaples of broken AABB mesh (custom DOA tileset):

Important note

For DOA, the game and toolset unfortunatelly often crashes when displaying the AABB - which is propably related to the fact this tilset is broken.

Organize properly the plceables

As it was mentioned in the Pathfinding - Introduction to the problem, when path is being found in the tileset, the character starts to move and it looks like it tries to avoid placeables on the route to the destination.

There is several rules of thumb about properly placing the placeables to not have the character stucked on the route.

Do not put placeables across multiple tiles

This is probably not an issue with not-solid placeables like flowers, but it is an issue with solid placeables like trees, mushrooms etc.

It may confuse the pathfinding mechanism.

Good and bad position of the tree in tiles:

Do not put two solid placeables with no space for the character

This is the recipe for having the character stucked: Two solid placeables shall be not placed together with so small space that the character can't fit in between.

Good and bad positioning of the Log and Tree:

en/modulebuilding/pathfinding-common-issues.1768481129.txt.gz · Last modified: 2026/01/15 12:45 by juras17