BattleTank packaging issue, UE 4.19, Incompatible or missing module

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.

Just an update…

This issue seems to have corrected itself. The only thing I know of that has changes is that I’ve created a couple of additional C++ classes from within UE4. But, now i can compile from within the editor and the packaging process works perfectly.

Who knows…

One more update…

This issue seems to have cropped it’s ugly head back up again. I have not dug deeply into it and the resolution/workaround is the same. I need to spend some time digging a little more deeply. And, possibly post a real bug report on it at Unreal.

If anyone has any further info on this please share. it would be greatly appreciated.

Unfortunately I can’t help but I have the same problem. I also use unreal 4.19 (but started the project in this version) and VS 2017 community. I tried several settings in “packaging settings” but nothing worked. The content cooking always fails with that error message. Maybe some incompatibility between the tank model and those unreal and vs version?

Could be a compatibility issue, not sure. I did try the “build all” option in “packaging settings” with no luck

Were you able to package after a complete rebuild in VS? That’s what worked for me.

And it’s odd that it worked from UE for a bit and then broke again. I have no idea what I changed. lol

Thanks it worked for me! As long as this procedure works everytime the error appears we at least can solve the problem for that moment :smiley: But it is unsatisfying to not find what causes the problem

1 Like

Thankyou, I had the same problem and rebuilding in VS (which I had never done) has helped me package the game, in my instance the building escape course.
Now to work out the best way of reducing the ridiculously large package of over 600Mb for such a simple “game”. Obviously the starter content is the main culprit there.

Cheers, and many thanks,
Max

Privacy & Terms