Child BP reset to default (old bug still exist)

If you create a child actor or character, from a parent, then the childs reset to default values.

  1. Create a ai player character bp (could be also an other one) then add variables you want setup for the ai, like team, health and such.
  2. Now make a child bp of the ai.
  3. place the ai to the map, and setup the variables you made. the variables should also be into the construction cript of the parent bp. lets say you use it to setup a text above the ai.
  4. now, save the map and all bp
  5. now open the parent AI bp and change some code into it.
  6. now save all bp and save the map
  7. close editor
  8. open editor
  9. now you will see that (maybe) the values got reset to default.
  10. If not, continue by number 5. Do so, aslong the bug not occure.
  11. if you dont see the bug, make a 2. map place the ai child characters, setup variables. change map.
  12. im sure you will see the bug occure.
  13. if not, i can send you my new AI project for investigate the bug, but im sure your team will the bug see occure.

There are a lot other ue4 users, getting the same issue, so this seems to be a solid bug.

The only solution i know, is to not use the construction script and place the variables after the begin play event.
Also it work, if you place all code from parent construction script to all childs. but that is not the way to go, but it save the pain of reconstruct tons of variables you have lost into a large map.

Game3d

Hey there, bro. I just want to say that have the same issue in 4.15. My Item_BP have a struct of all base variables like description, icon, amount, cost, stack_bool and a lot of others. I use this workaround with construction script, but even with that create all those variables and set them for all Item_Child is very time cost.
Maybe you or anyone from community founded another workaround? Because it happened from 4.11 at least and I’m not counting that this will be fixed soon.

What i test atm, i setup the variables from construction script also after begin play event, since then i i don’t lost any setup of values. But not really sure this is a solution. I will see over time, if the issue occure again or not.
Hopefully not.
A good idea is also, not put in a lot stuff to the construction script. when ever possible.

Hey just want to make all know, that I have crash today because of memory leak some kind, and I didn’t work on my item system like few days already, but after this crash all my “Custom item info” that store info and set up it in on construction was wiped out too, so its still may happen even if you make another variable.
Thing is that this “custom info” goes from “item_bp” also. So maybe you want to make this “custom info” variable in all of your last children and not take it from any parent, but Im prefer to take all “item info” from DataTable based on one variable “name of the row” with that I will need setup only “row name” if something goes wrong again and I will create it separately in all last child

Also want to point, that all variables from “Item_BP” to its child “equipment_BP” is wiped, but variables that going from “equipment_BP” to its own child are staying the same all that time. I’m not good in English, maybe if you check attached paint masterpiece of my hierarchy it will be more clear. I’m hoping they will fix it :frowning:

Hello! Thank you for let us know. That’s a really good news for me. Can´t wait to clean up all those children’s :smiley:

Hey guys,

As you know, this was fixed back in 4.13 but popped up again recently. I was able to reproduce this in 4.15.1; however, it was fixed again because it is now working correctly in the latest internal version of the editor. So you will see this working again in a future release.

Cheers,

TJ

Hi TJ,

Thanks for the help!

Again lost 2 times all settup into all my ai instanced BP, within the last 2 days.

@TJ Ballard I’m facing this issue in 4.15.1. Thanks for letting us know that it has been fixed. Can’t wait for the next hot fix release.

Cheers.

I’m a little confused, had this bug since forever, never got fixed for me in 4.13 or any version, still happens now in the latest version. Can you confirm you have a proper fix and a rough estimate on release date would be good? Thanks

Hey Ben,

Sorry for the confusion. We generally don’t mention the exact version a fix will be in due to the possibility of things getting bumped or delayed for various reasons.

However; when I verified this was working in an internal version, I was testing in 4.16. So you should see this working properly in that version once it’s released. If for any reason it’s still broken at that time, post back here to let me know and I’ll see what’s going on.

Hello, I’m recently started using UE5.1.0 and i face this exam same bug. I have a Blueprint named “BatteryMan” that always reset default when I open unreal engine. In this blueprint i have my inputs setup only, and i?m at the beginning of my project so it’s not too annoying but still, does it exist a fix to this or am I just misusing the software.
To give you more context, I use rider as IDE with live code, and my classes in the blueprints are as well not available on start, I need to rebuild every time I start working

Best regards,
Maxime Rochat

If you are using C++ class for your child actor, you have to create blueprint child for your class and then use your BP class instead C++ class it will fix your saving data problem