Cooking Error

 

Hi, I am trying to cook my unreal projects for several days now and dont know what to do further. 


This is the output log after I cooked it: LogUObjectHash: Compacting FUObjectHashTables data took   0.82ms

BlueprintLog: New page: Aximmetry Blueprint Validation

LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""C:/Program Files/Aximmetry/2024.2.0_UnrealEngine/Engine/Build/BatchFiles/RunUAT.bat" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -platform=Win64 -installed -project="C:/Users/nicos/OneDrive/Dokumente/Unreal Projects/Tornadostage2 5.3 the real one 5.3 (with static Crowd)/Tornadostage22.uproject" -unrealexe="C:\Program Files\Aximmetry\2024.2.0_UnrealEngine\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -stage -package -build -pak -iostore -compressed -iterate -clientconfig=Shipping -nodebuginfo" -nocompile -nocom

pileuat ]

UATHelper: Cooking (Windows): Running AutomationTool...

UATHelper: Cooking (Windows): Using bundled DotNet SDK version: 6.0.302

UATHelper: Cooking (Windows): Starting AutomationTool...

UATHelper: Cooking (Windows): Parsing command line: BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -platform=Win64 -installed -project="C:/Users/nicos/OneDrive/Dokumente/Unreal Projects/Tornadostage2 5.3 the real one 5.3 (with static Crowd)/Tornadostage22.uproject" -unrealexe="C:\Program Files\Aximmetry\2024.2.0_UnrealEngine\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -stage -package -build -pak -iostore -compressed -iterate -clientconfig=Shipping -nodebuginfo -nocompile -nocompileuat

UATHelper: Cooking (Windows): Initializing script modules...

UATHelper: Cooking (Windows): Total script module initialization time: 0.22 s.

UATHelper: Cooking (Windows): Executing commands...

UATHelper: Cooking (Windows): Setting up ProjectParams for C:\Users\nicos\OneDrive\Dokumente\Unreal Projects\Tornadostage2 5.3 the real one 5.3 (with static Crowd)\Tornadostage22.uproject

UATHelper: Cooking (Windows): Project contains multiple Game targets (Tornadostage2, Tornadostage22) but no DefaultGameTarget is set in the [/Script/BuildSettings.BuildSettings] section of DefaultEngine.ini

UATHelper: Cooking (Windows): (see C:\Users\nicos\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Aximmetry+2024.2.0_UnrealEngine\Log.txt for full exception trace)

UATHelper: Cooking (Windows): AutomationTool executed for 0h 0m 3s

UATHelper: Cooking (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)

UATHelper: Cooking (Windows): BUILD FAILED

LogAximmetry: Error: Cooking failed. (Result: "Failed".)


When I try to Build the Level I get 3 messages in the message log after building:

1. Revision control is disabled

2. Localization service is disabled

3. Map check complete: 0 Error(s), 0 Warning(s), took 3,408ms to complete.


I have also reinstalled Visual Studios and added all of them 

  • .NET desktop development
  • Desktop development with C++
  • Windows application development
  • Game Development with C++.

and by the game developement with c++ I added these installations:

  • C++ profiling tools
  • C++ AddressSanitizer
  • Windows 10 or 11 SDK (10.0.18362 or Newer)
  • Unreal Engine installer

I have also added MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38-17.8) this component and changed the compiler version to Visual Studio 2022 in unreal and restarted my pc.


After all that I tried to cook the project and also cook it with the debug but I still get the cooking error. 

   Tornado

 
Profile Image
Eifert@Aximmetry
  -  

Hi Tornado,

The "Project contains multiple Game targets" error, which is likely causing the cooking failure, is not related to the Aximmetry installation.

To resolve this, delete the Intermediate folder in your Unreal project:
Cooking Error

The Intermediate folder contains temporary files used during the cooking.

Warmest regards,

 
Profile Image
Tornado
  -  

I have tried to delete the folder and cook again with the normal cooking option and the debug option but I still get the same error. If I start cooking the folder reappears and after I directly delete it it still dos not cook.

 
Profile Image
Eifert@Aximmetry
  -  

Hi,

