Build Fails for AIController

Guys,

I just wanted to add an AIController into the game. I created a new subclass of AIController in the editor and just tried to build it without any changes. In the attachment you can find what I get when I try to build it.

Output Message

Note: If you download the txt file and open it with notepad for instance, you want display the text better.

AAIController is inside the AIModule library.

Do you have “AIModule” as an entry in either a PrivateDependencyModuleNames or PublicDependencyModuleNames in your .Build.cs file?

NO. I also do not know what you are talking about :confused: but I will do my homework. After I test it, I will inform you.

Right, so if your game was called “MyGame”, then you’d have a file called “MyGame.Build.cs” inside the “Source\MyGame” folder.

This file tells the UnrealBuildTool (UBT) what to do when building your game.

In there you should see an array for PrivateDependencyModuleNames and/or PublicDependencyModuleNames - this tells UBT which modules need to be linked when building your game, so you’ll need to add “AIModule” to one of those.

There’s some more information about the source code layout used by UBT here: Explanation of Source Code folder structure? - C++ - Epic Developer Community Forums