Problem with default values of variables being reseted

I noticed a problem with the default values of variables in some of my blueprints.

I have a blueprint that inherits from Character called BP_GameChar. It has a lot of variables with default values. I have another blueprint called BP_PlayerChar that inherits from BP_GameChar. The value of the variables defined in BP_GameChar are reseted in BP_PlayerChar everytime I restart the Editor.

This picture shows how the values are 0 instead of the default values.

I show it on a video (mute it because I don’t speed and cough a few times)

There is another problem with the default values of another blueprint that inherits from AIController. I has two Name variables with default values set. But when I run the game they seem to don’t have any value. I had to set them in the Constructor script for them to work:

This function didn’t set the blackboard value correctly because the Name variable was None. After setting the values in the Constructor script it worked ok.

I was going to post the same question, I’m having the exact same problem with default values on child character blueprint being reset on editor restart.

+1 Same problem here.

It’s the same issue and seems to be a circular dependency problem: [4.7] - Defaults are zeroed out upon BP Construction - Programming & Scripting - Unreal Engine Forums

A temporary workaround is to set the variables to zero or -1 on the parent and override them on the child bp.

In the thread linked above I’ve provided the steps needed to replicate this bug.

I was hoping that these circular dependency bugs was fixed, as it was stated in release notes… This bug is quite similar to this one: - it was also resetting some default values in similar circumstances…

… Whoops, looks like i’ve made circular dependency between these threads :smiley: Will whole Answerhub crash now?

Thanks, setting the parent variables to 0 worked for me.

Fresh news: In THIS TOPIC in accepted answer, user Dan.OConnor says that this bug has been fixed and will be included in 4.7.3, but the link is giving me 404. Have you heard about thix fix too? If so, when can we expect 4.7.3 to appear? And why not 4.7.2?

Hey Slavq,

That link goes to an Unreal Engine GitHub page, so you need to be signed into GitHub to see it. 4.7.2 is coming up too soon for the fix to be implemented. There’s no official date for a 4.7.3 update, but if they go ahead with it, you probably won’t have long to wait.

I still have a similar bug in 4.7.3. I use structure blueprint to store integer arrays, then in child actor construction script i set parent array as one of structure file arrays right before parent construction script. It works fine in PIE, but in standalone preview array length = -1. And I also have circular dependency problem. I tryed to solve it to make everything linear but one of blueprints still decompiles when I compile mentioned parent blueprint.

created a new topic, noone answer here…