# UE4Editor load .ini files accroding to operating system but not cooking platform.

**URL:** <https://forums.unrealengine.com/t/ue4editor-load-ini-files-accroding-to-operating-system-but-not-cooking-platform/767959>\
**Category:** International\
**Tags:** packaging-and-cookin, unreal-engine\
**Created:** [February 10, 2023, 10:25am UTC](https://forums.unrealengine.com/t/ue4editor-load-ini-files-accroding-to-operating-system-but-not-cooking-platform/767959 "2023-02-10T10:25:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Online\_Learner\_LUlmF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Online\_Learner\_LUlmF](https://forums.unrealengine.com/u/Online_Learner_LUlmF)\
**Post date:** [February 10, 2023, 10:25am UTC](https://forums.unrealengine.com/t/ue4editor-load-ini-files-accroding-to-operating-system-but-not-cooking-platform/767959/1 "2023-02-10T10:25:48Z")

</div>

When I launch UE4Editor in windows, and use UE4Editor to cook contents for targetplatform=linux, UE4Editor load config files which in Config/Windows folder instead of Config/Linux folder.  
Therefore, the directories which marked as “DirectoriesToNeverCook” in LinuxGame.ini will still be cooked.

So, it is a bug in UE4Editor? And how can I load LinuxGame.ini for UE4Editor in Windows, and use UE4Editor to cook files in correct directory according to LinuxGame.ini.

---

<div class="post-metadata">

**Author:** ![Jeremy\_Kroeker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeremy\_Kroeker](https://forums.unrealengine.com/u/Jeremy_Kroeker)\
**Post date:** [July 26, 2023, 12:16am UTC](https://forums.unrealengine.com/t/ue4editor-load-ini-files-accroding-to-operating-system-but-not-cooking-platform/767959/2 "2023-07-26T00:16:06Z")

</div>

This is a known issue, which is still present in UE5.

A workaround I’ve found is to create a file `Config/DefaultPakFileRules.ini`.  
See instructions in the Engine’s version: `\Engine\Config\BasePakFileRules.ini`

You can exclude folders of content like this:

```auto
[ExcludeContentForWindows]
Platforms="Windows"
bExcludeFromPaks=true
bOverrideChunkManifest=true
+Files=".../Content/<YourGame>/Folder/Path/*"

```

The files are stripped out post-cook.  
To verify it worked, you can double-check that the files you want to exclude are NOT listed in the AutomationTool’s list of pak items in: `<Engine>\Engine\Programs\AutomationTool\Saved\Logs\PakList_pakchunkX-<Platform>.txt`

---

<div class="post-metadata">

**Author:** ![Online\_Learner\_LUlmF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Online\_Learner\_LUlmF](https://forums.unrealengine.com/u/Online_Learner_LUlmF)\
**Post date:** [November 16, 2023, 8:07am UTC](https://forums.unrealengine.com/t/ue4editor-load-ini-files-accroding-to-operating-system-but-not-cooking-platform/767959/3 "2023-11-16T08:07:15Z")

</div>

Thanks, it seems to work in the stage of Staging, but not in the stage of Cooking? The Files listed in this section seems to still be cooked, but it will not be added into pak.
