modulebuilding:doors
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| modulebuilding:doors [2026/01/15 11:40] – removed - external edit (Unknown date) 127.0.0.1 | modulebuilding:doors [2026/01/15 11:40] (current) – ↷ Page moved and renamed from en:world-builder-tips to modulebuilding:doors juras17 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Importance of pathfinding ====== | ||
| + | This article has been written as a part of fixing Loftenwood Cementery due to serious **pathfinding** issues. As part of this, we have decided to summarize problems with pathfinding during the creation of the new NWN locations. | ||
| + | |||
| + | It suppose to help WB to create locations which don't hve this kind of issue. | ||
| + | |||
| + | ===== Introduction to pathfinding ===== | ||
| + | |||
| + | ==== What is pathfinding? | ||
| + | |||
| + | Pathfinding is crucial mechanism in NWN supporting the click-to-move action of the players. Players usually navigates character via mouse clicking. | ||
| + | |||
| + | NWN engine will try to calculate right path which leads from the current location to the clicked destination. | ||
| + | |||
| + | ==== Why corrupted pathfinding is serious issue? ==== | ||
| + | |||
| + | When mouse clicking doesn' | ||
| + | |||
| + | Also, pathfinding is used as well to properly navigate NPCs in the location. With bugged pathfinding, | ||
| + | |||
| + | ==== How does pathfinding works? ==== | ||
| + | |||
| + | It can be simply said that pathfinding works in this 2 steps. When player clicks on the map: | ||
| + | |||
| + | - The NWN engine calculates the correct path to the target location based on the **tiles** **only**. | ||
| + | - Then the character starts to move, where during the traveling it will try to avoid **placements** which appeared in the path | ||
| + | |||
| + | |||
| + | ==== What we have to be careful about? ==== | ||
| + | |||
| + | Based on the above knowledge, we have to ensure, that: | ||
| + | |||
| + | - The tiles on the map are not bugged | ||
| + | - The solid placements on the map are properly organized | ||
| + | |||
| + | |||
| + | ==== How do we ensure that? ==== | ||
| + | |||
| + | There is several "rules of thumb" which will be described in this article. | ||
