Pre and Post SaveGame.Save() Events
ThatNorthernMonkey opened this issue ยท 5 comments
To get around the game crashing on save (XML serialization problem) the only real option is to serialise and delete all your objects before saving, and deserialise / recreate your objects after saving. Could you please implement these events so we have something to hook into? Thanks!
Yes, the serialization issue has been a major impediment for me. And on another relevant topic, any chance we could get an event that triggers when the player goes to sleep at night? Currently I have to abuse MenuEvents.MenuChanged in order to determine this. Ty in advance.
@AdvizeGH That's correct. Unfortunately SMAPI doesn't have any easy way of hooking into game functions, so this feature might need to wait until the rewrite which does include hooking.
I'm fairly positive that event happens after the night is over and a new day begins.