During the cook process of packaging I get a bunch of these errors? I tried using this cook settings and without: -AdditionalCookerOptions=“-cookprocesscount=4”. 1Either way I see errors. Sometimes without that multi-thread cook setting, it works, but not always.
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.
Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Sprite/M_BrushSprite_01
Target package: /Engine/EditorResources/S_Terrain
Referenced object: /Engine/EditorResources/S_Terrain
I too am facing this. My project doesn’t even use Landmass. Still, it seemed to be ticked in the plugins window in the editor. Unticking it seemed to solve the issue.
Same problem here on another asset not related to landmass,
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the object was stripped out of the target package when saved.
UATHelper: Packaging (Windows): Source package: /Game/A_DarkEvil/Maps/WP/L_DarkEvill_WP_OK/Generated/7JC11A382LKLD2L2RX43207AC
UATHelper: Packaging (Windows): Target package: /AscentCombatFramework/Blueprints/AI/AIs/ACFAICharacterBP
UATHelper: Packaging (Windows): Referenced object: /AscentCombatFramework/Blueprints/AI/AIs/ACFAICharacterBP.ACFAICharacterBP_C:ACF Effects Manager Comp_GEN_VARIABLE
Exclude Editor Content didn’t work for me. I had some meshes and sounds referenced in Engine that refuse to cook for Android. No idea why, fixed it by:
1 - Moving them into my plugins/project so they get re-referenced
2 - Then re-running Setup.bat restores the original engine copies that I moved.
I also have this problem in 5.4.1. I made a copy of my 5.2 project (which packages fine), tried to package, and I get about ~200 of the “Content is missing from cook” errors that look similar to this:
UATHelper: Packaging (Windows): LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the object was stripped out of the target package when saved.
UATHelper: Packaging (Windows): Source package: /Game/Blueprints/Story/StoryInteractable_Core_MistVault
UATHelper: Packaging (Windows): Target package: /Game/Blueprints/Story/StoryInteractable_Core
UATHelper: Packaging (Windows): Referenced object: /Game/Blueprints/Story/StoryInteractable_Core.StoryInteractable_Core_C:BlockerCapsule_GEN_VARIABLE
I was getting the problem from this two plugin. Epic Games\UE_5.4\Engine\Plugins\Bridge\Bridge.uplugin" Epic Games\UE_5.4\Engine\Plugins\Interchange\Runtime\Interchange.uplugin"
So I just edited the files and added “Android” in the SupportedTargetPlatforms for my android build. And it fixed the issue.
For all of you still facing this issue it has been resolved in 5.4.2.
Found last in the change list → 5.4.2 Change List
[UE-213910 Cook error (Content is missing from cook) raised when cooking deep blueprint hierarchy]
In my case, I recreate all the materials from ground up. I think there are some changes between 5.3 and 5.4 that material files are changed and migrating doesnt fix it automatically.