Nested Structures with BP Classes Broken?

I am working on a project where the pawn can spawn building like an RTS style and I set up some buttons to read values from a custom Structs. I got some really strange things happening in the editor trying to get this to work.

First I made a Structure to add different common variables a building would have. (Name, Cost, Damage, Icon, BP Class)

Next I made a Structure list of the Common Values Structure. Filling out each element with different values to define the different building types.

Then on the Widget BP(just a button grid) I make the Struct a variable, then break it to get the available buildings and add them to an array at construct. I then loop the array to add the buttons.
In the PIE seems to work okay but if I test in standalone the buttons are not populated because the structures data is reset. This is confirmed by a reset of the engine editor. Also note the Array of Structs get an internal compiler error after a reopen of the editor.

Possibly related, editing parent BP resets default values on child BP. The structure contains references to child BP classes. Maybe the engine doesn’t recognize all the files it needs to update/compile unless they are placed in level or edited after the initial parent edit.

AnswerHub Link

Hello Freestyledork,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any blueprints/settings/widgets that may be involved with this issue?

Hello Freestyledork,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

Thanks,

The issue still persist. I can confirm its happened on 2 separate projects both getting created from different engine versions, the latest 4.14.3. I don’t have the repeatable steps as my main goal is to get a system working, not try to find out why it’s not working. There are plenty of threads regarding child BP’s getting values reset and I would be willing to bet that’s where the struct error is coming from.

Maybe someone else will find this info helpful in the event you are unable to do anything unless I give you explicit instructions on how to reproduce the error.

I have run a few tests based on the information that you have provided. However, I have been unable to reproduce this issue on our end. Without further information on how to reproduce this issue I will be unable to write up a report. If at any point you are able to provide a detailed set of steps to reproduce this issue on our end, I will be happy to investigate further.