LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.

Same here.
In my case it is complaining about some Megascans assets.

1 Like

如果你在【项目设置】中勾选了【烘焙时排除编辑器内容】,会导致这种情况的发生

Did not fix it for me.
Does this mean that it only cooks the maps any referenced package within those maps?

Same problem here, when upgrading from 5.2 to 5.4 some assets report this error.
I am suspecting that they have old materials in them which may not be upgraded.

Don’t recommend cooking editor content, increases packaged size and packaging time.
Instead check the log for what material is throwing the error and what the target reference is, duplicate the target reference and move it into the plugin folder, replace the reference and all is fixed.

For the landmass plugin it has some material functions within those material functions are also internal functions that require reference replacement!

Same here. Unchecking ‘Exclude editor content when cooking’ fixes the cooking but then is cooking extra…

Same

我没勾选也有这种情况,UE5.4.3

Thank you so much.
我的问题解决了

For everyone still having some issues:

Try looking in the log for the error and look where it says “Referenced object:” go to that referenced object and right click and press “Validate Assets and Dependencies”.

This should fix up any wrong references.

Hope this helps :wink:

8 Likes

Right click on the folder and Validate Assets and Dependencies. This works. THanks.

Idk about anyone else, but “Validate Assets and Dependencies” is not working for me. All problematic assets are also in Landmass. I’ve tried to Validate these assets and their dependencies to no avail. Heck, I even validated the entire Engine Content folder.

UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Sprite/M_BrushSprite_01
UATHelper: Packaging (Windows):    Target package: /Engine/EditorResources/S_Terrain
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorResources/S_Terrain.S_Terrain
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Sprite/M_BrushSprite_01
UATHelper: Packaging (Windows):    Target package: /Engine/EditorResources/S_Terrain
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorResources/S_Terrain
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
PackagingResults: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAALineIntegral
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAALineIntegral.TilingAALineIntegral
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAALineIntegral
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAALineIntegral
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAALineBoxFiltered
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAALineBoxFiltered.TilingAALineBoxFiltered
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAALineBoxFiltered
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAALineBoxFiltered
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAAGrid
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAAGrid.TilingAAGrid
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAAGrid
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAAGrid
UATHelper: Packaging (Windows): LogSavePackage: Display: Took 0.006270s to verify the EDL loading graph.
UATHelper: Packaging (Windows): LogInit: Display:
PackagingResults: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows): LogInit: Display: Warning/Error Summary (Unique only)
UATHelper: Packaging (Windows): LogInit: Display: -----------------------------------
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
PackagingResults: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Sprite/M_BrushSprite_01
PackagingResults: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Target package: /Engine/EditorResources/S_Terrain
PackagingResults: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorResources/S_Terrain.S_Terrain
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Sprite/M_BrushSprite_01
PackagingResults: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Target package: /Engine/EditorResources/S_Terrain
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorResources/S_Terrain
PackagingResults: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
PackagingResults: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAALineIntegral
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAALineIntegral.TilingAALineIntegral
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAALineIntegral
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAALineIntegral
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAALineBoxFiltered
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAALineBoxFiltered.TilingAALineBoxFiltered
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAALineBoxFiltered
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAALineBoxFiltered
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAAGrid
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAAGrid.TilingAAGrid
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Windows):    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Internal/BrushBounds
UATHelper: Packaging (Windows):    Target package: /Engine/EditorMaterials/TilingAAGrid
UATHelper: Packaging (Windows):    Referenced object: /Engine/EditorMaterials/TilingAAGrid
1 Like

Alternate solution in case this didn’t work for someone!

The solution in this post did not work for me but the referenced target suggested in the solution was the source of the issue. I had to remove the referenced asset from use because it was an engine asset being used after I updated to 5.4.

My Solution - Remove engine asset from use.

A temporary fix that lets my package while I fix those engine assets.

Hi, I’m aptempting to reproduce your solution but my referenced error files are out of my main contents folder. I can’t find the error files by searching in content browser. How can I solve?

Just throwing this out there that I did that and added the

[CookSettings]
CookContentMissingSeverity=Warning

in my Default Editor in.

Not sure which worked but it was packaged.

This was after building a new 5.4 project from source and migrating my old one.

I am having issues with the game crashing when testing after packaging so while it packages it doesn’t “fix” anything. This seems specifically with the Quixel textures in 5.4 as I was not having this problem in 5.3

Any solutions would be helpful.

5.4.4 has this issue too. The solution accepted as “solved” seems not work for me. For those who think your issue is solved, I must say, it’s a bug not happen every time you cook/package. So you may cook successfully once, but failed next time.

1 Like

what path is shown in your error message?
Maybe it’s something caused by plugin content or so.

Found solution for my case. When open the project by using UE5 editor, don’t open your asset with cook error(s). On this file’s context menu(RMB), find Asset Action | Load, click it. Then from context menu, find Save, click it. Then I can cook the project successfully.

1 Like

here my error.
ATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogPackageBuildDependencyTracker: Display: Package Accesses (2271 referencing packages with a total of 67431 unique accesses)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogCook: Display: Done!
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Source package: /Game/Maps/lpirmas
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target package: /Bridge/MSPresets/M_MS_Surface_Material_VT/M_MS_Surface_Material_VT
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Referenced object: /Bridge/MSPresets/M_MS_Surface_Material_VT/M_MS_Surface_Material_VT.M_MS_Surface_Material_VT
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Source package: /Game/Maps/lpirmas
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target package: /Bridge/MSPresets/M_MS_Surface_Material_VT/M_MS_Surface_Material_VT
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Referenced object: /Bridge/MSPresets/M_MS_Surface_Material_VT/M_MS_Surface_Material_VT
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogSavePackage: Display: Took 0.007938s to verify the EDL loading graph.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogInit: Display:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogInit: Display: Warning/Error Summary (Unique only)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogInit: Display: -----------------------------------
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Source package: /Game/Maps/lpirmas
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target package: /Bridge/MSPresets/M_MS_Surface_Material_VT/M_MS_Surface_Material_VT
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Referenced object: /Bridge/MSPresets/M_MS_Surface_Material_VT/M_MS_Surface_Material_VT.M_MS_Surface_Material_VT
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): LogInit: Display: LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Source package: /Game/Maps/lpirmas
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target package: /Bridge/MSPresets/M_MS_Surface_Material_VT/M_MS_Surface_Material_VT
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Referenced object: /Bridge/MSPresets/M_MS_Surface_Material_VT/M_MS_Surface_Material_VT
I try Validate Assets and Dependencies.
Even I not use this material M_MS_Surface_Material_VT. I replace it with other, but stil saying in console about it!

How? Can you explain the steps please?