Blueprint reference keeps breaking after restarting the editor (following official tutorial)

Hi everyone,

I’m completely new to Unreal Engine and fairly new to C++, though I have several years of experience with other programming languages like Java, JavaScript, and C.

I’m currently working through the official tutorial Code a First-Person Adventure Game in Unreal Engine, but I’ve run into a few issues that I just can’t make sense of, and I’d really appreciate some help understanding what’s going on.

I’m trying to dig into each problem step by step, double-checking everything carefully. Still, this particular issue has me completely stuck:


Issue 1: Blueprint not showing up in dropdown lists


As shown in [picture1-1] and [picture1-2], my Blueprint BP_AdventureGameMode doesn’t appear in the dropdown menus for GameMode Override or Default GameMode.

Here’s what I did:

  • I followed the tutorial exactly: first created the C++ class AdventureGameMode, then created the corresponding Blueprint BP_AdventureGameMode based on it.
  • There were already some tricky parts early on (like needing to close the editor before building), but I got through that.
  • However, even after everything compiled successfully, BP_AdventureGameMode still doesn’t appear in the expected dropdowns.

I found a workaround: dragging the Blueprint directly into the GameMode slot from the Content Browser seems to work ([picture2-1], [picture2-2]).


After doing that, everything appears to be working properly. When I build and press Play, I get the expected in-game message ([picture3]).


Issue 2: Reference breaks after restarting the editor

Here’s the big problem:
Every time I restart the Unreal Engine editor, I get a warning message ([picture4-1]),

and the reference to BP_AdventureGameMode is completely broken ([picture4-2], [picture4-3], [picture4-4]).



This keeps happening every single time I restart the editor. I’ve recreated the project from scratch and followed the tutorial step-by-step multiple times — the issue is always the same.

I honestly don’t understand what’s going on. It feels like Unreal Engine is unstable, and I’m starting to worry whether I’ll be able to reliably build anything with it if this kind of issue keeps happening.


Any insights or help would be greatly appreciated.
Why does this reference keep breaking after restarting the editor?
Is this a bug, or am I missing something fundamental?

Thanks in advance!

well, i spent the whole day on this one… i remember i saw at least one more topic with exactly the same problem so i decided to try it out myself and got the same result. Then i spent around 6-7 hours troubleshooting why it happens only when i follow this specific epic guide and not with other projects… turned out that new “FirstPersonBP” and “VehicleBP” templates had some weird “Redirects” in their “DefaultEngine.ini” config files which was causing all this. So i guess no one could really finish this new “code a FPS Adventure Game” guide from epic if they would use the same FPS template. Go to your project folder → config → open “DefaultEngine.ini” → search for “[/Script/Engine.Engine]” , under it you will find 4 lines starting with “+ActiveGameNameRedirects” and 2 of them have “/Script/MyProject” at the end - delete these 2 lines, but don’t touch the other 2 (the ones with your project name at the end). Save file, reopen unreal. - Now everything should work as expected.
In the end i found this solution from the upcoming 5.6.1 hotfix commit :


https://github.com/EpicGames/UnrealEngine/commit/e065cb82075b337bca69549c209e17c1af9f4c42
Honestly i thought i was going crazy…everything worked fine with TPS and twin stick templates but not with FPS one, which official guide suggests. I even re-installed my visual studio, i created like 20 projects… phew

3 Likes

on a second thought i wish i would’ve just searched for the solution first :slight_smile: like i said i remember i saw a bunch of similar topics but i never saw if someone found the solution. And someone sure did, oh well… they actually suggested to remove only 2 lines, i removed all 4 and everything worked anyway (i think :sweat_smile:). I have no idea if they are needed or not :slight_smile: but if it works with them, better leave them be…

1 Like

The solution you suggested worked!
Your post shows how much work and trouble you went through.
I truly appreciate it — it’s been an enormous help to me. Thank you. :grinning_face_with_smiling_eyes:

And reading your post made me also think I should have done a bit more searching myself.
But I still think both your post and mine are meaningful. :laughing:

1 Like

glad it worked :smiley: . But just in case i would bring 2 lines (with your project name at the end) back, i think they are added automatically during project creation phase, so maybe they will be useful at some point. I don’t wanna be responsible for breaking someone’s project, so i will edit my post to suggest deleting only 2 lines, in case someone else will find this thread.

So much projects I started trying to figure out where Im wrong, and here it is, the gold in the end of the mine, thank you very much!