Saving
Things to know
- Skill values are saved with the player’s save. They go in a file called
obenseuer.moddingframework.customskills.jsonin the save’s mods folder, with one entry for each mod and skill: the mod id, the skill id and the value. - Every save writes every entry, including skills from mods that are not installed now. That way a player can remove a mod and put it back without losing progress.
- A saved value waits until the skill is registered again. On load, every valid entry is kept as it is. A value is only used for a registered skill, so an entry waits until its mod registers the skill again, and then
AddorSetchanges that same entry. If a file holds two entries for one skill, the last one is kept. - The values are emptied when the player goes back to the main menu. (It happens when the framework resets its save data as the game loads the main menu.)