Description

From the UDN post that reported the problem: 

 

The BuildCookRun Automation script offers a commandline option called -EnablePlugins= which allows the user to specify additional plugins that should be enabled outside of those defined in the UProject file.

In turn, the automation tool adds these to AdditionalBuildOptions and AdditionalCookerOptions.

For the build this works, but for cook it truncates the closing quotation mark resulting in an invalid commandline.

 

Example:

If I pass in

-EnablePlugins=Niagara,OpenXR

 

In the build commandline it will show correctly as

... -EnablePlugins="Niagara,OpenXR" -log=...

 

But in the cook commandline it will show incorrectly as

... -EnablePlugins="Niagara,OpenXR -fileopenlog -abslog=...

 

Which causes the engine to parse the value of EnablePlugins incorrectly.

 

The problem comes from CookCommand.Automation.cs line 84 which trims the ending quotation marks from AdditionalCookerOptions.

IMO it should be changed to remove only a single ending quotation mark from AdditionalCookerOptions, and only if it also started with a quotation mark.

 

P.S. it would be very helpful to us if you could add support for -DisablePlugins as well. It is already supported by the engine, but not by BuildCookRun.

 

 

 

Steps to Reproduce

Run the following command on the root of the Release 5.3 stream with the Engine and Lyra synched:

runuat BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=Samples\Games\Lyra\Lyra.uproject -target=Lyra -platform=Win64 -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory=Samples\Games\Lyra -clientconfig=Development -nocompile -nocompileuat -enableplugins=Niagara

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-196267 in the post.

2
Login to Vote

Unresolved
Affects Versions5.3
Target Fix5.6
CreatedSep 22, 2023
UpdatedOct 31, 2024
View Jira Issue