# Cooking-Failed in LyraStarterGame

**URL:** <https://forums.unrealengine.com/t/cooking-failed-in-lyrastartergame/1197018>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, LyraStarterGame, Cooking-Failed\
**Created:** [June 12, 2023, 3:52pm UTC](https://forums.unrealengine.com/t/cooking-failed-in-lyrastartergame/1197018 "2023-06-12T15:52:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azuen5411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azuen5411](https://forums.unrealengine.com/u/Azuen5411)\
**Post date:** [June 12, 2023, 3:52pm UTC](https://forums.unrealengine.com/t/cooking-failed-in-lyrastartergame/1197018/1 "2023-06-12T15:52:06Z")

</div>

I’m experiencing a failed cook when trying to package a project based off of Lyra.

The Output Log gives me this:

> UATHelper: Cooking (Windows): LogOutputDevice: Error: begin: stack for UAT  
> UATHelper: Cooking (Windows): LogOutputDevice: Error: === Handled ensure: ===  
> UATHelper: Cooking (Windows): LogOutputDevice: Error:  
> UATHelper: Cooking (Windows): LogOutputDevice: Error: Ensure condition failed: TypeData.Info.AssetBaseClassLoaded == BaseClass && TypeData.Info.bHasBlueprintClasses == bHasBlueprintClasses && TypeData.Info.bIsEditorOnly == bIsEditorOnly [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\AssetManager.cpp] [Line: 810]  
> UATHelper: Cooking (Windows): LogOutputDevice: Error: UAssetManager::ScanPathsForPrimaryAssets TypeData parameters did not match for type ‘LyraExperienceDefinition’  
> UATHelper: Cooking (Windows): LogOutputDevice: Error: Stack:  
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1ca103fb UnrealEditor-Engine.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf66f5b3e UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf671c269 UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf671d0b3 UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf6716a96 UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf66f8fa6 UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf6709b0b UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf670a07b UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf6704b31 UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf05de15c UnrealEditor-LyraGame.dll!ULyraGameFeaturePolicy::InitGameFeatureManager() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\GameFeatures\LyraGameFeaturePolicy.cpp:40]  
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf670b505 UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf66fda62 UnrealEditor-GameFeatures.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1c3c4b59 UnrealEditor-Engine.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1ca1776a UnrealEditor-Engine.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf06aef41 UnrealEditor-LyraGame.dll!ULyraAssetManager::StartInitialLoading() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\System\LyraAssetManager.cpp:111]  
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1e1a142d UnrealEditor-Engine.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1a8361de UnrealEditor-UnrealEd.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1e196510 UnrealEditor-Engine.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1a83323a UnrealEditor-UnrealEd.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d25a9ea UnrealEditor-Cmd.exe!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d252688 UnrealEditor-Cmd.exe!UnknownFunction   
> PackagingResults: Error: begin: stack for UAT  
> PackagingResults: Error: === Handled ensure: ===  
> PackagingResults: Error: Ensure condition failed: TypeData.Info.AssetBaseClassLoaded == BaseClass && TypeData.Info.bHasBlueprintClasses == bHasBlueprintClasses && TypeData.Info.bIsEditorOnly == bIsEditorOnly [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\AssetManager.cpp] [Line: 810]  
> PackagingResults: Error: UAssetManager::ScanPathsForPrimaryAssets TypeData parameters did not match for type ‘LyraExperienceDefinition’  
> PackagingResults: Error: Stack:  
> PackagingResults: Error: [Callstack] 0x00007ffc1ca103fb UnrealEditor-Engine.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf66f5b3e UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf671c269 UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf671d0b3 UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf6716a96 UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf66f8fa6 UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf6709b0b UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf670a07b UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf6704b31 UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf05de15c UnrealEditor-LyraGame.dll!ULyraGameFeaturePolicy::InitGameFeatureManager() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\GameFeatures\LyraGameFeaturePolicy.cpp:40]  
> PackagingResults: Error: [Callstack] 0x00007ffbf670b505 UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf66fda62 UnrealEditor-GameFeatures.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffc1c3c4b59 UnrealEditor-Engine.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffc1ca1776a UnrealEditor-Engine.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffbf06aef41 UnrealEditor-LyraGame.dll!ULyraAssetManager::StartInitialLoading() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\System\LyraAssetManager.cpp:111]  
> PackagingResults: Error: [Callstack] 0x00007ffc1e1a142d UnrealEditor-Engine.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffc1a8361de UnrealEditor-UnrealEd.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffc1e196510 UnrealEditor-Engine.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffc1a83323a UnrealEditor-UnrealEd.dll!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ff73d25a9ea UnrealEditor-Cmd.exe!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ff73d252688 UnrealEditor-Cmd.exe!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d25296a UnrealEditor-Cmd.exe!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d255680 UnrealEditor-Cmd.exe!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d2671b4 UnrealEditor-Cmd.exe!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d2696f2 UnrealEditor-Cmd.exe!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffcc24226ad KERNEL32.DLL!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffcc37ea9f8 ntdll.dll!UnknownFunction   
> UATHelper: Cooking (Windows): LogOutputDevice: Error:  
> UATHelper: Cooking (Windows): LogOutputDevice: Error: end: stack for UAT  
> PackagingResults: Error: [Callstack] 0x00007ff73d25296a UnrealEditor-Cmd.exe!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ff73d255680 UnrealEditor-Cmd.exe!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ff73d2671b4 UnrealEditor-Cmd.exe!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ff73d2696f2 UnrealEditor-Cmd.exe!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffcc24226ad KERNEL32.DLL!UnknownFunction   
> PackagingResults: Error: [Callstack] 0x00007ffcc37ea9f8 ntdll.dll!UnknownFunction   
> PackagingResults: Error: end: stack for UAT

