This is in my mod and the mod does not use game.onsave -event at all.
Edit:
-I added "game.player.print(eventname)" in all script events.
-I made a new game and save it.
Print outputs:
OnInit
OnSave
OnLoad
And when I load the save I see the above output. No additional prints.
Now I'm wondering where does that "OnLoad" output comes. Did "game.onload" trigger or was the "Onload" output saved during "game.onsave"?
Edit2:
Also tried this in console:
Code: Select all
game.onsave(function() game.player.print("OnSave -console") end)
game.onload(function() game.player.print("OnLoad -console") end)
OnSave -console
OnLoad -console
OnSave
OnLoad
After loading the save, output is what it was. so game.onload does not trigger on load at all?