Lightmaps do not save when built using UE4Editor-cmd in 4.14

Hi

In UE 4.14 when lightmaps are built from commandline using:
UE4Editor-cmd.exe ProjectName -run=resavepackages -buildlighting -allowcommandletrendering -map=MapName
only the *.umap files are saved afterwards, while the *_BuiltData.uasset files are not saved (and they contain lightmap data ;))

this does not happend while using UE4Editor.exe ProjectName -run=resavepackages -buildlighting -allowcommandletrendering -map=MapName
but I prefer the first one …

Hi MXADD,

This issue will be fixed with 4.15. The was recently fixed internally and doesn’t have a JIRA issue for reference.

Thanks for reporting!

Tim

Hello. I just tested this with 4.15preview1 and Engine is now crashing with default third person template.
Error messages and logs are here.

Actually, this is still an issue internally as well. Sorry about that.
There still isn’t a ticket but the change was fixed in CL-3252784 on January 10th. I’ll see if we can get this change put into the 4.15 release but I cannot guarantee it. If not, it looks like it’ll be in 4.16 at the earliest.

Hi,
I tested with 4.15 preview 3. With some simple scenes engine finishes building, but _BuiltData files are saved not in .uasset but in .umap. If I rename all _BuiltData.umap files to _BuiltData.uasset, the result becomes as expected. I hope this bug will also be fixed soon. Followings are a part of the log:

[2017.02.07-11.11.37:276][  0]LogTexture:Display: Building textures: HQ_Lightmap0_1 (AutoDXT)
[2017.02.07-11.11.37:276][  0]LogTexture:Display: Building textures: LQ_Lightmap_0_1 (DXT1)
[2017.02.07-11.11.37:276][  0]LogTexture:Display: Building textures: ShadowMapTexture2D_0 (BGRA8)
[2017.02.07-11.11.38:873][  0]LogTexture:Display: Building textures: HQ_Lightmap0_1 (AutoDXT)
[2017.02.07-11.11.38:873][  0]LogTexture:Display: Building textures: LQ_Lightmap_0_1 (DXT1)
[2017.02.07-11.11.39:348][  0]LogSavePackage:Display: Finished SavePackage ../../../../../../Users/user/Documents/Unreal Projects/Simple/Content/Untitled_BuiltData.umap
[2017.02.07-11.11.39:358][  0]LogSavePackage:Display: Finished SavePackage ../../../../../../Users/user/Documents/Unreal Projects/Simple/Content/Lights.umap
[2017.02.07-11.11.39:373][  0]LogSavePackage:Display: Finished SavePackage ../../../../../../Users/user/Documents/Unreal Projects/Simple/Content/Lights_BuiltData.umap

Hi,

I needed to make this work again. My fix is to change line 1098 in ContentCommandlets.cpp from

if ( FPackageName::TryConvertLongPackageNameToFilename(MapBuildDataPackageName, MapBuildDataFilename, FPackageName::GetMapPackageExtension() ) )

to

if ( FPackageName::TryConvertLongPackageNameToFilename(MapBuildDataPackageName, MapBuildDataFilename, FPackageName::GetAssetPackageExtension() ) )

Best,

I’m having problem with this too (4.15.0), and it’s already March 15… :frowning: