Description

Nativized packaging fails when attaching paper Flipbook component to a parent paper Flipbook component that is Inherited.

Steps to Reproduce

For easier replication Sample Project can be found here: [Link Removed]

  1. Create new project.
  2. Create Character blueprint, name it BP_Character.
  3. Create 4 different Actor blueprints, name them BP_ActorA, BP_ActorB, BP_ActorC, BP_ActorD.
  4. Add two different PNG files, 1.png, 2.png.
  5. Create Sprites from those textures, then flipbooks from them, 1_flipbook, 2_flipbook.
  6. Create and attach to CapsuleComponent a Scene component inside BP_Character.
  7. Create and attach 4 Child Actors to that Scene component, name them ChildActorA, ChildActorB, ChildActorC, ChildActorD.
  8. Set Child Actor Class of the above for Child Actor components with the following classes, BP_ActorA, BP_ActorB, BP_ActorC, BP_ActorD.
  9. Create and attach to CapsuleComponent a Paper Flipbook, name it PaperFlipbook, set Sprite as 1_flipbook.
  10. Create a Child Blueprint Class from BP_Character, name it BP_Character_Child.
  11. Inside BP_Character_Child, create a Paper Flipbook component, and attach it PaperFlipbook(Inherented) component. set Sprite as 2_flipbook.
  12. In the Project Settings-> Project Packaging ->Blueprint Nativization Method -> Inclusive.
  13. In the Project Settings-> Project Packaging ->Build Configuration -> Development.
  14. File-> Package Project -> Windows -> Windows (32-Bit).

Expected: Packaged Successfully

Results: Fails with the following log (See OutputErrorLog.Txt)

Callstack

