I am unable to make my C++ classes survive a restart in Unreal 5.6

I spent my whole day debugging it, and finally figured it out. Here is my solution:

  1. Find “Config/DefaultEngine.ini” in your project folder, open it.
  2. Search for “ActiveGameNameRedirects”. Hopefully you will find 4 lines:
+ActiveGameNameRedirects=(OldGameName="TP_FirstPersonBP",NewGameName="/Script/YourProjectName")
+ActiveGameNameRedirects=(OldGameName="/Script/TP_FirstPersonBP",NewGameName="/Script/YourProjectName")
+ActiveGameNameRedirects=(OldGameName="YourProjectName",NewGameName="/Script/MyProject")
+ActiveGameNameRedirects=(OldGameName="/Script/YourProjectName",NewGameName="/Script/MyProject")
  1. Delete these two lines
+ActiveGameNameRedirects=(OldGameName="YourProjectName",NewGameName="/Script/MyProject")
+ActiveGameNameRedirects=(OldGameName="/Script/YourProjectName",NewGameName="/Script/MyProject")

and leave only

+ActiveGameNameRedirects=(OldGameName="TP_FirstPersonBP",NewGameName="/Script/YourProjectName")
+ActiveGameNameRedirects=(OldGameName="/Script/TP_FirstPersonBP",NewGameName="/Script/YourProjectName")
  1. Reopen Unreal. Problem solved.

So this is a bug of template FirstPersonBP. Hope the official team fix it soon.

7 Likes