# What is the best cooking file length?

**URL:** <https://forums.unrealengine.com/t/what-is-the-best-cooking-file-length/589633>\
**Category:** Platform & Builds\
**Tags:** UE4-23, unreal-engine, packaging-projects, UE4, question\
**Created:** [June 24, 2022, 7:21pm UTC](https://forums.unrealengine.com/t/what-is-the-best-cooking-file-length/589633 "2022-06-24T19:21:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexa.Ki](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexa.ki/32/562753_2.png) [@Alexa.Ki](https://forums.unrealengine.com/u/Alexa.Ki)\
**Post date:** [June 24, 2022, 7:21pm UTC](https://forums.unrealengine.com/t/what-is-the-best-cooking-file-length/589633/1 "2022-06-24T19:21:27Z")

</div>

I am trying to compile/package a project using ue4.23 and there is a texture with file length of `160` and the project ignored that file to compile/cook, the mesh related to this rexture is just a mesh without a texture in a compiled game.  
I can move this file to near directory but this is not a solution , while I know the maximum length is 260 , than why the texture is ignored?

Note, the same project has no issues if compiled with ue4.20  
Thank You

---

<div class="post-metadata">

**Author:** ![c0r37py](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/c0r37py/32/559700_2.png) [@c0r37py](https://forums.unrealengine.com/u/c0r37py)\
**Post date:** [June 24, 2022, 7:28pm UTC](https://forums.unrealengine.com/t/what-is-the-best-cooking-file-length/589633/2 "2022-06-24T19:28:31Z")

</div>

1: file length is related to windows, not ue4.  
2: you need to enable windows long file length access , after that ue will not have problems with any long file length directory.

```auto
To enable this, perform the following:

1. Start the registry editor (regedit.exe)
2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
3. Double-click LongPathsEnabled
4. Set to 1 and click OK
5. Reboot and retry to package the project

```

hope it helps, cheers!

---

<div class="post-metadata">

**Author:** ![Alexa.Ki](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexa.ki/32/562753_2.png) [@Alexa.Ki](https://forums.unrealengine.com/u/Alexa.Ki)\
**Post date:** [June 24, 2022, 7:34pm UTC](https://forums.unrealengine.com/t/what-is-the-best-cooking-file-length/589633/3 "2022-06-24T19:34:59Z")

</div>

Thank You Sir very much, this solved my problem ) now I can rename files longer as I want 😃
