# Package project cook failed how do i fix

**URL:** <https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461>\
**Category:** Platform & Builds\
**Tags:** source-build, unreal-engine, packaging-projects, question, Cooking-Failed\
**Created:** [May 19, 2020, 2:51pm UTC](https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461 "2020-05-19T14:51:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [May 19, 2020, 2:51pm UTC](https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461/1 "2020-05-19T14:51:56Z")

</div>

I’m trying to package a project for windows on Ue4 4.25 source build and when it dose thee cook command i get this error  
this even happens when i moved my content over to a new project

UATHelper: Packaging (Windows (64-bit)): LogPackageName: Error: DoesPackageExist: DoesPackageExist FAILED: ‘/DirGravity/Assets/Materials/M\_Cow\_Pasture\_Inst’ is not a standard unreal filename or a long path name. Reason: Path does not start with a valid root. Path must begin with: ‘/Engine/’, ‘/Game/’, ‘/Paper2D/’, ‘/AnimationSharing/’, ‘/GeometryMode/’, ‘/  
DatasmithContent/’, ‘/ChaosClothEditor/’, ‘/ChaosNiagara/’, ‘/ChaosSolverPlugin/’, ‘/GeometryCollectionPlugin/’, ‘/GeometryProcessing/’, ‘/Niagara/’, ‘/MagicLeap/’, ‘/MagicLeapPassableWorld/’, ‘/MediaCompositing/’, ‘/MovieRenderPipeline/’, ‘/OculusVR/’, ‘/PostSplashScreen/’, ‘/SteamVR/’, ‘/Config/’, ‘/Script/’, ‘/Memory/’, or ‘/Temp/’

 ![302290-output-log-5-19-2020-10-34-51-am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/f/77f724e0637cf4421e69b38df028e0d4cea04d2a.png)

---

<div class="post-metadata">

**Author:** ![Noowai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Noowai](https://forums.unrealengine.com/u/Noowai)\
**Post date:** [May 19, 2020, 6:01pm UTC](https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461/2 "2020-05-19T18:01:53Z")

</div>

Try looking for **M\_Cow\_Pasture\_Inst** asset, looks like there’s something wrong with it. It might be in a too long path directory.  
Also try clicking on Content folder and Fix Up Redirectors.

---

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [May 19, 2020, 7:28pm UTC](https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461/3 "2020-05-19T19:28:32Z")

</div>

m cow asset is a part of directional gravity plugin winch i removed before updating to 4.25 so i cant find it in the editor nor file explorer

---

<div class="post-metadata">

**Author:** ![Noowai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Noowai](https://forums.unrealengine.com/u/Noowai)\
**Post date:** [May 20, 2020, 5:38am UTC](https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461/4 "2020-05-20T05:38:35Z")

</div>

I see. Then I suggest you to look in packaging settings under Edit-\>Project Settings-\>Packaging and look for any Additional Asset Directories to Cook. It might be included there, but since it’s gone it might give this error.

---

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [May 20, 2020, 1:02pm UTC](https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461/5 "2020-05-20T13:02:52Z")

</div>

Ok I was able to fix it ther was a mesh that had one material based of m cow plaster and deleting it fixed it

---

<div class="post-metadata">

**Author:** ![AInsolence](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AInsolence](https://forums.unrealengine.com/u/AInsolence)\
**Post date:** [September 21, 2020, 4:36pm UTC](https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461/6 "2020-09-21T16:36:48Z")

</div>

Fix Up Redirectories helps for me! Thnx man! Long path to package game with plugin)

---

<div class="post-metadata">

**Author:** ![Skatoony](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skatoony](https://forums.unrealengine.com/u/Skatoony)\
**Post date:** [August 2, 2021, 9:28am UTC](https://forums.unrealengine.com/t/package-project-cook-failed-how-do-i-fix/465461/7 "2021-08-02T09:28:02Z")

</div>

For me the plugin wasn’t enabled in the Plugins Browser.
