Closed kuertee closed 1 year ago
Nevermind. It looks like that test fails because it occurs before the "md.Userdata.Reloaded" event. When the data is READ on "md.Userdata.Reloaded", it works.
Thanks for the update on what was happening. I was a bit busy with work and was slow to get around to this issue.
No worries, all good!
Hey SirNukes, I seem to be having trouble saving persistent data across save files using md.Userdata.Write.
Attached is a test mod that only does these two things:
Here's the script log on the first install of the mod on either a new game or a loaded game. This is as expected.
But regardless of whether I start a new game or load a different game, $data_persistent returns the default "table[]" - meaning that the previous data that was saved didn't persist.
Mind having a quick look at this? kuertee_test_sn_userdata.zip