Blueprint still dirty after compile

I have one blueprint that remains dirty even if I compile it. Everything still works perfectly and if I compile the separate functions in the blueprint those functions compile correctly its just when I try to compile the event graph. I am just worried that it may cause issues further down the road. Does anyone have any suggestions?

When you compile a blueprint it’s construction script get’s executed again. Could it be that your have some code in the construction script that changes default/class values and so makes the whole BP dirty again?

Thanks for the reply. So I deleted everything in my construction script and it still remains dirty after compiling.

Does this happen with a plain new BP too? There must be something your BP does.

No it does not happen with any other blueprint and the problem only occurs when I compile the event graph if I compile the separate functions its fine

Hi

Do you have any other blueprints that are accessing information from or passing information to this blueprint that need to be compiled? Additionally, do you have any circular dependencies with this blueprint? If so, break the circular dependency and see if this fixes the error.

Hi . So after alot of deleting I managed to find the issue and fix it. The problem was that the blueprint script still remains dirty if I tried to insert an element into an array of keys. I checked to see whether the problem was specially with the array I was using but even if I create a new key array and then just connect it to the insert node without any other connections then the problem occurs. Is there a specific reason as to why this would happen?

Can you reproduce the issue in a clean project?

No the issue does not happen in a clean project

Could it be that another BP is the cause? Are you able to isolate the issue by breaking references you might have between other BPs?

Yes it only happens if I create a key array and then add it to the blueprint script. As soon as I do that I get the problem

Can you show me a screenshot of the blueprint in question and what array you are referring to? Are you adding this to the construction script or the event graph?

Here is the Screenshot. The box highlights the problem. If I delete it then it compilers ok! It happens when I add it to the event graph.

I have not been able to reproduce this on my end. Can you send me a sample project so I can see what may be occurring? I’ll be happy to take a look.

Hi thanks alot for this, here is the link to the file Sample. Sorry it took so long was trying to make the file as small as possible. The blueprint that has a problem is ThirdPersonCharacter in the Character_Blueprints->ThirdPersonBP folder. The area that seems to cause the problem is the Queue variable which is a Key Array it is in the event graph and perform ability function.

Unfortunately, this site has been blocked by our internal firewall and I won’t be able to access the files. Do you have google drive or dropbox? I can access both of these.

Sorry about that try this one sample

I think I’ve found the potential error. Your Key array is always NULL. It was used in 3 places within the player blueprint, but you never set any elements in the array. You’ll need to resize the array to fix this error. Try this and see if it is addressed, if not I’ll be happy to take another look.

Hi , I have tried to just change the default array to have 3 elements in it just to test it and it doesn’t seem to have changed anything. Is there another way to prevent it from being NULL?

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here. You can track the report’s status as the issue is reviewed by our development staff.