So if you set this to True on the Component in the Player Blueprint. Its similar to how you set Quantity with the Item Component. That way because its defaulted to False then nothing else should run that logic.
Allright lemme see if I can get this right and not blow the entire thing up lol
When you say property, I assume you mean variable?
Yes exactly, sorry I use them interchangably
Allright so I added the bools hooked them into branches, had them set respectedly to true/false, and it broke the entire thing. Player inventory nor chest inventory widgets no longer show, cant pick anything up etc.
Do you want to send over some screenshots?
You only want to skip the Save and Load it should still do the rest of the logic in the BP
I can make BP pastebins, sec and attach a couple screenshots of what its doing in the play editor
Okay so I would move the branch logic into the LoadInventory and SaveInventory functions so its the first thing you do in both of those and just exit the function if ShouldSave is false. Then you can put the main flow back to normal as even if you do call Load and Save on the Chest it shouldn’t do anything as ShouldSave will be False on the Chest.
I believe this is likely the cause of the issue but if not it would be good to see the Load function as well if you can
Exact same result
You have the bool set to True on the Player and False on the chest?
In theory at this point the Chest is essentially skipping the Save and Load functionality you added so it should be as it was previously.
It also now isnt saving even though Ive put everything back the way it was…
The error you showed above almost seems like the Game Instance no longer has a Save Game on there.
Oh good freaking grief, I ctrl+z’d one too many times and it broke the condition pin for the save function. Ok let me try the bool thing again I think I may have done it incorrectly before. I think my placement of the branches were good, but the variable needs to be in chest and bp_3rdpersoncharacter not the inventory system >.<
Its still doing it regardless of the branches or bools
Can you add a PrintString into the Save and Load functions and Print the name of the Owner after the branch where it would try to Save/Load. If you are seeing the Chest there then that Bool must not be set correctly
Ill have to come back to it, Ive gotta get some sleep before work xD Ill see if I can do it when I get home and see what it says.
No worries, Ill keep an eye on the thread when you get back to it!