Error when Packiging (fixed the other one)

I dont know what I did. I packaged the game, everything went fine. I then packaged it again later and this happens:
Cook: LogWindows:Error: Assertion failed: !GetAllPackageFilenamesFromAssetRegistry(OriginalAssetRegistryPath, PackageFiles) [File:D:\Build++UE4+Release-4.16+Compile\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp] [Line: 6894]

Crticial Error

Did you make any changes to your project before you packaged it the second time? Also do you have the full log if so can you add it to the question so I can take a further look at it?

It turns out, the error was caused by the fact that Packaging from Project Launcher compares the version with the one in Releases. I dunno what is wrong, but if I disable the releases feature it just packages fine.

1 Like

It seems that Releases/RELEASEVERSION/PLATFORM/ directory must be empty if “Create release version of the game for distribution” is checked. UE4 doesn’t clean it automatically because its directory has necessary data for creating patch packages later, I suppose.

In addition, I found that “Create release version of the game for distribution” must NOT be checked when creating patch packages. It will results the same assertion.