Jump to content

What are the best practices when updating your mod to preserve savegame?


leron9999

Recommended Posts

Hi guys,

 

I just wanted to ask what are some best practices when updating a mod, specifically one that uses a script. Say I've got script A on first release. But on my next release, I want to change up some stuff inside script A for both new features and bug fixes. What are some things that I should avoid changing to keep the savegames of the users stable? Do I avoid removing a registerForUpdate()? Am I free to change up functions? Any tips would be great.

Link to comment
Share on other sites

You avoid using RegisterForUpdate() in any circumstance as it is incredibly unstable. Instead you use RegisterForSingleUpdate().

 

For updates involving scripts, you usually wanna avoid changing the values associated with variables and properties, but there's a way to change those cleanly by making an "update quest" with in the mod with a script that force changes to them.

 

See this: for an example - http://forums.bethsoft.com/topic/1484684-updating-scripted-mods-and-papyrus-logs/?do=findComment&comment=23270450

Edited by Terra Nova
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...