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.
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.