In that case, it seems that you have duplicated or migrated part of the project, which resulted in having two different target.cs files—one pointing to Tornadostage2 and another to Tornadostage22.

You can probably resolve this issue by following these steps. However, if you have backups, I recommend restoring from a working backup instead. The error likely indicates underlying issues in your project that might not be fully resolved by this approach.
Here are the steps in case you want to try the fix:

  1. Open the project's DefaultEngine.ini configuration file, which is located in the Config folder of your project directory. You can open this file with any text editor program.
  2. Look for the [ /Script/BuildSettings.BuildSettings] text within this configuration file. If it doesn't have one, create one.
  3. Under it, add the following line:
    DefaultEditorTarget=Tornadostage22Editor
    If it already had a line with DefaultEditorTarget=...., then delete that.
  4. Save and close the DefaultEngine.ini file.
  5. Cook Content.

Warmest regards,

 
Profile Image
Tornado
  -  

I have followed all the steps but it did not work. I also deleted all project copies and it also did not work.

 
Profile Image
Eifert@Aximmetry
  -  

Hi,

Do you get the same error? If you followed the instructions in my last comment, this error shouldn't occur: "UATHelper: Cooking (Windows): Project contains multiple Game targets (Tornadostage2, Tornadostage22) but no DefaultGameTarget is set in the [/Script/BuildSettings.BuildSettings] section of DefaultEngine.ini"

One more thing, you shouldn't put spaces or parentheses in your project's folder name, such as in "Tornadostage2 5.3 the real one 5.3 (with static Crowd)", instead, for example, use underline: "Tornadostage2_5.3".
Unreal doesn't handle special characters well; it wouldn't even allow you to create a project with that name.

Warmest regards,

 
Profile Image
Tornado
  -  

I have done everything you described and it still does not cook. I changed the text file and added [ /Script/BuildSettings.BuildSettings] and DefaultEditorTarget=Tornadostage22Editor. I have also seen that I have several maps but I deleted them also and it does not cook. 

This is my output log now after I cooked it:  LogUObjectHash: Compacting FUObjectHashTables data took   0.78ms

BlueprintLog: New page: Aximmetry Blueprint Validation

LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""C:/Program Files/Aximmetry/2024.2.0_UnrealEngine/Engine/Build/BatchFiles/RunUAT.bat" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -platform=Win64 -installed -project="C:/Users/nicos/OneDrive/Dokumente/Unreal Projects/Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd/Tornadostage22.uproject" -unrealexe="C:\Program Files\Aximmetry\2024.2.0_UnrealEngine\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -stage -package -build -pak -iostore -compressed -iterate -clientconfig=Shipping -nodebuginfo" -nocompile -nocompi

leuat ]

UATHelper: Cooking (Windows): Running AutomationTool...

UATHelper: Cooking (Windows): Using bundled DotNet SDK version: 6.0.302

UATHelper: Cooking (Windows): Starting AutomationTool...

UATHelper: Cooking (Windows): Parsing command line: BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -platform=Win64 -installed -project="C:/Users/nicos/OneDrive/Dokumente/Unreal Projects/Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd/Tornadostage22.uproject" -unrealexe="C:\Program Files\Aximmetry\2024.2.0_UnrealEngine\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -stage -package -build -pak -iostore -compressed -iterate -clientconfig=Shipping -nodebuginfo -nocompile -nocompileuat

UATHelper: Cooking (Windows): Initializing script modules...

UATHelper: Cooking (Windows): Total script module initialization time: 0.20 s.

UATHelper: Cooking (Windows): Executing commands...

UATHelper: Cooking (Windows): Setting up ProjectParams for C:\Users\nicos\OneDrive\Dokumente\Unreal Projects\Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd\Tornadostage22.uproject

UATHelper: Cooking (Windows): ********** BUILD COMMAND STARTED **********

UATHelper: Cooking (Windows): Running: C:\Program Files\Aximmetry\2024.2.0_UnrealEngine\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe "C:\Program Files\Aximmetry\2024.2.0_UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Tornadostage22 Win64 Shipping -Project="C:\Users\nicos\OneDrive\Dokumente\Unreal Projects\Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd\Tornadostage22.uproject" -Manifest="C:\Users\nicos\OneDrive\Dokumente\Unreal Projects\Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd\Intermediate\Build\Manifest.xml"  -remoteini="C:\Users\nico