The cook log only gives me this.

> LogInit: Display: Warning/Error Summary (Unique only)  
> LogInit: Display: -----------------------------------  
> LogInit: Display: LogOutputDevice: Error: begin: stack for UAT  
> LogInit: Display: LogOutputDevice: Error: === Handled ensure: ===  
> LogInit: Display: LogOutputDevice: Error:  
> LogInit: Display: LogOutputDevice: Error: Ensure condition failed: TypeData.Info.AssetBaseClassLoaded == BaseClass && TypeData.Info.bHasBlueprintClasses == bHasBlueprintClasses && TypeData.Info.bIsEditorOnly == bIsEditorOnly [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\AssetManager.cpp] [Line: 810]  
> LogInit: Display: LogOutputDevice: Error: UAssetManager::ScanPathsForPrimaryAssets TypeData parameters did not match for type ‘LyraExperienceDefinition’  
> LogInit: Display: LogOutputDevice: Error: Stack:  
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc210703fb UnrealEditor-Engine.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05625b3e UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0564c269 UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0564d0b3 UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05646a96 UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05628fa6 UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05639b0b UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0563a07b UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05634b31 UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffbffaee15c UnrealEditor-LyraGame.dll!ULyraGameFeaturePolicy::InitGameFeatureManager() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\GameFeatures\LyraGameFeaturePolicy.cpp:40]  
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0563b505 UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0562da62 UnrealEditor-GameFeatures.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc20a24b59 UnrealEditor-Engine.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc2107776a UnrealEditor-Engine.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffbffbbef41 UnrealEditor-LyraGame.dll!ULyraAssetManager::StartInitialLoading() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\System\LyraAssetManager.cpp:111]  
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc2280142d UnrealEditor-Engine.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc604861de UnrealEditor-UnrealEd.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc227f6510 UnrealEditor-Engine.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc6048323a UnrealEditor-UnrealEd.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d25a9ea UnrealEditor-Cmd.exe!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d252688 UnrealEditor-Cmd.exe!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d25296a UnrealEditor-Cmd.exe!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d255680 UnrealEditor-Cmd.exe!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d2671b4 UnrealEditor-Cmd.exe!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d2696f2 UnrealEditor-Cmd.exe!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffcc24226ad KERNEL32.DLL!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffcc37ea9f8 ntdll.dll!UnknownFunction   
> LogInit: Display: LogOutputDevice: Error: end: stack for UAT  
> LogInit: Display: LogOutputDevice: Warning:

When I run a debug, Rider will stop on LyraGameFeaturePolicy.cpp at line 40 “Super::InitGameFeatureManager();” when it is opening the editor. I just have to resume the debug and everything will work like normal until I get to cooking. That pause gives me this:

 ![Screenshot 2023-06-12 103427](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/3/30376b8073c5eb020f3ebb5ebe7563ca918c24bb.png)

Any ideas? Thanks!

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [June 12, 2023, 4:58pm UTC](https://forums.unrealengine.com/t/cooking-failed-in-lyrastartergame/1197018/2 "2023-06-12T16:58:05Z")

</div>

> [@Azuen5411](#):
>
> LyraExperienceDefinition

Hi there,  
Have you checked your asset manager before? Looks like the asset manager is missing the correct information about your custom Experience Definition, either the Primary Asst Type is incorrect, or the directory is not declared. Here’s Lyra’s Shooter Core:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/e/c0ea721eb8ae5bb3e9c44a9445051a37ac9f61db.png)

---

<div class="post-metadata">

**Author:** ![Azuen5411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azuen5411](https://forums.unrealengine.com/u/Azuen5411)\
**Post date:** [June 15, 2023, 1:25am UTC](https://forums.unrealengine.com/t/cooking-failed-in-lyrastartergame/1197018/4 "2023-06-15T01:25:08Z")

</div>

This was it, there were a few more issues preventing the cook but I was able to hammer them out. Thanks for the lead!

---

<div class="post-metadata">

**Author:** ![Luomu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luomu](https://forums.unrealengine.com/u/Luomu)\
**Post date:** [January 26, 2025, 3:34am UTC](https://forums.unrealengine.com/t/cooking-failed-in-lyrastartergame/1197018/5 "2025-01-26T03:34:48Z")

</div>

For anyone else encountering this, since this thread is the only relevant hit on Google: I had it in a project with nothing to do with Lyra, but I was using Game Feature Plugins. My plugin included a list of Maps in its asset settings. On cook it caused the ensure ‘UAssetManager::ScanPathsForPrimaryAssets TypeData parameters did not match for type ‘Map’, yet the Primary Asset Type was correctly set to Map.  
Make sure the other settings match too, in my case ‘Is Editor Only’ was unchecked in Project Settings for the map primary asset, but was checked in the Plugin’s asset settings. After unchecking it in the plugin the assert went away.
