Successful completion of a tutorial, but get load errors every time I restart Unreal Engine.

Hello,

I have started learning UE5.6 and have redone the tutorial " Code a First-Person Adventure Game" about 5 or 6 times now. The setup of UE5.6 and VS2022 seems to be in working order. I have gone through the tutorials back and forth to the point where everything is working but every time I take a break and close everything down to restart later, I always get these same errors.

I have googled and tried various things like deleting BuildConfiguration file, turning off windows defender and adding exclusion folder in windows security all to no avail.

It is not clear if the problem is in UE5 or Visual Studio or somewhere else as I was able to delete the blueprint character and blueprint game mode and remake them and it would all work again. But again, once I turn everything off and load up a restart, I get the same errors.

I also found out that you cannot delete C++ classes which I understand are the parent classes of blueprints and yet the error messages say that the C++ classes are invalid?

I wonder if anyone has a solution. Thanks for reading.


1 Like

Hey @Kitviren!

I suspect the issue arises from you not building the project from VS by hitting Ctrl + F5 but rather opening up the .uproject file to launch the editor. So, give it a try and let us know how it goes! :blush:

I’ve also been pulling my hair out with this exact issue, following the same tutorial. Unfortunately, opening via Ctrl + F5 does not fix it for me.

At this point, I’m thinking that there must be some issue with the sample assets included in the Arena Shooter template, as I can create a new blank project and successfully create a C++ class, compile, and derive a blueprint class from it, and have that continue to function after closing and re-opening. Following the same steps with the Arena Shooter template immediately gives me broken files, with the same error shown in the OP.

I’ve tried disabling Live Coding and Hot Reload, deleting Binaries/Intermediate/.sln and rebuilding, ensured I have all the correct VS dependencies installed (following the Setting Up Visual Studio page in the documentation), installed additional versions of MSVC, verified UE install, uninstalled VS completely and switched to VSCode (same result where only blank projects work), uninstalled that and started over with a fresh VS install.

Update: I’m able to get the project to re-open successfully if during project creation I set the Project Default to C++ instead of Blueprint, then close the editor and re-open it via Ctrl + F5 within Visual Studio. There are a few more pre-populated assets in the project, since it includes both the Arena Shooter and Survival Horror templates when doing this.

Thank you @VisAgilis for the tip on Ctrl + F5! I had seen other people mention opening the editor from VS but I was unclear on how to actually do this.

Hopefully this helps you @Kitviren. If not, maybe check your MSVC version, as the pre-selected one when following the documentation page I linked above didn’t install version 14.38.33130, I had to find it in the “Individual components” section of the VS installer.

1 Like