you can have multiple saves but i think they’d need to be in a different slot.
So I’m assuming this mean I can’t save player data and level data at the same time, so if a player loads a slot, will only one load unless I add them to the same save?
So because of this, I’ve tried to create a savegame object that will combine the other objects when the save button is pressed.
This is what I have so far, but I’m not sure how to combine the save and load inventory functions with that savegame. I tried moving things around to be a bit more cohesive, I hope I succeeded and didn’t make more of a mess. I replaced all references to player data and level data to the saveData_MEGA and moved all their variables to it as well.
Here are all my blueprints that have underwent some big changes (many others have had variables replaced, but because they were ALL replaced, they should work the same I believe)
Parent Item: Parent Item - Event Begin Play posted by anonymous | blueprintUE | PasteBin For Unreal Engine
Save All Data (inside instance): Save All Data - Game Instance Function posted by anonymous | blueprintUE | PasteBin For Unreal Engine
Game Instance: Game Instance Event - Init posted by anonymous | blueprintUE | PasteBin For Unreal Engine
Inventory System Component: Inventory System Event Graph posted by anonymous | blueprintUE | PasteBin For Unreal Engine
Save Inventory: Save Inventory posted by anonymous | blueprintUE | PasteBin For Unreal Engine
(All made in 5.4)
{and the game mode doesn’t have anything inside of it anymore. My Load Inventory function I moved to the game instance, and I removed the containers added part because I don’t believe I’ll be needing that)
Sorry, I still am not sure how to make sure when you load the the world is ready. I’ve tried but there isn’t much information I can find on how to use the ‘is level loaded’ node, assuming that’s what you’re speaking of. I removed it from the BP for now.
I tried to remove everything unnecessary and the autosave functions (only saving from the save button) though I’m unsure if I did so efficiently.
So the current state of the game: It doesn’t seem to be saving anything, but my items are back. Everything is working other than the saving, like my ability to pick up, move items in inventory, talk to characters, everything it’s meant to do… without saving. My Project > Saved > SaveGames folder has two SAV files, MainMenuMAP_Data.sav which is what I’m meant to have, I believe, nothing is actually saved to them, though.
I’m wondering- I’m not sure how the loading things up work. Is it something that ACTUALLY saves the state of the game, or does it just save the data like variable values, and you have to actually set everything to the saved variables in order for it to show up when you load the game again?
Hopefully this was cohesive enough for understanding.