OK, this is in the vein of documenting the issues I’m having with packaging the battle tank game. Could be UE4 version 4.19 or my project. I created the project with 4.19 preview and then updated to 4.19 release when it became available. This could also be the issue but I haven’t had any other issues.
So, The dev environment is:
UE4 version 4.19 release
VS 2017 Community
I started with a fully reset project.
I’m building my package for Win64.
If I open the project and compile from within the editor then packaging fails. I get the following log entries:
UATHelper: Packaging (Windows (64-bit)): LogInit: Warning: Incompatible or missing module: UE4Editor-BattleTankLowPoly.dll
PackagingResults: Warning: Incompatible or missing module: UE4Editor-BattleTankLowPoly.dll
UATHelper: Packaging (Windows (64-bit)): Took 8.2726443s to run UE4Editor-Cmd.exe, ExitCode=1
UATHelper: Packaging (Windows (64-bit)): ERROR: Cook failed.
UATHelper: Packaging (Windows (64-bit)): (see C:\Users\UVBlu\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.19\UAT_Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Cook failed.
PackagingResults: Error: Unknown Cook Failure
If I then close the UE4 editor, open the VS 2017 project, do a complete rebuild, close VS 2017, reopen the project in the UE4 editor and immediately build the package, it builds perfectly.
I can repeat both scenarios consistently. Compiling from within UE4 breaks the packaging and rebuilding from within VS 2017 fixes it.
I’m still trying to understand exactly why this is happening. It obviously has to do with the UE4Editor-BattleTankLowPoly.dll file and some difference in the UE4 and VS 2017 compile. The file is not missing os I guess it’s incompatible or corrupted from the UE4 compile.