s\OneDrive\Dokumente\Unreal Projects\Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd"  -skipdeploy  -log="C:\Users\nicos\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Aximmetry+2024.2.0_UnrealEngine\UBT-Tornadostage22-Win64-Shipping.txt"

UATHelper: Cooking (Windows): Log file: C:\Users\nicos\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Aximmetry+2024.2.0_UnrealEngine\UBT-Tornadostage22-Win64-Shipping.txt

UATHelper: Cooking (Windows): Creating makefile for Tornadostage22 (manifest 'C:\Users\nicos\OneDrive\Dokumente\Unreal Projects\Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd\Intermediate\Build\Manifest.xml' not found)

UATHelper: Cooking (Windows): Writing manifest to C:\Users\nicos\OneDrive\Dokumente\Unreal Projects\Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd\Intermediate\Build\Manifest.xml

UATHelper: Cooking (Windows): Building Tornadostage22...

UATHelper: Cooking (Windows): Using Visual Studio 2022 14.41.34120 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).

UATHelper: Cooking (Windows): [Upgrade]

UATHelper: Cooking (Windows): [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:

UATHelper: Cooking (Windows): [Upgrade]     CppStandard = CppStandardVersion.Default        => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).

UATHelper: Cooking (Windows): [Upgrade]     WindowsPlatform.bStrictConformanceMode = true   => Updates MSVC strict conformance mode to true (Previously: false).

UATHelper: Cooking (Windows): [Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V4;' in Tornadostage22.Target.cs, and explicitly overriding settings that differ from the new defaults.

UATHelper: Cooking (Windows): [Upgrade]

UATHelper: Cooking (Windows): Determining max actions to execute in parallel (8 physical cores, 16 logical cores)

UATHelper: Cooking (Windows):   Executing up to 8 processes, one per physical core

UATHelper: Cooking (Windows):   Requested 1.5 GB memory per action, 3.7 GB available: limiting max parallel actions to 2

UATHelper: Cooking (Windows): ------ Building 2 action(s) started ------

UATHelper: Cooking (Windows): [1/2] Link [x64] Tornadostage22-Win64-Shipping.exe

UATHelper: Cooking (Windows): LINK : fatal error LNK1104: Datei "C:\Users\nicos\OneDrive\Dokumente\Unreal Projects\Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd\Binaries\Win64\Tornadostage22-Win64-Shipping.exe" kann nicht ge�ffnet werden.

UATHelper: Cooking (Windows): Total time in Parallel executor: 0.47 seconds

UATHelper: Cooking (Windows): Total execution time: 2.53 seconds

UATHelper: Cooking (Windows): Took 2,67s to run dotnet.exe, ExitCode=6

UATHelper: Cooking (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\nicos\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Aximmetry+2024.2.0_UnrealEngine\UBT-Tornadostage22-Win64-Shipping.txt)

UATHelper: Cooking (Windows): AutomationTool executed for 0h 0m 5s

UATHelper: Cooking (Windows): AutomationTool exiting with ExitCode=6 (6)

UATHelper: Cooking (Windows): BUILD FAILED

LogAximmetry: Error: Cooking failed. (Result: "Failed".)

 
Profile Image
Eifert@Aximmetry
  -  

Hi,

You are getting a new error of "UATHelper: Cooking (Windows): LINK : fatal error LNK1104: Datei "C:\Users\nicos\OneDrive\Dokumente\Unreal Projects\Tornadostage2_5.3_the_real_one_5.3_with_static_Crowd\Binaries\Win64\Tornadostage22-Win64-Shipping.exe" kann nicht ge�ffnet werden."
The file mentioned in the error is produced during the cooking process, so you can delete it. When you cook the project again, it should be recreated without any issue.

To help prevent similar errors, consider deleting the following folders in your project's directory:

Intermediate
DerivedDataCache
Build
Binaries

Just in case, before you delete any files or folders, make sure to create a backup of your project to avoid any potential data loss.

Please note that these errors are not related to Aximmetry software; they are issues you would get using Unreal Engine alone.

Warmest regards,