Download

Light Building - Error in RunUAT

I can’t build light from CMD.
I try to build form Engine and project in shortest possible path, but no success.


C:\>"C:\Program Files\Epic Games\UE_4.24\Engine\Build\BatchFiles\runuat.bat" -ScriptsForProject="***.uproject" RebuildLightmaps -P4
Running AutomationTool...
Parsing command line: -ScriptsForProject=***.uproject RebuildLightmaps -P4
Detected Perforce Settings:
  Server: ***
  User: ***
  Client: ***
  Branch: ***
  Last Change: 3561
  Last Code Change: 3560
********** REBUILD LIGHT MAPS COMMAND STARTED **********
********** REBUILD LIGHT MAPS COMMAND FAILED **********
Error message: Object reference not set to an instance of an object.
ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
          at AutomationScripts.Automation.RebuildLightMaps.ExecuteBuild() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RebuildLightMapsCommand.Automation.cs:line 57
          at AutomationTool.BuildCommand.Execute() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 263
          at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 538
          at AutomationTool.Automation.Process(String] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 508
          at AutomationTool.Program.MainProc(String] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 176
          at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 88
          at AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 731
          at AutomationTool.Program.Main(String] Arguments) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 88
       (see C:\Users\Farm64\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.24\Log.txt for full exception trace)
AutomationTool exiting with ExitCode=1 (Error_Unknown)
BUILD FAILED