Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Failed to compile after extending from UBTTask_* classes

Hey Peeps!

I am trying to create a new behavior tree task by extending from either UBTTask_BlueprintBase or UBTTask_BlackboardBase but when I do so from the Unreal Editor using File->Add Code to Project it results in the following error:

 [2015.03.07-15.03.01:521][686]CompilerResultsLog:Error: Error /Users/anshul_goyal/Documents/Unreal Projects/ShotgunHades/Source/ShotgunHades/AI/BehaviorTrees/Tasks/BTTask_FindRandomPosition.h(11)  : Error: Superclass BTTask_BlackboardBase of class BTTask_FindRandomPosition not found
 [2015.03.07-16.11.54:670][338]CompilerResultsLog:Error: Error /Users/anshul_goyal/Documents/Unreal Projects/ShotgunHades/Source/ShotgunHades/AI/BehaviorTrees/Tasks/BTTask_FindRandomPosition.h(11)  : Error: Superclass BTTask_BlueprintBase of class BTTask_FindRandomPosition not found

BTTask_FindRandomPosition is the name of the class that I trying to add. So after this I closed the editor and tried to compile from XCode directly, the build still failed with the attached log.

I looked at some of the BT Tasks that is already in the engine for eg: UBTTask_MoveTo and UBTTask_MoveDirectlyToward and try to mimic exactly what they are doing but still the project fails to compile.

I am on OSX Yosemite with UE4.7 running directly from the source.

Any help is much appreciated!


Product Version: Not Selected
more ▼

asked Mar 07 '15 at 04:24 PM in C++ Programming

avatar image

153 9 12 216

avatar image Anshul Mar 09 '15 at 12:31 AM

Bumping up my question :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It seems you're missing AIModule as your project's dependency. Add the following line to your project's *.Build.cs file:


We are aware of the issue and have a fix is coming soon.



more ▼

answered Mar 09 '15 at 11:14 AM

avatar image

MieszkoZ STAFF
7.4k 225 57 414

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question