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

**URL:** <https://forums.unrealengine.com/t/i-am-unable-to-make-my-c-classes-survive-a-restart-in-unreal-5-6/2560725>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 16, 2025, 5:47pm UTC](https://forums.unrealengine.com/t/i-am-unable-to-make-my-c-classes-survive-a-restart-in-unreal-5-6/2560725 "2025-06-16T17:47:00Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![user\_8957b75d53c59633abac973cca60e02588d2a4b050be698c7c1f2d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_8957b75d53c59633abac973cca60e02588d2a4b050be698c7c1f2d](https://forums.unrealengine.com/u/user_8957b75d53c59633abac973cca60e02588d2a4b050be698c7c1f2d)\
**Post date:** [June 23, 2025, 8:07am UTC](https://forums.unrealengine.com/t/i-am-unable-to-make-my-c-classes-survive-a-restart-in-unreal-5-6/2560725/8 "2025-06-23T08:07:10Z")

</div>

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:

```auto
+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

```auto
+ActiveGameNameRedirects=(OldGameName="YourProjectName",NewGameName="/Script/MyProject")
+ActiveGameNameRedirects=(OldGameName="/Script/YourProjectName",NewGameName="/Script/MyProject")

```

and leave only

```auto
+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.

---

_[View the full topic](https://forums.unrealengine.com/t/i-am-unable-to-make-my-c-classes-survive-a-restart-in-unreal-5-6/2560725)._
