I need help fixing this error, I already followed the steps that was posted in another forum that was:
Closed Unreal Engine
Removed Binaries, Build, Intermediate, Saved
Deleted .sln file
Reopen the .uproject
This project was created around 2 years ago using Unreal Engine 5.0, I’m currently on Unreal Engine 5.3
The project ONLY used Blueprint and wasn’t created using C++
I think there’s a bug with UE 5s regarding implicit source compilation - i.e clicking the .uproject without compiling via VS first.
UE 4 will pop a window showing progress of compilation but UE 5 does the compilation silently which makes one think that there has been a problem and clicking the .uproject file once again which will pop an error such as this one.
First click right button on .project than “switch unreal engine version” to 5.3
This would generate new files and an .sln
Than hit .uproject again, hold until something pops, do not hit again.
If this window popped - hit the .sln file and Build it (Ctrl + B or Ctrl + Shift + B) - post errors here.
Those 2 errors at the top are coming from the engine, we can ignore them as it seems like the engine works fine.
Yet your project fails to compile and the reason can’t be understood (to me at least) from the error list, please upload the entire output window, maybe it will give us a clue.
Ok so apparently the one of the 3 fails is because I didn’t have a plugin, I just installed that plugin and now only 2 fails left.
Build started at 9:38 PM…
1>------ Build started: Project: UE5, Configuration: BuiltWithUnrealBuildTool Win64 ------
2>------ Build started: Project: BuildGraph.Automation, Configuration: Development Any CPU ------
3>------ Build started: Project: AutomationScripts.Automation, Configuration: Development Any CPU ------
2>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs(1640,37,1640,42): error CS8604: Possible null reference argument for parameter ‘other’ in ‘void HashSet.UnionWith(IEnumerable other)’.
2>Done building project “BuildGraph.Automation.csproj” – FAILED.
3>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\Scripts\CheckForHacks.cs(87,26,87,45): error CA2017: Number of parameters supplied in the logging message template do not match the number of named placeholders (CA2017: Parameter count mismatch (code analysis) - .NET | Microsoft Learn)
3>Done building project “AutomationScripts.Automation.csproj” – FAILED.
========== Build: 1 succeeded, 2 failed, 44 up-to-date, 0 skipped ==========
========== Build completed at 9:38 PM and took 16.703 seconds ==========
Build started at 13:37...
1>------ Build started: Project: Shooter2, Configuration: Development_Editor x64 ------
1>Using bundled DotNet SDK version: 6.0.302
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Shooter2Editor Win64 Development -Project="D:\Shooter2BackupNew\Shooter2\Shooter2.uproject" -WaitMutex -FromMsBuild -architecture=x64
1>Log file: C:\Users\voel_mn\AppData\Local\UnrealBuildTool\Log.txt
1>Using 'git status' to determine working set for adaptive non-unity build (D:\Shooter2BackupNew\Shooter2).
1>Creating makefile for Shooter2Editor (no existing makefile)
1>EXEC : warning : [Upgrade]
1>EXEC : warning : [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:
1>EXEC : warning : [Upgrade] bLegacyParentIncludePaths = false => Omits module parent folders from include paths to reduce compiler command line length. (Previously: true).
1>EXEC : warning : [Upgrade] CppStandard = CppStandardVersion.Default => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).
1>EXEC : warning : [Upgrade] WindowsPlatform.bStrictConformanceMode = true => Updates MSVC strict conformance mode to true (Previously: false).
1>EXEC : warning : [Upgrade] bValidateFormatStrings = true => Enables compile-time validation of strings+args passed to UE_LOG. (Previously: false).
1>EXEC : warning : [Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V5;' in Shooter2Editor.Target.cs, and explicitly overriding settings that differ from the new defaults.
1>EXEC : warning : [Upgrade]
1>EXEC : warning : [Upgrade]
1>EXEC : warning : [Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
1>EXEC : warning : [Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Oldest
1>EXEC : warning : [Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Latest;' in Shooter2Editor.Target.cs.
1>EXEC : warning : [Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
1>EXEC : warning : [Upgrade]
1>Total execution time: 13.66 seconds
1>Shooter2Editor modifies the values of properties: [ bStrictConformanceMode ]. This is not allowed, as Shooter2Editor has build products in common with UnrealEditor.
1>Remove the modified setting, change Shooter2Editor to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the Shooter2EditorTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command "D:\UE_5.4\Engine\Build\BatchFiles\Build.bat Shooter2Editor Win64 Development -Project="D:\Shooter2BackupNew\Shooter2\Shooter2.uproject" -WaitMutex -FromMsBuild -architecture=x64" exited with code 6.
1>Done building project "Shooter2.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 11 up-to-date, 0 skipped ==========
========== Build completed at 13:37 and took 14,208 seconds ==========
Ok I have no idea if this was the right way, but I first generated visual studio project files
in another forum thread I found a suggestion to install SDK NET 7.0 and NET 6.0 (I don’t even know what that’s for).
I tried building again, same errors.
1 Day Later:
I gave up on this approach. But what worked for me was creating a blank 5.4.2 Project and migrating everything over from my 5.1.1. Project.