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"

How to add custom EQS C++ class (of any type)?

Hi everyone,

I'm trying to use UE4 to simulate behaviour (For University, Organic Computing) and I have come across EQS, which seems to hold a lot of potential for me. I realize that EQS Blueprints are not really functional yet. However, anytime I want to add a C++ class, it fails to build because it lacks dependencies. Adding custom dependencies in VS2013 seems to be disabled in the UE4 project, so how can I get this working?

PS: I have modified and created my own EQS C++ classes by modifying the editor's source from github, but I would prefer not to recompile the whole editor, just to see if my custom class works...

Any help is appreciated. Thanks.

Product Version: Not Selected
more ▼

asked Apr 24 '15 at 11:03 AM in C++ Programming

avatar image

1 1 2 3

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

1 answer: sort voted first

Hello, OJW

This problem may occur in the situation, when appropriate module is not included. Please check Build.cs file of your project (ProjectName/Source/ProjectName/ProjectName.Build.cs).

In the file, you'll see this line

 PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AIModule" });

If "AIModule" is not in the list in your case, please add it and build the project. Also please don't forget to include appropriate headers for your components, for example

 #include "BehaviorTree/BehaviorTree.h"

Hope this helped! Have a great day!

more ▼

answered May 04 '15 at 06:34 AM

avatar image

Andrii Melnyk
1.9k 60 20 112

avatar image OJW May 04 '15 at 10:01 AM

Thanks for the advice. Adding "AIModule" did the trick (also changing the "Generated_body" to "Generated_uclass_body").

(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