Errors with FollowerEntity

I replaced AIPath with FollowerEntity in our game. I am getting two errors.

NotImplementedException: The method or operation is not implemented.
Pathfinding.PathTracer.AppendNode (System.Boolean toStart, Pathfinding.GraphNode node) (at Assets/Imported Assets/AStarPathfinding/Utilities/PathTracer.cs:349)
Pathfinding.PathTracer.AppendPath (System.Boolean toStart, Pathfinding.Util.CircularBuffer`1[T] path) (at Assets/Imported Assets/AStarPathfinding/Utilities/PathTracer.cs:377)
Pathfinding.PathTracer.RepairFull (UnityEngine.Vector3 point, System.Boolean isStart, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path) (at Assets/Imported Assets/AStarPathfinding/Utilities/PathTracer.cs:910)
Pathfinding.PathTracer.Repair (UnityEngine.Vector3 point, System.Boolean isStart, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path, System.Boolean allowCache) (at Assets/Imported Assets/AStarPathfinding/Utilities/PathTracer.cs:647)
Pathfinding.PathTracer.UpdateStart (UnityEngine.Vector3 position, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path) (at Assets/Imported Assets/AStarPathfinding/Utilities/PathTracer.cs:303)
Pathfinding.ECS.JobRepairPath.Execute (Unity.Transforms.LocalTransform& transform, Pathfinding.ECS.MovementState& state, Pathfinding.ECS.AgentCylinderShape& shape, Pathfinding.ECS.AgentMovementPlane& movementPlane, Pathfinding.ECS.DestinationPoint& destination, Unity.Entities.EnabledRefRW`1[T] readyToTraverseOffMeshLink, Pathfinding.ECS.ManagedState managedState, Pathfinding.ECS.MovementSettings& settings, Unity.Collections.NativeList`1[T] nextCornersScratch, Unity.Collections.NativeArray`1[System.Int32]& indicesScratch, Unity.Collections.Allocator allocator, System.Boolean onlyApplyPendingPaths) (at Assets/Imported Assets/AStarPathfinding/Core/ECS/Jobs/JobRepairPath.cs:165)
Pathfinding.ECS.JobRepairPath.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) (at Assets/Imported Assets/AStarPathfinding/Core/ECS/Jobs/JobRepairPath.cs:122)
Pathfinding.ECS.JobRepairPath.Unity.Entities.IJobChunk.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) <0x1a1a289e460 + 0x00072> in <fc27de773e3943e9b5b337cf1553d942>:0
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at ./Library/PackageCache/com.unity.entities@1.2.1/Unity.Entities/IJobChunk.cs:420)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at ./Library/PackageCache/com.unity.entities@1.2.1/Unity.Entities/IJobChunk.cs:363)
NullReferenceException: Object reference not set to an instance of an object
Pathfinding.PathTracer.Repair (UnityEngine.Vector3 point, System.Boolean isStart, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path, System.Boolean allowCache) (at Assets/Imported Assets/AStarPathfinding/Utilities/PathTracer.cs:563)
Pathfinding.PathTracer.UpdateStart (UnityEngine.Vector3 position, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path) (at Assets/Imported Assets/AStarPathfinding/Utilities/PathTracer.cs:303)
Pathfinding.FollowerEntity.SetPath (Unity.Entities.Entity entity, Pathfinding.Path path, System.Boolean updateDestinationFromPath) (at Assets/Imported Assets/AStarPathfinding/Core/AI/FollowerEntity.cs:1590)
Pathfinding.FollowerEntity.SetPath (Pathfinding.Path path, System.Boolean updateDestinationFromPath) (at Assets/Imported Assets/AStarPathfinding/Core/AI/FollowerEntity.cs:1534)
Pathfinding.FollowerEntity.SearchPath () (at Assets/Imported Assets/AStarPathfinding/Core/AI/FollowerEntity.cs:1424)
MV.GameBase.LateUpdate () (at Assets/Logic/Scripts/Game/GameBase.cs:250)

Hi

Can you reliably replicate these errors in the latest version?

I’m facing a very similar bug in the 5.2.4 version. Can reliably reproduce. Grid navigation. It happens when a unit tries to do a V manoeuvre in the door cut. Some of the units get stuck (not only the one in the door) some continue motion without any problems. If that’ll help we can get into a call in Discord (id: Bromm).

Kind regards

NotImplementedException: The method or operation is not implemented.
Pathfinding.PathTracer.AppendNode (System.Boolean toStart, Pathfinding.GraphNode node) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:372)
Pathfinding.PathTracer.AppendPath (System.Boolean toStart, Pathfinding.Collections.CircularBuffer`1[T] path) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:380)
Pathfinding.PathTracer.RepairFull (UnityEngine.Vector3 point, System.Boolean isStart, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:913)
Pathfinding.PathTracer.Repair (UnityEngine.Vector3 point, System.Boolean isStart, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path, System.Boolean allowCache) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:650)
Pathfinding.PathTracer.UpdateStart (UnityEngine.Vector3 position, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:306)
Pathfinding.ECS.JobRepairPath.Execute (Unity.Transforms.LocalTransform& transform, Pathfinding.ECS.MovementState& state, Pathfinding.ECS.AgentCylinderShape& shape, Pathfinding.ECS.AgentMovementPlane& movementPlane, Pathfinding.ECS.DestinationPoint& destination, Unity.Entities.EnabledRefRW`1[T] readyToTraverseOffMeshLink, Pathfinding.ECS.ManagedState managedState, Pathfinding.ECS.MovementSettings& settings, Unity.Collections.NativeList`1[T] nextCornersScratch, Unity.Collections.NativeArray`1[System.Int32]& indicesScratch, Unity.Collections.Allocator allocator, System.Boolean onlyApplyPendingPaths) (at ./Packages/com.arongranberg.astar/Core/ECS/Jobs/JobRepairPath.cs:166)
Pathfinding.ECS.JobRepairPath.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) (at ./Packages/com.arongranberg.astar/Core/ECS/Jobs/JobRepairPath.cs:123)
Pathfinding.ECS.JobRepairPath.Unity.Entities.IJobChunk.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) (at <6575069a1eda4787957df56c505f703c>:0)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at ./Library/PackageCache/com.unity.entities/Unity.Entities/IJobChunk.cs:420)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at ./Library/PackageCache/com.unity.entities/Unity.Entities/IJobChunk.cs:363)

Hi there, would you be able to provide any screenshots or videos of the V maneuver the units are having issues with? Feel free to spin up a new thread if you’d like as well, so the OP here doesn’t get pinged on these updates :slight_smile:

New thread: FollowerEntity NotImplementedException

1 Like