Problem with default values of variables being reseted

I noticed a problem with 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. value of variables defined in BP_GameChar are reseted in BP_PlayerChar everytime I restart Editor.

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

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

https://www…com/watch?v=qXFIVZ-j9O8

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

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

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

+1 Same problem here.

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

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

In thread linked above I’ve provided 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: https://answers.unrealengine.com/questions/158355/no-animation-caused-by-a-simple-setup-demo-project.html - 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 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 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 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…