UE5.6.1 How do i create a savegame blueprint that saves data and changes date and time of day?

Hello, I´ve made a Savegame blueprint for my game that saves the players position but i need it to also save the player inventory, storage inventory , player money , player model(i am yet to make a basic character creator) and changes the date and time of day ( i´m using sun position calculator plugin)

This is the blueprint in FirstPersonCharacter

And this is the blueprint in the Bed

The more i learn personally the less of this guys tutorials i recommend, but this one holds up

You’ll learn how they store different variables within the save class by watching this video
How to save

Okay the tutorial you referenced is the tutorial i made blueprint by, but i found diferent tutorial by the same creator that helped me save the player money but it didnt helped me with saving the inventory and storage (Which is an array structure)

Same exact process, the question is simply where and when do you pull the data,

You can goto your save class and add whatever variables you’d like

Perhaps im being vauge on accident, but ill upload pics tomorrow if necessary

Also i definitely learned alot in the wrong order myself, so no hate but save game can get cumbersome fast if your not sure of why your doing what ur doing

Okay i managed to get the player inventory to save but the storage is bit of a problem

Edit: Okay i figured it out it now works just by making the storage a soft object reference

Edit2: This doesnt work when you have multiple storages in a level

If your project will have more than a couple dozen objects that need to be saved, you should use serialization-based save system .
Guide
You don’t have to manually expand the save file. It’s all fully automated. Just add flag to what you want to save, and the system will do the rest.

P.S. Save a reference to an object != save the object itself :man_mage:

1 Like

Well the site is in russian but i figured it out myself anyway