SphereServer BugTracker - SphereServer
View Issue Details
0002010SphereServerexecutable - windows buildpublic31-07-11 21:2311-11-13 06:19
Shaklaban 
Ben 
normalminoralways
resolvedfixed 
 
0.56c Nightly 
Automated (specify build number)
None
None
1478
0002010: Npc Pathfinding
npc pathfinding not works on the new maps (ilshenar, malas etc.). i think there is a problem with map numbers, maybe npcs trying to reach same coordinates on the map0.

My AI flags:

NPCAI=0001|0008|0200|0004
No tags attached.
Issue History
31-07-11 21:23ShaklabanNew Issue
06-07-12 23:09AnarchCassiusIssue Monitored: AnarchCassius
07-07-12 15:17Gil AmarthIssue Monitored: Gil Amarth
09-12-12 19:58Gil AmarthNote Added: 0001443
09-12-12 23:49BenNote Added: 0001444
10-12-12 21:42Gil AmarthNote Added: 0001445
12-12-12 01:52darksun84Note Added: 0001446
12-12-12 02:12darksun84Note Edited: 0001446bug_revision_view_page.php?bugnote_id=0001446#r471
11-11-13 06:19BenNote Added: 0001771
11-11-13 06:19BenStatusnew => resolved
11-11-13 06:19BenFixed in Version => 0.56c Nightly
11-11-13 06:19BenResolutionopen => fixed
11-11-13 06:19BenAssigned To => Ben

Notes
(0001443)
Gil Amarth   
09-12-12 19:58   
I´d like to bump this issue.

It´s very strange pathfinding is bugged in all maps except map0. My npcs works perfect avoiding trees un map0, but they fail miserably in the same map1, and they stucks for seconds in every obstacle of their way. And both maps are the same.

I fully confirm this problem.
(0001444)
Ben   
09-12-12 23:49   
Can you post your EF flags. From hat I can see, pathfinding is only used properly with EF_walkcheck and EF_newpositioncheck on.
(0001445)
Gil Amarth   
10-12-12 21:42   
I don´t know Shaklaban ef_flags, but this are mine:

// EF_DiagonalWalkCheck = 00000001
// EF_New_Triggers = 00000008
// EF_WalkCheck = 00000100
// EF_Script_Profiler = 00000400
// EF_NPCAct_Triggers = 00010000
Experimental=01|08|0100|0400|010000

I have tried adding EF_newpositionchek, and it´s worse.
Unless you quit EF_DiagonalWalkCheck, then is sightly better, but still pathfinding it´s better in map0.
Testing it, an ogre never, NEVER, stucks any second in any tree or obstacle when he is chasing you, but in the same map1, he sometimes stuck in a tree, aproximately one second, and it´s very easy to run from him.
(0001446)
darksun84   
12-12-12 01:52   
(edited on: 12-12-12 02:12)
I tested it in Ilshenar map, same your flag(and npc always smarter pathfinding flag, and yes they tend to stuck more and wander around.

For a quick test : Cast wall of stone
map0, the npc will get you.
Map 2, the npc will get stuck and it will wander around

(0001771)
Ben   
11-11-13 06:19   
Finally fixed!!!