I have attached a project. It won’t load past 72%.
Steps to reproduce (copy this into your ticket, I already tested it from a FP template.)
- Create FP C++ template
- Create BP child of your CPP GameMode
- Change Project to use BP Game mode
- In BeginPlay() of Character BP call GetGameMode pure function and cast it to your Blueprint game mode (child of C++ gamemode)
- Reboot editor
- It won’t load past 72%
Thank you for posting the link to that issue muchcharles, I do agree that that is likely the same issue. I’ve updated the ticket with the reasoning for it being closed as Won’t Fix, so if you take another look at the public issues link you should be able to see that now.
Just to post the reasoning here for convenience: “There’s no way around it in UE4. The native AMyGameMode class load the character blueprint which has the same native AMyGameMode class as its export so AMyGameMode’s CDO needs to be constructed on load which leads to a dead-lock caused by internal C++ guard on static local variables.”
Have a great day