I’m using the quest system from this tutorial
Can someone explain to me how to make a Save/Load (SaveGameInstance) for this Quest System?
Thank you
I’m using the quest system from this tutorial
Can someone explain to me how to make a Save/Load (SaveGameInstance) for this Quest System?
Thank you
In video 3, he adds a variable to the player char called Quests. To save it, just create a matching var in your save class and set it using the one on player in the save function. To reload it, you’d set the one on player from the save instead of getting all the save actors on begin play. So, on begin play you might have a branch to check if save exists and set the Quests var from it if true, and if false use the get actors of class method like in the tutorial.
Yea, something like that, though I’d probably call the var in bp_savegame something like SavedQuests just to avoid confusion, but as long as the var is of the same type it should be fine. Without seeing the parts about loading the save slot and getting the bp_savegame instance, is hard to troubleshoot tho. Maybe try adding some extra string variable to the save game class, then try setting, loading, and printstring-ing it to see if it works. Could just be something funny like begin play firing the load too soon before map has loaded quest objects or something.