Hey, everyone!
Ran into this issue a few days ago and I’ve no idea how to fix it. Searching the web I couldn’t find anyone else who had run into this, so thought I’d post this question to learn the answer and document this occurence if it happens to anyone else in the future.
The Context:
I started working on my project using Unreal 5.3, installed from the Epic Launcher. The project went along fine until I ran into some issues building the project’s C++ source using a slightly different version of VS2022. Looking into it, I had to change some simple lines in the engines source to fix the issue.
Since I was pretty confident I could make the project happen with 5.3, I decided to lock into it by making the switch to a built from source version of 5.3. I downloaded the source, manually introduced the Visual Studio Integration Tools to the engine’s code and it builds fine - though I had to remove the AutoRTFMTests project from the build configuration: it comes enabled by default, but my research yielded that ClangRTFM (required by AutoRTFMTests) is an internal Epic project that isn’t released to costumers.
The engine build itself takes about 2h on my machine, so I’m just posting the result of a build command with the binaries already in place.
Anyway, I had to regenerate the project’s solution and rebuild the project using the new engine’s UnrealBuildTool, but that worked in the end and I kept working on the project with no issues until about a week ago.
Again, the project build takes about 30-40 minutes, so I’m just posting a build with the binaries already in place.
The Issue:
Live Coding is enabled for the project, it comes enabled in 5.3; I had some issues getting it to run, but solved those issues and the runs always finish successfully unless there’s something actually wrong.
Last week I started working with C++ more heavily in my project and, since I’m a noob, I started crashing the engine with my attempts at writing C++ code for Unreal. I’m used to ■■■■■■■ up, so that’s not a problem, I’ll get there eventually; however, having the engine crash constantly on me because I wrote an incorrect signature in a header file seemed like it would hinder me during this initial learning stage. So I decided to try disabling Live Coding so I could control the compilation process more closely.
I rolled back my changes, made sure the C++ sources I had were working as intended, and disabled Live Coding.
I then press the compile button in the engine.
The UI tells me the code compiled successfully…
But then, when I try to play any level in editor, the engine crashes with this error:
And then, the kicker: when trying to reopen my project, the engine crashes with a new error:
From here, the project is stuck: every time I open it, it throws this same error.
The Conclusion:
I don’t really know what is causing the error that happens when I try to play in editor after disabling Live Coding: it traces back to a piece of code from the engine that is checking GameplayTags, but to my knowledge, I have none in assets I worked with. Could only be from something I imported, perhaps. So I validated all of my project assets, fixed the problems shown by the validation and it still happens.
On the error that pops up after I try reopening the project, I read online that these duplicate file errors can usually be fixed by building from the project’s solution. If I open the project’s solution in VS and build the project, it works from the CLI:
But then when I try to open the project with the engine, it fails with the ol’ reliable:
The only course of action I’ve found that restores the project is getting rid of the build content entirely; deleting /Intermediate, /Saved, /Binaries and the rest… Then I can reopen the project with the engine, regenerate the solution and rebuild. However, that lands me back where I started: Live Coding is enabled again. Disabling it takes me through this loop again.
Any ideas?