I’ve been haunted with constant array problems when trying to add or read from one blueprint to another. When trying to standalone, launch or package the game the blueprint that is trying to access another blueprints array will fail to compile. Most of the time its just this kind of error:
[2014.09.26-21.44.06:938] 0]LogBlueprint:Error: [compiler] Error GM Snake Array of type array[object’self’] doesn’t match the property GM Snake Array of type array]
[2014.09.26-21.44.06:940] 0]LogBlueprint:Warning: [compiler] Warning [0012.01] Compile of BP_RB_SnakeTest failed.
The blueprint I am trying to access is either the Game Mode BP or the main Main game BP that handles all the logic in the level and is the only persistent actor. I have quite a few arrays that work properly but they are only accessed by the BP they are in. Like I said earlier I ran across this problem many times and have had to come up with a way to handle the construction of the array in the BP itself then communicating it with another blueprint but with my current issue I can’t seem to find away to do that.
So what I’m doing is adding a Variable to my Game Mode BP as " Array of type Actor = BP_RB_SnakeTest " and making it editable. Then when I spawn actors of class “BP_RB_SnakeTest” they cast to Game mode and add themselves to the array. As always it all works fine in the editor but when I launch the game in standalone, launch or package the BP which is casting to Game Mode fails to compile.
Im starting to think that i am setting this up all wrong somehow but the other arrays work fine so I am a bit lost now, would really appreciate any insight anyone has to offer as this has plagued me since the start of the project.