Originally Posted by Kraeius
I checked each subject in Authoring Discussion category but couldn't find what I'm searching for. Can anyone tell me what are the conditions that make saved variables reset? Currently with each new upload, players lose their saved variables which is very annoying for them.
Probably I do the same thing each time, what can this be? Changing version in .txt or .lua? Adding a new variable? Changing name of a variable? something other?
|
When you change version of saved variables.
Lua Code:
local sv = ZO_SavedVars:New(savedVariableTable, version, [, namespace], defaults [, profile])
savedVariableTable - The string name of the saved variable table
version - The current version. If the saved data is a lower version it is destroyed and replaced with the defaults
namespace - An optional string namespace to separate other variables using the same table
defaults - A table describing the default saved variables
profile - An optional string to describe the profile, or "Default"
(copy&paste from the comment in zo_savedvars.lua)