Saving for Playmaker
Posted: Mon May 26, 2025 9:48 pm
Hello,
I'm currently working through the save features from Dialogue and Quest. I also use Top Down Engine with Inventory, as well as Playmaker pretty heavily. I downloaded the Menu Framework (which I've used before and love as a starting point).
Anyway, all that aside, I followed all the integration tutorials and, as of right now, I think it's all mostly working, but I haven't really tried to break it for bugs yet. One thing that isn't working as planned, however, is Playmaker. I've got that integration in, including the Global Variable Saver, so that's all working. But I noticed that loading a save state doesn't seem to load where an FSM was at the point of the save, nor does it reset the FSM. If I save a game, then load it from a different point, the FSM just tries to move to that state from it's current location in the FSM, wherever it's at.
I've got my FSMs set up pretty well when moving through scenes, so I know it's working when they're reset. Is there anyway to set up the save functions to reset FSMs when loading in or loading into the exact state at the point of save? Just for context, I'm mainly running into issues with a day/night cycle I created. I can save at night, reload the game during the day, then load that save, but the FSM gets stuck somewhere before the point of save (thus, lighting isn't loaded correctly, etc).
Hope that makes sense, haha.
I'm currently working through the save features from Dialogue and Quest. I also use Top Down Engine with Inventory, as well as Playmaker pretty heavily. I downloaded the Menu Framework (which I've used before and love as a starting point).
Anyway, all that aside, I followed all the integration tutorials and, as of right now, I think it's all mostly working, but I haven't really tried to break it for bugs yet. One thing that isn't working as planned, however, is Playmaker. I've got that integration in, including the Global Variable Saver, so that's all working. But I noticed that loading a save state doesn't seem to load where an FSM was at the point of the save, nor does it reset the FSM. If I save a game, then load it from a different point, the FSM just tries to move to that state from it's current location in the FSM, wherever it's at.
I've got my FSMs set up pretty well when moving through scenes, so I know it's working when they're reset. Is there anyway to set up the save functions to reset FSMs when loading in or loading into the exact state at the point of save? Just for context, I'm mainly running into issues with a day/night cycle I created. I can save at night, reload the game during the day, then load that save, but the FSM gets stuck somewhere before the point of save (thus, lighting isn't loaded correctly, etc).
Hope that makes sense, haha.