Description

A project can add paths in AdditionalProjectDirectories to specify directories other than <UERoot>\Engine\Plugins or <ProjectRoot>\Plugins that contain plugins.

But when adding a plugin in one of these directories and attempting to cook it as a DLC, it fails and creates an empty pak that will fail at runtime. The cooker is putting the files in the wrong location.

It is supposed to write them to <PluginRoot>\Saved\Cooked\<Platform>\RemappedPlugins, but it is instead writing them to <PlutinRoot>\Saved\Cooked\<Platform>\<RelativePathToPluginFromProjectRoot>

Steps to Reproduce
  • Open EngineTestEditor.
  • LevelEditor MenuRibbon -> Platforms -> ProjectLauncher
    • Add a Custom Launch Profile for the base game
      • In Custom Launch Profiles panel, click button labeled +Add, select Create Custom Profile
      • Name -> EngineTestBaseForAddPluginDirDLC
      • Project -> EngineTest
      • Build -> Development
      • Cook -> By The Book
      • Cook/Cook Platforms -> Windows
      • Cook/ReleaseDLCPatchingSettings/Create a release version of the game for distribution -> true
      • Cook/ReleaseDLCPatchingSettings/Name of the new release to create -> AdditionalPlugins1
      • All other Cook options stay at default
      • Package -> Package & store locally
      • All other Package options stay at default
      • Archive options stay at default
      • Deploy -> Do not Deploy
      • Click Back to Save
    • Add a Custom Launch Profile for the AddPluginDirDLC plugin cooked as DLC
      • In Custom Launch Profiles panel, click button labeled +Add, select Create Custom Profile
      • Name -> EngineTestAddPluginDirDLC
      • Project -> EngineTest
      • Build -> Development
      • Cook -> By The Book
      • Cook/Cook Platforms -> Windows
      • Cook/ReleaseDLCPatchingSettings/Release Version this is based on -> AdditionalPlugins1
      • Cook/ReleaseDLCPatchingSettings/Build DLC -> true
      • Cook/ReleaseDLCPatchingSettings/Name of the DLC to build -> AddPluginDirDLC
      • All other Cook options stay at default
      • Package -> Package & store locally
      • All other Package options stay at default
      • Archive options stay at default
      • Deploy -> Do not Deploy
      • Click Back to Save
    • Execute the EngineTestBaseForAddPluginDirDLC, wait for it to complete
    • Execute the EngineTestAddPluginDirDLC, wait for it to complete
  • Cooked .uasset and .umap files should be present at EngineTest\Test\AdditionalPlugins\AddPluginDirDLC\Saved\Cooked\Windows\RemappedPlugins\AddPluginDirDLC\Content, but the directory contains only .ushaderbytecode files
  • The files were instead incorrectly stored at D:\root1\EngineTest\Test\AdditionalPlugins\AddPluginDirDLC\Saved\Cooked\Windows\EngineTest\Test\AdditionalPlugins\AddPluginDirDLC\Content

Have Comments or More Details?

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

0
Login to Vote

Fixed
Fix Commit27205588
Main Commit27205588
CreatedAug 11, 2023
ResolvedAug 18, 2023
UpdatedAug 23, 2023
View Jira Issue