Game fails to build due to an Unknown Error. I am unable to fix it pls help


I have read some discusions on reddit yet still I have no idea on what to do. I asumed it had something to do with with the version of VS I am using to compile, so I instaled the newest version, but it still doesnt work. Maybe it has something to do with the steam sessions plugin which I am using for multiplayer but really idk. Someone please help.

Maybe this post will help:

Also

UnrealBuldTool failed. See log for more details.

Could you post the log? Post as text, please, it’s easier to read. Just mark it as Pre-Formatted.

LogUObjectHash: Compacting FUObjectHashTables data took 0.73ms
LogTurnkeySupport: Selected target: TheSpace
LogLauncherProfile: Unable to use promoted target - …/…/…/…/…/…/Users/HONZA/Documents/Unreal Projects/TheSpace 5.3/Binaries/Win64/TheSpace.target does not exist.
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ““C:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/RunUAT.bat” -ScriptsForProject=“C:/Users/HONZA/Documents/Unreal Projects/TheSpace 5.3/TheSpace.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=56048 -project=“C:/Users/HONZA/Documents/Unreal Projects/TheSpace 5.3/TheSpace.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Users/HONZA/Documents/Unreal Projects/TheSpace 5.3/TheSpace.uproject” -target=TheSpace -unrealexe=“C:\Program Files
Epic Games\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory=“C:/Users/HONZA/Desktop” -clientconfig=Development” -nocompile -nocompileuat ]
UATHelper: Packaging (Windows): Running AutomationTool…
UATHelper: Packaging (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: Packaging (Windows): Starting AutomationTool…
UATHelper: Packaging (Windows): Parsing command line: -ScriptsForProject=“C:/Users/HONZA/Documents/Unreal Projects/TheSpace 5.3/TheSpace.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=56048 -project=“C:/Users/HONZA/Documents/Unreal Projects/TheSpace 5.3/TheSpace.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Users/HONZA/Documents/Unreal Projects/TheSpace 5.3/TheSpace.uproject” -target=TheSpace -unrealexe=“C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -in
stalled -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory=C:/Users/HONZA/Desktop -clientconfig=Development -nocompile -nocompileuat
UATHelper: Packaging (Windows): Initializing script modules…
UATHelper: Packaging (Windows): Total script module initialization time: 0.28 s.
UATHelper: Packaging (Windows): Executing commands…
UATHelper: Packaging (Windows): Installed Sdk validity:
UATHelper: Packaging (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.00000.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.19041.0, Allowed_AutoSdk=10.0.18362.0, Current_AutoSdk=, Flags=“InstalledSdk_ValidVersionExists”)
UATHelper: Packaging (Windows): Scanning for envvar changes…
UATHelper: Packaging (Windows): … done!
UATHelper: Packaging (Windows): Cleaning Temp Paths…
UATHelper: Packaging (Windows): BUILD SUCCESSFUL
UATHelper: Packaging (Windows): Setting up ProjectParams for C:\Users\HONZA\Documents\Unreal Projects\TheSpace 5.3\TheSpace.uproject
UATHelper: Packaging (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows): Running: C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” TheSpace Win64 Development -Project=“C:\Users\HONZA\Documents\Unreal Projects\TheSpace 5.3\TheSpace.uproject” -Manifest=“C:\Users\HDocuments\Unreal Projects\TheSpace 5.3\Intermediate\Build\Manifest.xml” -remoteini=“C:\Users\HONZA\Documents\Unreal Projects\TheSpace 5.3” -skipdeploy -log=“C:\Users\o\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Prog
ram+Files+Epic+Games+UE_5.3\UBT-TheSpace-Win64-Development.txt”
UATHelper: Packaging (Windows): Log file: C:\Users\HONZA\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-TheSpace-Win64-Development.txt
UATHelper: Packaging (Windows): Creating makefile for TheSpace (no existing makefile)
UATHelper: Packaging (Windows): Total execution time: 0.90 seconds
UATHelper: Packaging (Windows): Microsoft platform targets must be compiled with Visual Studio 2022 17.4 (MSVC 14.34.x) or later for the installed engine. Please update Visual Studio 2022 and ensure no configuration is forcing WindowsTargetRules.Compiler to VisualStudio2019. The current compiler version was detected as: 14.29.30146
UATHelper: Packaging (Windows): Took 1,13s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\HONZA\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-TheSpace-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 4s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

Thank you for helping, I will try to force the 2022 version of vs if that doesnt work I will try to biuld the project on the pc I created it on hopefully that will solve the issue.

Make sure that your Visual Studio is at least version 17.4, and try launching Visual Studio Installer, then clicking modify on your installation, and selecting Desktop Development with C++ and Game Development with C++ from the Workloads
Also double check that the latest compiler version is included
image
from the Individual Components tab

Thank you for responding I fixed that error but now I am having trouble with the PackagingResults: Error: Unknown Cook Failure. I have again no idea on how to fix it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.