I tried to package my Game and it failed.

Hello! I tried to package my game, and it always gets about 7 seconds in, and then says packaging failed. This is what the output log says.

UATHelper: Packaging (Windows): Log file: C:\Users\jtw26\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Fight_game-Win64-Shipping.txt
UATHelper: Packaging (Windows): Cleaning Fight_game binaries…
UATHelper: Packaging (Windows): Available x64 toolchains (1):
UATHelper: Packaging (Windows): * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
UATHelper: Packaging (Windows): (Family=14.42.34433, FamilyRank=5, Version=14.42.34436, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.42.34436 is not a preferred version. Please use the latest preferred version 14.38.33130
UATHelper: Packaging (Windows): Took 2.81s to run dotnet.exe, ExitCode=0
UATHelper: Packaging (Windows): Running: C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Fight_game Win64 Shipping -Project=C:\Unreal\Projects\Toon_dash\Fight_game.uproject -Manifest=C:\Unreal\Projects\Toon_dash\Intermediate\Build\Manifest.xml -remoteini=“C:\Unreal\Projects\Toon_dash” -skipdeploy -log=“C:\Users\jtw26\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Fight_game-Win64-Shipping_2.txt”
UATHelper: Packaging (Windows): Log file: C:\Users\jtw26\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Fight_game-Win64-Shipping_2.txt
UATHelper: Packaging (Windows): Creating makefile for Fight_game (no existing makefile)
UATHelper: Packaging (Windows): Available x64 toolchains (1):

Also! I modeled all the assets by myself. Is that problem for packaging?

UATHelper: Packaging (Windows): * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
UATHelper: Packaging (Windows): (Family=14.42.34433, FamilyRank=5, Version=14.42.34436, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.42.34436 is not a preferred version. Please use the latest preferred version 14.38.33130
UATHelper: Packaging (Windows): Available x64 toolchains (1):
UATHelper: Packaging (Windows): * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
UATHelper: Packaging (Windows): (Family=14.42.34433, FamilyRank=5, Version=14.42.34436, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.42.34436 is not a preferred version. Please use the latest preferred version 14.38.33130
UATHelper: Packaging (Windows): Parsing headers for Fight_game
UATHelper: Packaging (Windows): Running Internal UnrealHeaderTool C:\Unreal\Projects\Toon_dash\Fight_game.uproject C:\Unreal\Projects\Toon_dash\Intermediate\Build\Win64\Fight_game\Shipping\Fight_game.uhtmanifest -WarningsAsErrors -installed
UATHelper: Packaging (Windows): Total of 0 written
UATHelper: Packaging (Windows): Reflection code generated for Fight_game in 1.0823404 seconds
UATHelper: Packaging (Windows): Writing manifest to C:\Unreal\Projects\Toon_dash\Intermediate\Build\Manifest.xml
UATHelper: Packaging (Windows): Building Fight_game…
UATHelper: Packaging (Windows): Using Visual Studio 2022 14.42.34436 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433) and Windows 10.0.26100.0 SDK (C:\Program Files (x86)\Windows Kits\10).
UATHelper: Packaging (Windows): Warning: Visual Studio 2022 compiler is not a preferred version
UATHelper: Packaging (Windows): [Adaptive Build] Excluded from Fight_game unity file: Fight_game.cpp
PackagingResults: Warning: Visual Studio 2022 compiler is not a preferred version
UATHelper: Packaging (Windows): Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
UATHelper: Packaging (Windows): Executing up to 6 processes, one per physical core
UATHelper: Packaging (Windows): Requested 1.5 GB memory per action, 1.43 GB available: limiting max parallel actions to 1
UATHelper: Packaging (Windows): Using Parallel executor to run 13 action(s)
UATHelper: Packaging (Windows): ------ Building 13 action(s) started ------
UATHelper: Packaging (Windows): [1/13] Compile [x64] SharedPCH.Core.Project.ValApi.Cpp20.cpp
UATHelper: Packaging (Windows): C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: ‘__has_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
UATHelper: Packaging (Windows): C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: unexpected tokens following preprocessor directive - expected a newline
UATHelper: Packaging (Windows): [2/13] Resource Default.rc2
UATHelper: Packaging (Windows): [3/13] Copy D3D12Core.dll
UATHelper: Packaging (Windows): [4/13] Copy d3d12SDKLayers.dll
UATHelper: Packaging (Windows): [5/13] Copy OpenImageDenoise.dll
UATHelper: Packaging (Windows): [6/13] Copy tbb.dll
UATHelper: Packaging (Windows): [7/13] Copy tbb.pdb
UATHelper: Packaging (Windows): [8/13] Copy tbb12.dll
UATHelper: Packaging (Windows): [9/13] Copy tbbmalloc.dll
UATHelper: Packaging (Windows): [10/13] Copy tbbmalloc.pdb
UATHelper: Packaging (Windows): Total time in Parallel executor: 5.19 seconds
UATHelper: Packaging (Windows): Total execution time: 10.11 seconds
UATHelper: Packaging (Windows): Took 10.37s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\jtw26\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Fight_game-Win64-Shipping_2.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 16s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

I also modeled all the assets by myself. Will that impact on how it packages?

Hello, Welcome to the Forums,

I did a google search for “unreal engine ConcurrentLinearAllocator.h” (a term from the ERROR part of your log) and found some forum threads that may help you solve it:

I checked the Compiler setup in the project, and it is set to 2022. I also don’t know how to set the compiler version in visual studio to the preferred version that the output log called for.

My project is also a blueprint based project.

Have you ever installed any version of Visual Studio?

The log mentions Unreal Engine 5.4 - It could be worth making a copy of the project, opening it in 5.5 and seeing if the error still occurs. (Once a project is opened in 5.5, it cannot be opened in 5.4 again so be sure to do it on a copy)