A licensee reports they are using the CookAdditionalFilesOverride function in UObject to add files to the project. This file is properly copied into the Staging area during Packaging, and is appropriately packaged to the final game. Then, if they remove the Example.uasset file, and do another Packaging, they see the MyNewFile.xyz is still present in the Staging area, even if Example.uasset is now deleted. That, in itself, is not a big deal. However, they also see the MyNewFile.xyz file is getting yet again packaged, even without its Example.uasset, with the new game that doesn't even have Example.uasset.
This is a bug with iterative cooking. All cooks from the editor after the first one are iterative.
Iterative cooking deletes packages that it detects are out of date, but the iterative deletion does not consider Additional files and so they remain.
Need to write a test case UObject that generates additional files...
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-164885 in the post.
2 |
Component | UE - Foundation - Core - Cooker |
---|---|
Affects Versions | 4.27 |
Target Fix | 5.6 |
Created | Sep 23, 2022 |
---|---|
Updated | Oct 18, 2024 |