Assertion failed: npath < m_maxPath, file ..\..\Source\Libraries\RecastNavigation\DetourCrowd\Source\DetourPathCorridor.cpp, line 506
I have been trying to change the behaviour in MonsterAI.lua and hit this assertion.
I was just running around the map with 9 Crawlers chasing me. I had managed to split them into at least 2 groups and there were about 3 actively chasing me as we were moving away from the other group, which last time I saw them were clambering up the side of a hill.
From the log I had running I can say this bit of code was being used in SetMode(mode)
elseif self.mode=="chase" then
if self.target~=nil then
System:Print("Follow target "..self.EntityName)
if self.entity:Follow(self.target.entity,self.speed,self.maxaccel) then
if prevmode~="chase" then
self.entity:EmitSound(self.sound.alert)
end
self.followingtarget=true
self.animationmanager:SetAnimationSequence(self.animation.run,0.05,300)
else
System:Print("nil target "..self.EntityName)
self.target=nil
self.mode="idle"
return
end
end
its only happend once
self.EntityName is the name given to the Crawler.
The last line in the output log before the assertion was
nil target Purple
I'm not expecting to be able to recreate it, I will update the report if I do.