Blueprint Error when updating from 4.13 to 4.15

Hi all

I’m looking to update my project to 4.15, from 4.13.

I know how, and everything seems to go smooth except for one little hiccup somewhere in my blueprints. I’m sure there’s bound to be a few more bugs pop up, but for now this seems to be the only one.

It’s an RPG system, still very early in its works, but the currency does not properly update. In 4.13, launching the game will display the gold at “0,” and then when you increase it everything works as you would expect it to

However, when I launch this same project in 4.15, I’m met with the following error message:
https://puu.sh/vy0Km/ba88273ef3.png

The BP in question: https://puu.sh/vy0Ns/88c1c05ef1.png

It calls out 3 errors, and I think they are all related to the fact that the “Player Inventory Ref” is not returning with anything.

https://puu.sh/vy0QG/1ea0783e3e.png

On event begin play however, I spawn the inventory, then immediately set it to the players inventory reference. All the other references, such as the inventories reference to the player, the references to nearby merchants etc all work fine, for some reason it is just this one that doesn’t.

(Just in case I get asked; save game does not exist, and the set current gold to 0 was to see if it was an issue with the int, but that doesn’t seem to be the case)

Thanks for your time so far!

Man I’ve got this issue right yesterday) Try to make a delay before you do something with spawnable widget.

This was helpful, thank you, it’s a temporary fix for certain, but I still don’t really understand why it happens, nor is it a great fix in the long run! But thank you for the help anyway :slight_smile:

I can tell you why. Our lovely widgets need time to create themselves properly) So you can’t set their variables right after creation.

I understand you perfectly. I spend 5 or 6 hours to figure out what’s the F is going on and I’m happy to help someone with the same issue now)

So was it helpful?