Every time I try to package a project that uses a metahuman, it runs into an error.
I’ve installed all the plugins correctly, and when I try packaging the project without the metahuman. It works perfectly.
Here’s a link to me output log.
Hello there @Recksoap!
Investigating through your log, I think the main issue shows up here:
ERROR: Non-editor build cannot depend on non-redistributable modules. F:\Unreal Engine\Indigo_Training_2\Binaries\Win64\IndiGo_Training_2-Win64-Shipping.exe depends on ‘MessageLog’.
Dependant modules ‘DNACalibModule’
Checking around the community, DNACalibModule is part of MetaHuman, and a dependency is being invoked to MessageLog.
Said link should only be called for editor builds. Check your dependencies to prevent the error. After that, clear cache via deleting folders Intermediate
, Saved
, and Binaries
, then rebuild the project.
As well, there is one more line to bring attention:
Visual Studio 2022 compiler version 14.44.35208 is not a preferred version. Please use the latest preferred version 14.38.33130
Your VS components may not be the proper version for the build, please review them in the following documentation before attempting to rebuild:
In my opinion, this appears to be a bug in the MetaHumans plugin.
In a nutshell, the offending module, DNACalibModule, is a runtime module, but it incorrectly always lists as a dependency the module MessageLog, which is an editor module.
This can be seen in Engine\Plugins\Animation\DNACalib\DNACalib.uplugin
, line 33, where the plugin’s type is declared as “Runtime”. However, if we go to Engine\Plugins\Animation\DNACalib\Source\DNACalibModule\DNACalibModule.Build.cs
, line 16, we see that it lists the module “MessageLog” as a dependency even when in a non-editor build. The problem is that the type of the MessageLog module is editor-only.
I already filed a bug report. Let’s hope this is addressed as soon as possible.
Hey,
Just acknowledging this one - we are prepping a fix for a future version. Thanks for reporting it!
Cheers
James
Thank you for the quick reply James!
I just met the same promblem, the "MessageLog” and “DNACalibModule”. haha
Glad to see this post, Now let’s waitfor Epic to fix it~
Hey, what helped me package a project was going to my UE 5.6 Installation Path
UE5.6/Engine/Plugins/Animation/DNACalib and inside of DNACalib.uplugin i changed the type of every module to Editor but i don’t know if metahumans still work since i only enabled the metahuman plugin without actually creating one.
But you could try it out, worth a try