Add variable to structure make crash

Hi !

I actually have a strange problem …

I work with BluePrint and i have a structure, which is …

Today, i’d like to add a variable, which is an other structure :slight_smile:

This one. So, i just added the variable like this :

And when i saved and launch my game to check, i got all my BluePrint ‘failed to compile’…
Some of BP has


some variable which disappear…

Thanks to me, i saved my work on GitHub and i can backup my project but i’ve tried multiple times and i don’t understand why it’s happening :frowning:

Thanks to everyone which answer me !

I find UE is very finickey around structures.

When you first change the structure, you’ll get an update warning, bottom right

image

for all the other BP items that use this structure. I’d click it and save, then exit.

It should be ok when you restart the editor. But I have found that changing structures and just carrying on will lead to a crash.

Good that you backed up :wink:

1 Like

Hi !

Thanks for your answer, and rapid answer !

So, just tried but all my BP broke again :frowning:

Same problem :frowning:

Does i have to save one file by one file ?

image

I’ve seen when i add a variable which is not a custom structure, following your trick, it’s work without any problems … But when change it to my custom structure that broke :rofl:

1 Like

Yes, it can’t handle nested structures, apparently… :frowning:

Oh ! I’ve found a solution, strange solution :rofl:

So … Modify structure, add the new structure :

Now, save ONLY the structure

Close UnrealEngine, discard any other BP changes

Re-Open UE5 and that’s work :neutral_face:

Don’t understand, but it’s ok :rofl:

So thanks for your answer ! and your answer time, i appreciate a lot ! :slight_smile:

Have a nice day

4 Likes

Or that! :smiley:

3 Likes

Thanks you : i thought i had lost 10 days of work because of this bug . I hope they will resolve this .

Edit : for me its inconsistant the first time it worked , then tried on another struct and this problems happened despite not saving others actors .

So it force me to roll back on ue4 and loosing 10 days of works :frowning: