Hi, I am trying to program a game using C++ but when I add a new AI controller class and try to recompile with hot reload (I use unreal engine 4.5.1) there is the problem:“Superclass AI controller of class MyAIController not found”. In xcode, it says “MyAIController.generated.h” file not found.
What do you mean by “recompile with hot reload”? What are the steps you’re using to do that?
As far as I know, the generated.h files are automatically generated by the engine when you build the project. Have you tried doing just a normal build (Prroject->Build) first (after adding the new class) so that the Unreal tools can generate the generated header for you?
Hi! Thanks for helping. Here is what I’ve done:
configure in xcode myprojecteditor>my mac; build and then run current scheme
At this point the GUI is then launched with “debug game” next to the title
add AIController with public in myproject (runtime) standard defaults; compiling in unreal engine 4 gives failed; compiling in xcode (project->build) gives failed
However I think it is class specific…when I did the same thing but instead of AIController added a character class I compiled and got hot reload succeded, no problem.
Indeed after adding a character class, I added a AIController using the same procedure, then compiled in unreal engine 4 GUI and it failed.
I’m not really following your steps. What do you mean by “configure in xcode myprojecteditor>my mac”? What exactly are you doing? How are you building and running current scheme? How are you launching the GUI with “debug game” next to the title? There’s a lot here I can’t seem to follow along with, sorry.
Sorry If I was not clear, putting images it’s like this for “configure in xcode myprojecteditor>my mac”:
26064-
for “debug game” next to the title I meant this:
26065-
After adding a new class, I am compiling either from Xcode in product —> build, or from unreal engine with the icone “compile” that is the cube on the above screenshot
I hope it is clearer now and thanks
Yes, much clearer, thanks! That actually helped me figure out my own issue! So, thank you very much for those images.
As for your issue, have you tried adding the new AI class by launching the editor manually (via the Finder), opening your project then Add Code to Project? Then Product->Build in xcode?
Cool glad to help^^
Actually I did exactly as you describe and it does this problem, but not for character class…I suspect it is class specific . Since I’ve narrowed the problem I will respecify the question so it is more understandable