Game won't package, Camera Component Error
I'm trying to get my game to package and can see at the bottom that it's giving me 490 errors after moving my project from 4.9. The weird thing is that it gives 0 errors at run time or compiling, only when I package. The only error that it shows in red is this one:
LogSceneComponent:Error: Component 'SpringArmComponent /Game/Maps/UEDPIE_0_Traveling_Shark.Traveling_Shark:PersistentLevel.BP_Mercenary_C_0.CameraBoom_TP' has 'CameraComponent /Engine/Transient.TRASH_Default_BP_Base_Character_C_0:FollowCamera_TP' in its AttachChildren array, however, 'CameraComponent /Engine/Transient.TRASH_DefaultBP_Base_Character_C_0:Fo llowCamera_TP' believes it is attached to 'SpringArmComponent /Engine/Transient.TRASH_Default_BP_Base_Character_C_0:CameraBoom_TP'
LogSceneComponent:Error: Component 'CapsuleComponent /Game/Maps/UEDPIE_0_Traveling_Shark.Traveling_Shark:PersistentLevel.BP_Mercenary_C_0.CollisionCylinder' has 'SpringArmComponent /Engine/Transient.TRASH_Default_BP_Base_Character_C_0:CameraBoom_TP' in its AttachChildren array, however, 'SpringArmComponent /Engine/Transient.TRASH_DefaultBP_Base_Character C_0:CameraBoom_TP' believes it is attached to 'CapsuleComponent /Engine/Transient.TRASH_Default__BP_Base_Character_C_0:CollisionCylinder'
Does anyone have any idea whats going on here or how I might fix it?
asked Jun 21 '16 at 04:41 PM in Packaging & Deployment
This line seems like it could be the problem:
In this case, is SocketName a variable you have set up that is storing the name of a socket that you have on your CameraBoom_TP? If you're just referring to the base SocketName variable that is inside of the USpringArmComponent class, this will most likely be returning a null value which could be causing some weird results like what you're seeing. This isn't something that the compiler would ever catch however, which would explain why you only get errors when trying to package.
I would suggest creating a FName variable that stores the name of the socket that you plan to attach this Camera to and then pass that into the AttachTo function instead.
answered Jun 29 '16 at 03:30 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here