Custom AIController on Character gets reset when editor is restarted

What is your engine version? Where You set this custom AIController, in BP or on level or where ?

More details(repro steps etc)…

I have a simple 4.4 blueprint project with a custom character, AI controller, and a behavior tree. When I assign my custom AI Controller (MinionController) on my custom character (Minion) and compile, the behavior is as expected - I play the game through the editor and the character uses the custom controller, which then runs my behavior tree.

However, for some reason when I close the editor, after saving all of the assets, and then reopen the project, my Minion character blueprint is set back to the default AIController instead of my custom controller that I set.

Here are the project files; it’s only 3MB: http://gamepatriot.com/ue4/DefaultControllerSave.

Edit:

Reproduction steps when using the project files:

  • Download, Extract, and open the .uproject file (4.4 engine)
  • Open Minion blueprint folder
  • On the defaults tab, set the AI controller to MinionController
  • Save and compile; close the blueprint window
  • File → save all
  • Close editor
  • Reopen project, navigate back to the Minion blueprint, and notice the AI controller is set back to the Character default of “AIController”

Engine is 4.4 and controller is set in blueprint like I mentioned above.

When I recreate the entire small project from scratch, I consistently get the same bug where the controller gets reset on Minion. Repro steps are difficult to track down since it doesn’t seem to occur when simply having a character and controller blueprint, and it also requires an editor restart.

Hi ,

I was able to reproduce this on my end and have entered in a bug report, TTP#345464 to be assessed by our development staff. Thank you and have a great day!

You guys are awesome, thanks .

One thing that can help you for now is that if you open your project, and open the controller’s BP before pawn’s everything will work as expected. A little workaround :smiley:

–mieszko

Hi, just want to report that this is still an issue in engine version 4.7.1, the only remnant of the circular dependency issue I can find now.

Thank you Draco, I will update the report with this information.

confirmed, I have this issue as well.

Not anymore on 4.7.2; it always is the wrong controller.