So I’ve been attempting to set up an automated system that’ll rebuild the lighting in our project. However, I’ve been having some trouble getting RebuildLightMaps to work correctly.
If I use the following command via a build tool that I’ve set up:
D:\P4\WorkSpace\Engine\Build\BatchFiles\RunUAT.bat RebuildLightMaps -project=.\GameFolder\Game.uproject -platform=Win64 -quality=Preview
I get the following error and stack trace:
Log.WriteException: BuildException: No target name was specified on the command-line.
Log.WriteException: at UnrealBuildTool.TargetDescriptor.ParseCommandLine(String[] Arguments, Boolean bUsePrecompiled, Boolean bSkipRulesCompile, FileReference& ProjectFile) in D:\P4\WorkSpace\Engine\Source\Programs\UnrealBuildTool\Configuration\TargetDescriptor.cs:line 207
Log.WriteException: at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile, Boolean bCatchExceptions) in D:\P4\WorkSpace\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 1136
I’m unsure what exactly its looking for, as I think i’ve followed the examples I’ve seen online, but they might have been for older versions of the engine. Adding a -TargetType=Program, ie, the argument it seems to be looking for according to the code in the stack trace, doesn’t seem to affect this error.
Is there an example of this command in use anywhere, or is there something obvious that I’ve left out? I believe my paths are right, given that other commands via our build tool work fine for the files, but I don’t know what else I could be missing.