Hi, we need to exclude certain asset paths for our demo build that have been manually included through DirectoriesToAlwaysCook in our main build branch. The limitation is that I can’t edit our Config/DefaultGame.ini.
My progress so far has been as follows:
I have created a demo specific DefaultGame.ini under Config/Custom/Demo/DefaultGame.ini
I am clearing the DirectoriesToAlwaysCook with !DirectoriesToAlwaysCook=ClearArray and then adding only the desired paths with +DirectoriesToAlwaysCook=.
I am using RunUAT through commandline with the -CustomConfig=“Demo” command.
Unfortunately, when the build is done the manifest file still contains the assets included through DirectoriesToAlwaysCook from Config/DefaultGame.ini.
I could confirm that directly deleting the unwanted lines from Config/DefaultGame.ini does prevent cooking the unwanted assets. Adding the demo specific DefaultGame.ini to Platform/Windows/Config/ also prevents cooking the unwanted assets.
Is there possibly a commandline argument I’m missing, or anything else I am missing to make this work from Config/Custom/Demo/DefaultGame.ini?
When you give RunUAT command-line parameters, it consumes them itself instead of forwarding them to the cooker. You can forward arguments to the cooker via the -AdditionalCookerOptions parameter, like so:
-AdditionalCookerOptions="-CustomConfig=Demo"You can also override DefaultGame in other .ini files, if that better fits your use case. Here are all the override layers for the Game config file (excluding “Restricted” paths (NotForLicensees/NoRedist/LimitedAccess), which licensees don’t really need; it’s for us at Epic Games):