Description

Trying to open a project that uses the Script Plugin in a binary version of the Engine that has been created from an Engine built from source code will fail. The Engine is looking for the file UnrealHeaderTool-ScriptGeneratorPlugin.dll, but that file is apparently deleted from the source code Engine when the binary version is being created, and it is not re-created in the binary version.

Steps to Reproduce

PRE-REQUISITES:
A version of the Engine built from source code is required for this repro. The repro will also take some time since it involves multiple compiles of the Engine.

  1. Using an Engine built from source code, create a new code project.
  2. Open the code project in the Editor.
  3. Open the Plugins window.
  4. Enable the Script Plugin in the project.
  5. Close the Editor (do not select the option to Restart the Editor).
  6. In Visual Studio, right-click on the project in the Solution Explorer and select the Clean option.
  7. When the Clean is complete, right-click on the project in the Solution Explorer and select the Rebuild option.
  8. Once the Rebuild is complete, navigate to the Engine\Plugins\ScriptPlugin\Binaries\Win64 folder in Windows Explorer and verify that the UnrealHeaderTool-ScriptGeneratorPlugin.dll file is present.
  9. Navigate to the \Engine\Build\BatchFiles folder and open a command processor window.
  10. In the command processor window, enter the following command line to create a binary version of the Engine: runuat.bat BuildGraph -target="Make Installed Build Win64" -script=< path to root Engine folder >/Engine/Build/InstalledEngineBuild.xml -set:HostPlatformOnly=true -set:WithDDC=false
  11. Once the binary version has been created, return to the folder in step 8 and note that the file is no longer present.
  12. Open the new binary version of the Engine.
  13. Open a copy of the project in the binary version of the Engine.

RESULT:
The project fails to open and the following errors are displayed:

LogModuleManager:Warning: No filename provided for module ScriptGeneratorPlugin
LogModuleManager:Warning: ModuleManager: Unable to load module 'ScriptGeneratorPlugin' because the file 'D:/Source/UnrealEngine-4.13.2-release/LocalBuilds/Engine/Windows/Engine/Binaries/Win64/' was not found.
LogCompile:Error: Failed to initialize the engine (PreInit failed).

EXPECTED:
The project opens successfully in the binary version of the Engine.

WORKAROUND:
Rebuild the original project again and manually copy the UnrealHeaderTool-ScriptGeneratorPlugin.dll file from the source code version of the Engine to the new binary version of the Engine.

REGRESSION:
No

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Won't Fix
CreatedFeb 1, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue