# DoN's 3D-Pathfinding / Flying-AI system (with full source!)

**URL:** <https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271>\
**Category:** World Creation\
**Tags:** unreal-engine\
**Created:** [March 4, 2016, 6:41pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271 "2016-03-04T18:41:32Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![woshihong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@woshihong](https://forums.unrealengine.com/u/woshihong)\
**Post date:** [August 31, 2016, 9:11am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/142 "2016-08-31T09:11:03Z")

</div>

How to hide the path lines

How to hide the path lines  
![722GZG4]H$7[Q0D)A$3Q7NK.png|638x254](https://forums.unrealengine.com/uploads/short-url/s1U3WG0sLEBIwCU7RCm1oq93Wam.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_99ce3a18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_99ce3a18](https://forums.unrealengine.com/u/anonymous_user_99ce3a18)\
**Post date:** [September 5, 2016, 6:34am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/144 "2016-09-05T06:34:47Z")

</div>

Very good, I have put the plug in my project, very good, but I have a problem, the project is always packed failed, but I can not find what reason, I use the 4.12 version of the engine ,Thank you.

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [September 5, 2016, 7:54am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/145 "2016-09-05T07:54:13Z")

</div>

@Giraya@woshihong - Totally missed your posts, sorry. I rely on the forum email notification system to check this thread and sometimes it just doesn’t send a mail when a new post arrives.

–  
@Giraya - The compiler on Linux/Mac is stricter than Windows. You’ll need to open DonAINavigation.Build.cs and add **bEnableShadowVariableWarnings = false;** inside the DonAINavigation module constructor to fix build errors. I’ve tested the plugin on Linux before and it worked after making this change.

–  
@woshihong - Open the behavior tree named “FlightBehavior”, click on the node “Fly To” and under “Query Params” turn off the options to Visualize Raw/Optimzied path.

–  
@wuyukang - I found no issues packaging the 4.12 project when I tried it now and no one else has reported it either so we’ll need to see your packaging Output Logs/Cook logs to know what’s going on. The output log will tell you where the Cook log is located as well.

Most likely a setup issue on your end. Common packaging issues include:  
#1 Folder path being too long (just try packaging to a top-level folder like D: est for example)  
#2 Project name starting with a number as opposed to a letter. Eg: A project named 3DNavTest will not package while Nav3DTest will.  
#3 Lack of disk space, etc…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5aa6ac7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5aa6ac7d](https://forums.unrealengine.com/u/anonymous_user_5aa6ac7d)\
**Post date:** [September 7, 2016, 2:12pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/146 "2016-09-07T14:12:41Z")

</div>

@

Hi,  
I’m trying to build your plugin on Mac and its giving me this error:  
“Plugins/DonAINavigation 2/Source/DonAINavigation/Classes/DonNavigationManager.h:295:20: error: assigning field to itself -Werror,-Wself-assign-field]”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_99ce3a18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_99ce3a18](https://forums.unrealengine.com/u/anonymous_user_99ce3a18)\
**Post date:** [September 8, 2016, 8:30am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/148 "2016-09-08T08:30:54Z")

</div>

@  
Please look at my log files it  
[https://www.dropbox.com/s/q7fwhou0euqakhk/Log.txt?dl=0](https://www.dropbox.com/s/q7fwhou0euqakhk/Log.txt?dl=0)

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [September 8, 2016, 8:53am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/149 "2016-09-08T08:53:21Z")

</div>

> [@YagoTxr;591127](#):
>
> @  
> Hi,  
> I’m trying to build your plugin on Mac and its giving me this error:  
> “Plugins/DonAINavigation 2/Source/DonAINavigation/Classes/DonNavigationManager.h:295:20: error: assigning field to itself -Werror,-Wself-assign-field]”

Did you edit Build.cs by setting **bEnableShadowVariableWarnings = false;** like I explained above? That error only comes when you haven’t fixed that setting.

> [@wuyukang;591537](#):
>
> @  
> Please look at my log files it  
> [Dropbox - Error - Simplify your life](https://www.dropbox.com/s/q7fwhou0euqakhk/Log.txt?dl=0)

The error appears to be this line:

```auto

UE4Editor-Cmd: Ensure condition failed: ObservedKeyNames.Num() > 0 [File:D:\Build\++UE4+Release-4.12+Compile\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\Decorators\BTDecorator_BlueprintBase.cpp] [Line: 66]

```

I found an [Answerhub post](https://answers.unrealengine.com/questions/230023/ensure-observedkeynamesnum-0-failed-in-ubtdecorato.html) with a similar issue but no one else has reported this issue with the 4.12 build and I’m not seeing it either.

What is the name of the zip file from which you loaded the sample project?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5aa6ac7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5aa6ac7d](https://forums.unrealengine.com/u/anonymous_user_5aa6ac7d)\
**Post date:** [September 8, 2016, 11:58am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/150 "2016-09-08T11:58:12Z")

</div>

@  
Yes, i add bEnableShadowVariableWarnings = false; in the DonAINavigation.Build.cs constructor and still giving me this error

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [September 8, 2016, 12:30pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/151 "2016-09-08T12:30:59Z")

</div>

> [@YagoTxr;591625](#):
>
> @  
> Yes, i add bEnableShadowVariableWarnings = false; in the DonAINavigation.Build.cs constructor and still giving me this error

Ok, that worked on Linux, I don’t have a Mac so I’ve never tested there.

Edit:  
So the error is coming from an initializer list in DonNavigationManager.h:295:20.

Looks like the Mac compiler doesn’t like the underscore I’m using to differentiate the local variable and member (\_DrawDebugVolumes v/s DrawDebugVolumes). If the bEnableShadowVariableWarnings flag is not working on Mac then the only option is to manually make all initializer list variable names unique.

For example, you’ll have to change the initializer list code from this:

```auto

FDoNNavigationDebugParams(bool _DrawDebugVolumes, bool _VisualizeRawPath, bool _VisualizeOptimizedPath, bool _VisualizeInRealTime, float _LineThickness)
	{
		DrawDebugVolumes = _DrawDebugVolumes;
		VisualizeRawPath = _VisualizeRawPath;
		VisualizeOptimizedPath = _VisualizeOptimizedPath;
		VisualizeInRealTime = _VisualizeInRealTime;
		LineThickness = _LineThickness;
	}

```

to something like

```auto

FDoNNavigationDebugParams(bool local_DrawDebugVolumes, bool local_VisualizeRawPath, bool local_VisualizeOptimizedPath, bool local_VisualizeInRealTime, float local_LineThickness)
	{
		DrawDebugVolumes = local_DrawDebugVolumes;
		VisualizeRawPath = local_VisualizeRawPath;
		VisualizeOptimizedPath =local _VisualizeOptimizedPath;
		VisualizeInRealTime = local_VisualizeInRealTime;
		LineThickness = local_LineThickness;
	}

```

You will need to make similar changes in all initializer lists in that file and any other places where this issue comes up. Again, I haven’t tested the plugin on Mac ever so you might run into more compilation issues along these lines.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5aa6ac7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5aa6ac7d](https://forums.unrealengine.com/u/anonymous_user_5aa6ac7d)\
**Post date:** [September 8, 2016, 5:04pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/152 "2016-09-08T17:04:24Z")

</div>

@  
Thanks for the help, I manage to build it making some changes

In DonNavigationManager.h:295 there was a self assigning

```auto

DrawDebugVolumes = DrawDebugVolumes;

```

I just add a ‘\_’ in the second one and worked

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [September 8, 2016, 5:34pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/153 "2016-09-08T17:34:13Z")

</div>

@YagoTxr - Great to hear 🙂 That’s fixed in a local build of mine, one of the many changes I just haven’t had time to push out yet along with some of the recently discovered items mentioned in [this post](https://forums.unrealengine.com/showthread.php?102933-DoN-s-3D-Pathfinding-Flying-AI-system-(with-full-source!)&p=574182&viewfull=1#post574182).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_99ce3a18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_99ce3a18](https://forums.unrealengine.com/u/anonymous_user_99ce3a18)\
**Post date:** [September 9, 2016, 10:27am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/154 "2016-09-09T10:27:17Z")

</div>

@

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/f/2f0984456f8dd47c5beb0a68b72c3d6cf62ef2aa.jpeg) ](http://tinypic.com/images/goodbye.jpg)

Hi,  
I delete the ‘CloseEnough’ blueprint, and create a new one that is totally the same with the old one, now packing a success! Thank you:)

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [September 9, 2016, 10:39am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/155 "2016-09-09T10:39:06Z")

</div>

Great! 🙂 Thanks for posting the solution. Looks like that blueprint got corrupted during download or unpacking. I’ve had something similar happen to me once.

---

<div class="post-metadata">

**Author:** ![VictorBurgos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorburgos/32/1008648_2.png) [@VictorBurgos](https://forums.unrealengine.com/u/VictorBurgos)\
**Post date:** [September 10, 2016, 12:06am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/156 "2016-09-10T00:06:03Z")

</div>

4.13 or bust 😉

---

<div class="post-metadata">

**Author:** ![MatzeOGH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MatzeOGH](https://forums.unrealengine.com/u/MatzeOGH)\
**Post date:** [September 12, 2016, 12:36pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/157 "2016-09-12T12:36:31Z")

</div>

I am sure that there will be a port for 4.13 soon 😉

---

<div class="post-metadata">

**Author:** ![Cinebeast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cinebeast](https://forums.unrealengine.com/u/Cinebeast)\
**Post date:** [September 12, 2016, 4:14pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/158 "2016-09-12T16:14:22Z")

</div>

> [@MatzeOGH;593394](#):
>
> I am sure that there will be a port for 4.13 soon 😉

I hope so. I upgraded to 4.13 and now I can’t open my project. Hope there’s something soon!

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [September 12, 2016, 4:30pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/159 "2016-09-12T16:30:59Z")

</div>

My game’s release is around the corner so that’s been keeping me very busy.

I don’t have 4.13 installed either and will need to make free space for it first (believe me that’s so much harder than it sounds and a mental diversion I’d rather not tackle now!).

I’ll try to take a look at it this week but I can’t commit to it though.

---

<div class="post-metadata">

**Author:** ![Cinebeast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cinebeast](https://forums.unrealengine.com/u/Cinebeast)\
**Post date:** [September 13, 2016, 4:06am UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/160 "2016-09-13T04:06:39Z")

</div>

I understand, dude. Don’t fret too hard.

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [September 13, 2016, 4:19pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/161 "2016-09-13T16:19:15Z")

</div>

@Cinebeast - I found no compilation issues when I built the plugin for 4.13 today.

Some other plugin or code that you’re using might be preventing you from opening your project.

In any case, I’ll upload the plugin for 4.13 sometime this week but that’s probably not going to help you open your project till you fix the other plugins or C++ code that your project uses!

---

<div class="post-metadata">

**Author:** ![Cinebeast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cinebeast](https://forums.unrealengine.com/u/Cinebeast)\
**Post date:** [September 13, 2016, 6:47pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/162 "2016-09-13T18:47:12Z")

</div>

@

Thank you! In the meantime, I’ve found a fix by opening a version of the project in 4.12. (Close call there. I forgot I had it.)

With that said, I don’t think the issue’s necessarily on my end . I tried to make a new 4.13 project with your plugin and met an error message. Without your plugin, I can make a new 4.13 project just fine. And I can make 4.12 projects with or without your plugin. So, I dunno.

Still, things look fixed for now.

---

<div class="post-metadata">

**Author:** ![Doublezer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doublezer0](https://forums.unrealengine.com/u/Doublezer0)\
**Post date:** [September 14, 2016, 5:41pm UTC](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271/163 "2016-09-14T17:41:36Z")

</div>

> [@;594099](#):
>
> In any case, I’ll upload the plugin for 4.13 sometime this week but that’s probably not going to help you open your project till you fix the other plugins or C++ code that your project uses!

Hey, thanks for the plugin. It’s so good for a free product and we have been using it for a couple of engine versions now.

I was just trying to recompile for 4.13 and it gave me a list of errors.

```auto

2> DonAINavigation.generated.cpp
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Classes\DonNavigationManager.h(519): warning C4458: declaration of 'Mesh' hides class member
2> U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Classes\DonNavigationManager.h(487): note: see declaration of 'FDonMeshIdentifier::Mesh'
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Classes/DonNavigationManager.h(519): warning C4458: declaration of 'Mesh' hides class member
2> U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Classes/DonNavigationManager.h(487): note: see declaration of 'FDonMeshIdentifier::Mesh'
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Private\DonNavigationManager.cpp(47): warning C4996: 'USceneComponent::AttachTo': This function is deprecated, please use AttachToComponent instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2> U:\Repository\UnrealEngine\Engine\Source\Runtime\Engine\Classes\Components/SceneComponent.h(594): note: see declaration of 'USceneComponent::AttachTo'
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Private\DonNavigationManager.cpp(51): warning C4996: 'USceneComponent::AttachTo': This function is deprecated, please use AttachToComponent instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2> U:\Repository\UnrealEngine\Engine\Source\Runtime\Engine\Classes\Components/SceneComponent.h(594): note: see declaration of 'USceneComponent::AttachTo'
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Private\DonNavigationManager.cpp(1730): warning C4456: declaration of 'bFoundResult' hides previous local declaration
2> U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Private\DonNavigationManager.cpp(1706): note: see declaration of 'bFoundResult'
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Private\Legacy\DEPRECATED_VolumeAdaptiveBuilder.cpp(28): warning C4996: 'USceneComponent::AttachTo': This function is deprecated, please use AttachToComponent instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2> U:\Repository\UnrealEngine\Engine\Source\Runtime\Engine\Classes\Components/SceneComponent.h(594): note: see declaration of 'USceneComponent::AttachTo'
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Private\Legacy\DEPRECATED_VolumeAdaptiveBuilder.cpp(175): warning C4996: 'USceneComponent::AttachTo': This function is deprecated, please use AttachToComponent instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2> U:\Repository\UnrealEngine\Engine\Source\Runtime\Engine\Classes\Components/SceneComponent.h(594): note: see declaration of 'USceneComponent::AttachTo'
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Private\Legacy\DEPRECATED_VolumeAdaptiveBuilder.cpp(1109): warning C4458: declaration of 'NAVOverlapQuery' hides class member
2> U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Classes\Legacy/DEPRECATED_VolumeAdaptiveBuilder.h(156): note: see declaration of 'ADEPRECATED_VolumeAdaptiveBuilder::NAVOverlapQuery'
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Private\Legacy\DEPRECATED_VolumeAdaptiveBuilder.cpp(1110): warning C4458: declaration of 'ActorsToIgnoreForCollision' hides class member
2> U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Source\DonAINavigation\Classes\Legacy/DEPRECATED_VolumeAdaptiveBuilder.h(159): note: see declaration of 'ADEPRECATED_VolumeAdaptiveBuilder::ActorsToIgnoreForCollision'
2> [5/5] Link UE4Editor-DonAINavigation.dll
2> Creating library U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-DonAINavigation.lib and object U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-DonAINavigation.exp
2>Module.DonAINavigation.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)" (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
2>DonAINavigation.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)" (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
2>U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Binaries\Win64\UE4Editor-DonAINavigation.dll : fatal error LNK1120: 1 unresolved externals
2>ERROR : UBT error : Failed to produce item: U:\Unreal Projects\CDFStarfighter412\Plugins\DonAINavigation\Binaries\Win64\UE4Editor-DonAINavigation.dll

```

Seeing the error, I did some google-fu and came up with this quote :

> [@kamrann;593714](#):
>
> Just a stricter compilation setting. It means you’ve created a parameter/local variable with the same name as a class member variable. Won’t break anything but generally it’s a good idea to avoid doing this.

This made me think that wasn’t the real issue so the last part seems to be something to note.

```auto

Module.DonAINavigation.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)" (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)

```

Any idea what’s up here ? I appreciate you are releasing a new version soon but I thought I would try compile first and have had no luck here.  
Thanks again

[EDIT: bEnableShadowVariableWarnings = false; fixed the shadow variable issue and I was just left with deprecated warnings about the unresolved IGameplayTaskOwnerInterface error]

[EDIT#2: I added “GameplayTasks” to the DonAINavigation.build.cs in the public dependencies and it compiled. Sorry for the distraction but I will leave this here to help others.]

[Previous page](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271.md?page=7)

[Next page](https://forums.unrealengine.com/t/dons-3d-pathfinding-flying-ai-system-with-full-source/57271.md?page=9)
