Description

Structs cause packaging to fail when Blueprint Nativization Method is set to "Inclusive"

Note: Appears to be a regression (worked in 4.15.1)

Error example:

UATHelper: Packaging (Windows (64-bit)): Cook: LogCook:Display: Cooking /Engine/EditorResources/LightIcons/S_LightError -> C:/Users/charlie.triplett/Documents/Unreal Projects/DeleteWhenDonePrev/Saved/Cooked/WindowsNoEditor/Engine/Content/EditorResources/LightIcons/S_LightError.uasset
UATHelper: Packaging (Windows (64-bit)): Cook: LogSavePackage:Display: Finished SavePackage C:/Users/charlie.triplett/Documents/Unreal Projects/DeleteWhenDonePrev/Saved/Cooked/WindowsNoEditor/Engine/Content/EditorResources/LightIcons/S_LightError.uasset
UATHelper: Packaging (Windows (64-bit)): Cook: LogInit:Display: Warning/Error Summary (Unique only)
UATHelper: Packaging (Windows (64-bit)): Cook: LogInit:Display: Success - 0 error(s), 5 warning(s)
nit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
UATHelper: Packaging (Windows (64-bit)): xgConsole: C:\Users\charlie.triplett\Documents\Unreal Projects\DeleteWhenDonePrev\Intermediate\Plugins\WindowsNoEditor\NativizedAssets\Source\NativizedAssets\Public/NewUserDefinedStruct__pf1010915279.h(15): error C2065: 'FStructOnScope': undeclared identifier
UATHelper: Packaging (Windows (64-bit)): xgConsole: C:\Users\charlie.triplett\Documents\Unreal Projects\DeleteWhenDonePrev\Intermediate\Plugins\WindowsNoEditor\NativizedAssets\Source\NativizedAssets\Public/NewUserDefinedStruct__pf1010915279.h(15): error C2146: syntax error: missing ';' before identifier 'StructOnScope'
UATHelper: Packaging (Windows (64-bit)): xgConsole: C:\Users\charlie.triplett\Documents\Unreal Projects\DeleteWhenDonePrev\Intermediate\Plugins\WindowsNoEditor\NativizedAssets\Source\NativizedAssets\Public/NewUserDefinedStruct__pf1010915279.h(15): error C3861: 'StructOnScope': identifier not found
UATHelper: Packaging (Windows (64-bit)): xgConsole: C:\Users\charlie.triplett\Documents\Unreal Projects\DeleteWhenDonePrev\Intermediate\Plugins\WindowsNoEditor\NativizedAssets\Source\NativizedAssets\Public/NewUserDefinedStruct__pf1010915279.h(16): error C2065: 'StructOnScope': undeclared identifier
UATHelper: Packaging (Windows (64-bit)): xgConsole: C:\Users\charlie.triplett\Documents\Unreal Projects\DeleteWhenDonePrev\Intermediate\Plugins\WindowsNoEditor\NativizedAssets\Source\NativizedAssets\Public/NewUserDefinedStruct__pf1010915279.h(16): error C2228: left of '.GetStructMemory' must have class/struct/union
UATHelper: Packaging (Windows (64-bit)): xgConsole: C:\Users\charlie.triplett\Documents\Unreal Projects\DeleteWhenDonePrev\Intermediate\Plugins\WindowsNoEditor\NativizedAssets\Source\NativizedAssets\Public/NewUserDefinedStruct__pf1010915279.h(16): error C2530: 'DefaultData__': references must be initialized
UATHelper: Packaging (Windows (64-bit)): xgConsole: C:\Users\charlie.triplett\Documents\Unreal Projects\DeleteWhenDonePrev\Intermediate\Plugins\WindowsNoEditor\NativizedAssets\Source\NativizedAssets\Public/NewUserDefinedStruct__pf1010915279.h(23): error C2653: 'UUserDefinedStruct': is not a class or namespace name
UATHelper: Packaging (Windows (64-bit)): xgConsole: C:\Users\charlie.triplett\Documents\Unreal Projects\DeleteWhenDonePrev\Intermediate\Plugins\WindowsNoEditor\NativizedAssets\Source\NativizedAssets\Public/NewUserDefinedStruct__pf1010915279.h(23): error C3861: 'GetUserDefinedStructTypeHash': identifier not found
UATHelper: Packaging (Windows (64-bit)): xgConsole: Error executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe (tool returned code: 2)
UATHelper: Packaging (Windows (64-bit)): xgConsole: c:\users\charlie.triplett\documents\unreal projects\deletewhendoneprev\intermediate\plugins\windowsnoeditor\nativizedassets\source\nativizedassets\public\NewUserDefinedStruct__pf1010915279.h(15): error C2065: 'FStructOnScope': undeclared identifier
UATHelper: Packaging (Windows (64-bit)): xgConsole: c:\users\charlie.triplett\documents\unreal projects\deletewhendoneprev\intermediate\plugins\windowsnoeditor\nativizedassets\source\nativizedassets\public\NewUserDefinedStruct__pf1010915279.h(15): error C2146: syntax error: missing ';' before identifier 'StructOnScope'
UATHelper: Packaging (Windows (64-bit)): xgConsole: c:\users\charlie.triplett\documents\unreal projects\deletewhendoneprev\intermediate\plugins\windowsnoeditor\nativizedassets\source\nativizedassets\public\NewUserDefinedStruct__pf1010915279.h(15): error C3861: 'StructOnScope': identifier not found
UATHelper: Packaging (Windows (64-bit)): xgConsole: c:\users\charlie.triplett\documents\unreal projects\deletewhendoneprev\intermediate\plugins\windowsnoeditor\nativizedassets\source\nativizedassets\public\NewUserDefinedStruct__pf1010915279.h(16): error C2065: 'StructOnScope': undeclared identifier
UATHelper: Packaging (Windows (64-bit)): xgConsole: c:\users\charlie.triplett\documents\unreal projects\deletewhendoneprev\intermediate\plugins\windowsnoeditor\nativizedassets\source\nativizedassets\public\NewUserDefinedStruct__pf1010915279.h(16): error C2228: left of '.GetStructMemory' must have class/struct/union
UATHelper: Packaging (Windows (64-bit)): xgConsole: c:\users\charlie.triplett\documents\unreal projects\deletewhendoneprev\intermediate\plugins\windowsnoeditor\nativizedassets\source\nativizedassets\public\NewUserDefinedStruct__pf1010915279.h(16): error C2530: 'DefaultData__': references must be initialized
UATHelper: Packaging (Windows (64-bit)): xgConsole: c:\users\charlie.triplett\documents\unreal projects\deletewhendoneprev\intermediate\plugins\windowsnoeditor\nativizedassets\source\nativizedassets\public\NewUserDefinedStruct__pf1010915279.h(23): error C2653: 'UUserDefinedStruct': is not a class or namespace name
UATHelper: Packaging (Windows (64-bit)): xgConsole: c:\users\charlie.triplett\documents\unreal projects\deletewhendoneprev\intermediate\plugins\windowsnoeditor\nativizedassets\source\nativizedassets\public\NewUserDefinedStruct__pf1010915279.h(23): error C3861: 'GetUserDefinedStructTypeHash': identifier not found
UATHelper: Packaging (Windows (64-bit)): xgConsole: Error executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe (tool returned code: 2)
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:1): C:\Program Files (x86)\Xoreax\IncrediBuild\xgConsole.exe "C:\Users\charlie.triplett\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+(x86)+Epic+Games+UE_4.16\UAT_XGE.xml" /Rebu
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
PackagingResults:Error: Error Unknown Error

Steps to Reproduce
  1. Open the editor
  2. Create a new struct
  3. Create a new actor blueprint
  4. Create a new struct variable (using the struct create above) in the new actor
  5. Place actor into the level
  6. Set Blueprint Nativization Method to inclusive (project settings)
  7. Package for window 64 bit
  8. Notice that the project fails to package (example errors provided below)

Have Comments or More Details?

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

6
Login to Vote

Cannot Reproduce
ComponentUE - Gameplay - Blueprint
Affects Versions4.16
Target Fix4.17
CreatedApr 26, 2017
ResolvedMay 2, 2017
UpdatedSep 23, 2019
View Jira Issue