Please note that new user registrations disabled at this time.

So what's up with the NPC pathfinding?

This forum is to be used for all discussions pertaining to Obsidian Entertainment's Neverwinter Nights 2, the Mask of the Betrayer expansion pack, the Storm of Zehir expansion pack, and the Mysteries of Westgate adventure pack.
Post Reply
User avatar
Tricky
Posts: 3562
Joined: Fri Oct 28, 2005 10:21 pm
Location: Norway
Contact:

So what's up with the NPC pathfinding?

Post by Tricky »

Worse than KOTOR and definetly bad enough to make me doubt they ever playtested the game. Moving through a dungeon is like playing chess, you almost have to move your party members around one by one. They get stuck at even the most simple of turns, seemingly when there is just slightly too much distance between the party leader and them. And all the clutter makes certain dungeons a nightmare to complete.

No wait, I have a better question. Why do so few people seem to be bothered with this? I checked a number of forums and they all seem relatively unphased by this. I have a feeling it may have something to do with the camera position most people use. I never liked the traditional isometric, which is why I like the -almost but not quite- KOTOR camera.

Does anyone know if this is being fixed or what?
[INDENT]'..tolerance when fog rolls in clouds unfold your selfless wings feathers that float from arabesque pillows I sold to be consumed by the snow white cold if only the plaster could hold withstand the flam[url="http://bit.ly/foT0XQ"]e[/url] then this fountain torch would know no shame and be outstripped only by the sun that burns with the glory and honor of your..'[/INDENT]
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post by Xandax »

I do not have many problems with my NPCs getting stuck in dungeons other then at chokepoints such as doorways, when combat gets initiated (either by mobs or by me). But that is to be expected because the characters block each others paths, and thus the complexity of calculating paths increase dramatically - from a programming point of view. (Heck, one could even argue that *this* specific instance is almost realistic :D )

Where I'm mostly annoyed with the pathfinding issues is in combat where my characters/NPCs will either a) stand still, doing nothing. b) run around like headless chickens provoking many AoO's. c) run the longest possible way towards the enemy they target, taking long time to get there.
Insert signature here.
User avatar
Tricky
Posts: 3562
Joined: Fri Oct 28, 2005 10:21 pm
Location: Norway
Contact:

Post by Tricky »

Mine often get stuck in straight corridors. Once I'm moving in another direction and they're trying to take a shortcut -straight through the walls. Not that they manage, which I would far prefer from having to pick them back up all the time. Once they have distanced themselves from the player they completely loose their marbles. The only reason I come up with is that this game isn't traditionally meant to be played like KOTOR (drag left (+right in KOTOR) mousebutton to steer), which forces it to follow the player all the time. Perhaps the AI only knows how to follow up on point-click movement.. or whatever that is called.

I guess it really doesn't help that I never liked NWN gameplay. :p

I am tempted to play with just a single character.
[INDENT]'..tolerance when fog rolls in clouds unfold your selfless wings feathers that float from arabesque pillows I sold to be consumed by the snow white cold if only the plaster could hold withstand the flam[url="http://bit.ly/foT0XQ"]e[/url] then this fountain torch would know no shame and be outstripped only by the sun that burns with the glory and honor of your..'[/INDENT]
User avatar
Tricky
Posts: 3562
Joined: Fri Oct 28, 2005 10:21 pm
Location: Norway
Contact:

Post by Tricky »

OK, I think I'm obliged to add something I just discovered to this thread, incase I just scared people away from the game. My suspicions were correct, the characters getting stuck all the time across the most rediculous of obstacles was indeed due to my preference to the 'KOTOR' playstyle. You can still use that camera without much trouble, as long as you also click on the ground every now and then, like when you can see on the map someone behind you is getting stuck. The AI can't follow you blind all the time, but this will help unstuck them.

I wanted to test my theory a couple of times, so I went to a dungeon and walked around a bit until everyone got stuck (harder said than done). I clicked on the ground right infront of me and everyone suddenly found their way around the various obstacles, which more often than not included straight hallways with no obstacles whatsoever.. :p

NWN2 is not KOTOR. I learned my lesson.
[INDENT]'..tolerance when fog rolls in clouds unfold your selfless wings feathers that float from arabesque pillows I sold to be consumed by the snow white cold if only the plaster could hold withstand the flam[url="http://bit.ly/foT0XQ"]e[/url] then this fountain torch would know no shame and be outstripped only by the sun that burns with the glory and honor of your..'[/INDENT]
User avatar
Fljotsdale
Posts: 1640
Joined: Tue Oct 25, 2005 4:07 pm
Location: UK
Contact:

Post by Fljotsdale »

I remember that from NWN. I was always having to go back to pick up a companion. It's much easier without 'em, imo.

Hm... I may be thinking of another game - it's been ages since NWN - but wasn't there a 'wait here' command, and an 'attack' command, and a 'come on' command? Or something similar?

Or was that PS:T? :confused:

EDIT: Just read the above post, Tricky. That's helpful. :)
Leonard Cohen :http://www.youtube.com/watch?v=V8VwvO0e ... re=related
time for a change

"Dogs come when they're called. Cats take a message and get back to you."
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post by Xandax »

Fljotsdale wrote:I remember that from NWN. I was always having to go back to pick up a companion. It's much easier without 'em, imo.

Hm... I may be thinking of another game - it's been ages since NWN - but wasn't there a 'wait here' command, and an 'attack' command, and a 'come on' command? Or something similar?

Or was that PS:T? :confused:

EDIT: Just read the above post, Tricky. That's helpful. :)
Well - you did not have to go back in NwN to pick up companions. They would 99% of the time "teleport" to you on save/load or transitions or simply if you were far away from them, if they were stuck somewhere far away from you (most of the time, lest the game was bugged for you).

And yeah, there is wait, come here etc commands in NwN1 + 2.
Insert signature here.
User avatar
Fljotsdale
Posts: 1640
Joined: Tue Oct 25, 2005 4:07 pm
Location: UK
Contact:

Post by Fljotsdale »

Xandax wrote:Well - you did not have to go back in NwN to pick up companions. They would 99% of the time "teleport" to you on save/load or transitions or simply if you were far away from them, if they were stuck somewhere far away from you (most of the time, lest the game was bugged for you).
Ah! Yes, you could, couldn't you? *remembers!* But reloading to get 'em back wasn't always convenient, was it? Of course, you got 'em back if went from one area to another - but sometimes it was just simply easier to go back, tag the stray, then return to where you needed to be.
Of course, I could have games mixed up in my head...:laugh:
Leonard Cohen :http://www.youtube.com/watch?v=V8VwvO0e ... re=related
time for a change

"Dogs come when they're called. Cats take a message and get back to you."
Post Reply