I have been trying to save the changes in a combo box. I have made use of the pure function here. I am able to see the changes while saving but when loaded again the last value replaces all other values.
Following are the blueprints
Thanks in advance!!
I see loading, but no saving?
Right, you’re creating the save game every time. You only need to do that once, from then on, you just update it. Here’s my savegame 101
Thankyou for your response, I tried as per your suggestion.
but I am still unable to load it with the changes made.
And I’m trying to save the log of changes made in the metadata properties ( using combo box), hence have multiple objects and will need different save slots.
Get one slot working before you try multiple slots.
You don’t have to use multiple slots, you can just have arrays or structures in one slot etc.
The basic premise is
-
First thing, regardless of what you’re doing, check if the SG is there. If not, make it and save it. This is not part of the saving logic. This just needs to happen, otherwise the rest of it makes no sense.
-
Whenever you want to write, read first, update and write back.
-
Reading is just reading.
Thankyou for your constructive solution. I tried using the logic you mentioned and I also do have a save game.
I am able to save , but have 2 issues.
- While loading only the first two options in the combo box are loaded later made changes aren’t loaded.
Only hvac12 is loaded whereas further made changes haven’t - The same combo box options are taken by other properties.
Following are the blueprints, any corrections in it would greatly help.
Thankyou for the support,
I am able to save but unable to load, any corrections in the blueprint would greatly help.
Can you show the whole of the first graph? What is calling this?
So, the save button should only create the save game if it is not there
yes.
presently as of now, it is created when clicked on save if it is not there.
Sorry. I can’t work with ideas of code
Can you show
-
Save game creation
-
Load
-
Save
Thanks.
I have made use of only blueprints in my project.
This is the save game that I have used.
This is where the save game is created if not present.
This is loading.
This is for making changes and saving.
I have used the logic mentioned by you for writing( to read first, update and write again)
When you create the save game, this display name comes swooping in from nowhere
Have you checked you’re getting the save game names you expect.
IE, have you looked in project-name/saved/savegames?
yes I have checked the save games.
I get names as expected, each sav file is created for each equipment ( in its name)as per my requirement.
Ok, when you’re loading, does this variable have the correct value?
You can check with a print string.
yes it does have proper value.
I have checked with print string
It is the name of equipment as per requirement.
Ok, very good
Now I’m looking at this part
Why did you not use keys or values
Is this single ‘key’ varibale what you expect it to be?
I have not used keys or values, as I need only some properties of metadata to be displayed( not all).
And the key variable corresponds to the required property and values are displayed in the editable text box.