Hello again. I’ve upgraded my project to 4.3 and while many of my child/parent blueprint woes seem to have been fixed, I’m still having some major issues. I’ve found some really strange workarounds, but they don’t fix the underlying problem and will, assuredly cause issues in the future.
Problem:
Assigning a derived object to a variable classed to the parent fails compiling when running the standalone game. When compiling and running in PIE, this does not happen.
This is the error in the log:
[2014.07.18-18.45.33:893][261]LogBlueprint:Error: [compiler] Error COMPILER ERROR: failed building connection with 'object'BP_Attack_Turbo_C' is not compatible with object'BP_Attack_C'' at SpawnActor BP_Attack_Turbo_C
BP_Attack_Turbo is derived from BP_Attack. Here is a screenshot of the graph:
Expected behavior:
Derived objects should be assignable to variables classed to their parent class (As it’s working in PIE)
Funky workaround:
By forcing the object returned from the spawn to its own class, the error is avoided and things seem to work:
While this allows the code to progress, I get this error in the log when running the standalone game:
[2014.07.18-18.55.59:446][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins AsBP_Attack_Turbo_C and CurrentAttack
[2014.07.18-18.55.59:446][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins CurrentAttack and AsBP_Attack_Turbo_C
Also, the game seems to compile the Pawn two times, each time with warnings about accessing ancestor functions:
[2014.07.18-18.55.59:446][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins AsBP_Attack_Turbo_C and CurrentAttack
[2014.07.18-18.55.59:446][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins CurrentAttack and AsBP_Attack_Turbo_C
[2014.07.18-18.55.59:447][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins Target and CurrentAttack_Sheild
[2014.07.18-18.55.59:447][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins Target and CurrentAttack_Sheild
[2014.07.18-18.55.59:447][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins CurrentAttack_Sheild and Target
[2014.07.18-18.55.59:447][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins CurrentAttack_Sheild and Target
[2014.07.18-18.55.59:463][ 94]LogBlueprint:Warning: [compiler] Warning [0004.78] Compile of BP_QuadCopter_MP_Pawn successful, but with 6 Warning(s) [in 32 ms]
[2014.07.18-18.55.59:796][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins AsBP_Attack_Turbo_C and CurrentAttack
[2014.07.18-18.55.59:796][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins CurrentAttack and AsBP_Attack_Turbo_C
[2014.07.18-18.55.59:797][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins Target and CurrentAttack_Sheild
[2014.07.18-18.55.59:797][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins Target and CurrentAttack_Sheild
[2014.07.18-18.55.59:797][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins CurrentAttack_Sheild and Target
[2014.07.18-18.55.59:797][ 94]LogBlueprint:Warning: [compiler] Warning Type mismatch between pins CurrentAttack_Sheild and Target
[2014.07.18-18.55.59:813][ 94]LogBlueprint:Warning: [compiler] Warning [0005.13] Compile of BP_QuadCopter_MP_Pawn successful, but with 6 Warning(s) [in 38 ms]