UATHelper: Packaging (Windows (32-bit)): ********** COOK COMMAND COMPLETED **********
UATHelper: Packaging (Windows (32-bit)): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (32-bit)): Running: E:\Epic Games\Engines\UE_4.21\Engine\Binaries\DotNET\UnrealBuildTool.exe zzzNativation Win32 Development -Project="E:\Unreal Projects\zzzNativation\zzzNativation.uproject" "E:\Unreal Projects\zzzNativation\zzzNativation.uproject" -NoUBTMakefiles -remoteini="E:\Unreal Projects\zzzNativation" -skipdeploy -Man
ifest="E:\Unreal Projects\zzzNativation\Intermediate\Build\Manifest.xml" -NoHotReload -log="C:\Users\zgzg2020\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+Engines+UE_4.21\UBT-zzzNativation-Win32-Development.txt"
UATHelper: Packaging (Windows (32-bit)): Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
UATHelper: Packaging (Windows (32-bit)): Parsing headers for zzzNativation
UATHelper: Packaging (Windows (32-bit)): Running UnrealHeaderTool "E:\Unreal Projects\zzzNativation\zzzNativation.uproject" "E:\Unreal Projects\zzzNativation\Intermediate\Build\Win32\zzzNativation\Development\zzzNativation.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
UATHelper: Packaging (Windows (32-bit)): Reflection code generated for zzzNativation in 12.9633297 seconds
UATHelper: Packaging (Windows (32-bit)): Writing manifest to E:\Unreal Projects\zzzNativation\Intermediate\Build\Manifest.xml
UATHelper: Packaging (Windows (32-bit)): Building 4 actions with 12 processes...
UATHelper: Packaging (Windows (32-bit)): [1/4] zzzNativation.cpp
UATHelper: Packaging (Windows (32-bit)): [2/4] Module.NativizedAssets.gen.cpp
UATHelper: Packaging (Windows (32-bit)): [3/4] Module.NativizedAssets.cpp
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(455): error C2065: 'ABP_ActorA_C_pf503790866': undeclared identifier
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(455): error C2672: 'CastChecked': no matching overloaded function found
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(455): error C2974: 'CastChecked': invalid template argument for 'T', type expected
UATHelper: Packaging (Windows (32-bit)): E:\Epic Games\Engines\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\UObject/Linker.h(519): note: see declaration of 'CastChecked'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(455): error C2974: 'CastChecked': invalid template argument for 'To', type expected
UATHelper: Packaging (Windows (32-bit)): E:\Epic Games\Engines\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(224): note: see declaration of 'CastChecked'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(456): error C3536: 'Local_12': cannot be used before it is initialized
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(461): error C2065: 'ABP_ActorA_C_pf503790866': undeclared identifier
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(461): error C2059: syntax error: '>'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(461): error C2061: syntax error: identifier 'bpvChildActorA_pf'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(462): error C3536: 'Local_13': cannot be used before it is initialized
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(472): error C2065: 'ABP_ActorB_C_pf503790866': undeclared identifier
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(472): error C2672: 'CastChecked': no matching overloaded function found
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(472): error C2974: 'CastChecked': invalid template argument for 'T', type expected
UATHelper: Packaging (Windows (32-bit)): E:\Epic Games\Engines\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\UObject/Linker.h(519): note: see declaration of 'CastChecked'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(472): error C2974: 'CastChecked': invalid template argument for 'To', type expected
UATHelper: Packaging (Windows (32-bit)): E:\Epic Games\Engines\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(224): note: see declaration of 'CastChecked'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(473): error C3536: 'Local_16': cannot be used before it is initialized
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(478): error C2065: 'ABP_ActorB_C_pf503790866': undeclared identifier
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(478): error C2059: syntax error: '>'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(478): error C2061: syntax error: identifier 'bpvChildActorB_pf'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(479): error C3536: 'Local_17': cannot be used before it is initialized
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(481): error C2065: 'ABP_ActorC_C_pf503790866': undeclared identifier
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(481): error C2672: 'CastChecked': no matching overloaded function found
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(481): error C2974: 'CastChecked': invalid template argument for 'T', type expected
UATHelper: Packaging (Windows (32-bit)): E:\Epic Games\Engines\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\UObject/Linker.h(519): note: see declaration of 'CastChecked'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(481): error C2974: 'CastChecked': invalid template argument for 'To', type expected
UATHelper: Packaging (Windows (32-bit)): E:\Epic Games\Engines\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(224): note: see declaration of 'CastChecked'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(482): error C3536: 'Local_18': cannot be used before it is initialized
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(487): error C2065: 'ABP_ActorC_C_pf503790866': undeclared identifier
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(487): error C2059: syntax error: '>'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(487): error C2061: syntax error: identifier 'bpvChildActorC_pf'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(488): error C3536: 'Local_19': cannot be used before it is initialized
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(490): error C2065: 'ABP_ActorD_C_pf503790866': undeclared identifier
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(490): error C2672: 'CastChecked': no matching overloaded function found
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(490): error C2974: 'CastChecked': invalid template argument for 'T', type expected
UATHelper: Packaging (Windows (32-bit)): E:\Epic Games\Engines\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\UObject/Linker.h(519): note: see declaration of 'CastChecked'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(490): error C2974: 'CastChecked': invalid template argument for 'To', type expected
UATHelper: Packaging (Windows (32-bit)): E:\Epic Games\Engines\UE_4.21\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(224): note: see declaration of 'CastChecked'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(491): error C3536: 'Local_20': cannot be used before it is initialized
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(496): error C2065: 'ABP_ActorD_C_pf503790866': undeclared identifier
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child__pf503790866.cpp(496): error C2059: syntax error: '>'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(496): error C2061: syntax error: identifier 'bpvChildActorD_pf'
UATHelper: Packaging (Windows (32-bit)): E:\Unreal Projects\zzzNativation\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\BP_Character_Child_pf503790866.cpp(497): error C3536: 'Local_21': cannot be used before it is initialized
UATHelper: Packaging (Windows (32-bit)): ERROR: UBT ERROR: Failed to produce item: E:\Unreal Projects\zzzNativation\Binaries\Win32\zzzNativation.pdb
UATHelper: Packaging (Windows (32-bit)): (see C:\Users\zgzg2020\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+Engines+UE_4.21\UBT-zzzNativation-Win32-Development.txt for full exception trace)
PackagingResults: Error: '>'
UATHelper: Packaging (Windows (32-bit)): Total build time: 46.04 seconds (Parallel executor: 0.00 seconds)
PackagingResults: Error: identifier 'bpv_ChildActorA_pf'
PackagingResults: Error: '>'
PackagingResults: Error: identifier 'bpv_ChildActorB_pf'
PackagingResults: Error: '>'
PackagingResults: Error: identifier 'bpv_ChildActorC_pf'
PackagingResults: Error: '>'
PackagingResults: Error: identifier 'bpv_ChildActorD_pf'
PackagingResults: Error: UBT ERROR: Failed to produce item: E:\Unreal Projects\zzzNativation\Binaries\Win32\zzzNativation.pdb
UATHelper: Packaging (Windows (32-bit)): Took 46.4277341s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (32-bit)): ERROR: UnrealBuildTool failed. See log for more details. (C:\Users\zgzg2020\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+Engines+UE_4.21\UBT-zzzNativation-Win32-Development.txt)
UATHelper: Packaging (Windows (32-bit)): (see C:\Users\zgzg2020\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+Engines+UE_4.21\Log.txt for full exception trace)
UATHelper: Packaging (Windows (32-bit)): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (32-bit)): BUILD FAILED
PackagingResults: Error: UnrealBuildTool failed. See log for more details. (C:\Users\zgzg2020\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+Engines+UE_4.21\UBT-zzzNativation-Win32-Development.txt)
PackagingResults: Error: Unknown Error
LogAssetEditorManager: Opening Asset editor for Blueprint /Game/Blueprint/BP_Character.BP_Character
LogAssetEditorManager: Opening Asset editor for Blueprint /Game/Blueprint/BP_Character_Child.BP_Character_Child

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-68123 in the post.

1
Login to Vote

Unresolved
ComponentGameplay - Blueprint
Affects Versions4.204.21
Target Fix4.24
CreatedJan 8, 2019
UpdatedMay 31, 2019