Quantcast
Download
(28 Kb)
Download
Updated: 05/25/20 10:45 PM
Pictures
File Info
Compatibility:
Greymoor (6.0.5)
Harrowstorm (5.3.4)
Updated:05/25/20 10:45 PM
Created:10/03/18 10:28 PM
Monthly downloads:35,816
Total downloads:290,535
Favorites:291
MD5:
6.0.5
LibSavedVars  Popular! (More than 5000 hits)
Version: 6.0.0
by: silvereyes [More]
This library is intended to standardize and extend the built-in saved vars functionality of ESO.

See https://github.com/silvereyes333/LibSavedVars for full usage instructions with examples.
Version 6.0.0
- Update 26 Greymoor compatibility
- New Feature: Defaults Trimming!
+ Reduces the size of saved vars on disk and during load screens.
+ Note, this option is off by default and must be enabled with the new EnableDefaultsTrimming() method, since it can lead to a short delay during logoff and may not provide any value, depending on your saved vars.
- Deprecated the following old methods
+ LibSavedVars:New()
+ LibSavedVars:Init()
+ LibSavedVars:Get(addon, key)
+ LibSavedVars:GetLibAddonMenuSetting(addon, default)
+ LibSavedVars:Set(addon, key, value)
+ LSV_Data:New()
+ LSV_Data:Migrate(legacySavedVars, newSavedVars, beforeCallback, addon, ...)

Version 5.0.4
- Update 25 Harrowstorm compatibility
- This version is compatible with both PTS (Harrowstorm) and live (Dragonhold)
- Clicking the Reset to Default button will now set default values within the current scope and leave the "account-wide settings" toggle alone

Version 5.0.3
- Fix bug with LSV_Data functions not working when account / character toggle not enabled.

Version 5.0.2
- Fix bug with saved vars not being loaded when a character or account toggle isn't used

Version 5.0.1
- Update 24 Dragonhold API bump

Version 5.0.0
- Update 23 Scalebreaker compatibility. This version is compatible with both Update 22 Elsweyr and Update 23.
- Removed LibStub support. Simply refer to the library by the LibSavedVars global now.
- Improved German tooltip for the "Account-Wide" LibAddonMenu checkbox (thanks, Baertram!)

Version 4.2.2
- Fix for character-scope settings not receiving new default saved vars values when they are only specified at the account-level.

Version 4.2.1
- Fix for error being thrown when LibStub is not installed

Version 4.2.0
- Remove LibStub dependency
- Add new global LibSavedVars for addon authors to use instead of LibStub
- Add ESO - Japanese Localization addon compatibility

Version 4.1.0
- API bump for Update 22 Elsweyr
- Marked as library in manifest with new ## IsLibrary flag.

Version 4.0.1
- Fix load order problem with older versions

Version 4.0.0

- Added saved vars version support that does not wipe all settings during upgrade. See classes/LSV_Data.lua:
* RemoveSettings()
* RenameSettings()
* RenameSettingsAndInvert()
* Version()

- Changed constructor method names and parameters to match ZO_SavedVars exactly. See LibSavedVars.lua:
* NewAccountWide()
* NewCharacterSettings() / NewCharacterIdSettings()

- Added new chainable methods for adding account or character-specific saved vars toggle. See classes/LSV_Data.lua:
* AddAccountWideToggle()
* AddCharacterSettingsToggle()

- Added several new helper methods:
* GetAccountsAndProfiles(savedVarName): Gets a list of tables of the form { account = "@displayName", profile = "NA Megaserver" } for all accounts within the given saved var table.
* GetInfo(savedVars): Gets table containing information about the given saved vars, such as addon name, constructor parameters, raw saved vars table, etc.

- Migration no longer requires creating a ZO_SavedVars instance or leaves any data behind in the legacy saved vars tables. See LibSavedVars.lua:
* MigrateAccountWide()
* MigrateCharacterId()
* MigrateCharacterName()
* MigrateCharacterNameToId()
* MigrateToMegaserverProfiles()

- Deprecated the following methods in LibSavedVars.lua:
* New(). See NewAccountWide() and NewCharacterSettings()
* GetClass(). You can now access classes directly by name (e.g. LSV_Data, LSV_SavedVarsManager)

- Deprecated the following methods in classes\LSV_Data.lua (formerly just Data.lua):
* New(). See NewAccountWide and NewCharacterSettings().
* Migrate(). See MigrateFrom().

- Moved Lua 5.2 pairs(), ipairs() and next() overrides into a separate library, LibLua5.2, to avoid the performance penalty for non-developers or anyone else who doesn't care about iterating saved vars.

- API bump for Update 21 Wrathstone

Version 3.0

- New methods New(), NewAccountWide() and NewCharacterIdSettings() return a data object that can be used as a 1:1 replacement for ZO_SavedVars instances
- New helper method GetRawDataTable() returns the underlying data table for a ZO_SavedVars instance, since ZO_SavedVars:New() just returns an interface, not the data itself.
- Added usage documentation / comments to all public methods in code.

- Data class features:
* data["key"] and data.key operator support
* data["key"] = value and data.key = value operator support
* next(), pairs() and ipairs() support for iterating saved vars
* GetAccountSavedVarsActive() and SetAccountSavedVarsActive(value) methods for toggling the active scope between account and character-specific settings
* Migrate(legacySavedVars, beforeCallback, addon, ...) method to call directly and control when migration is executed.
* GetActiveSavedVars() method to return a reference to the active ZO_SavedVars instance for the currently logged-in character
* GetLength() returns the # length of the data for the active ZO_SavedVars instance for the currently logged-in character
* GetLibAddonMenuAccountCheckbox() replaces the old library-wide method that took an "addon" parameter.

- DEPRECATED METHODS:
* Get() Use data["key"] or data.key of the new data class instead.
* Set(value) Use data["key"] = value or data.key = value of the new data class instead.
* Init() Legacy var migration moved to data class. Use data:Migrate() of the new data class and New(), NewAccountWide() and NewCharacterIdSettings() instead.
* GetLibAddonMenuSetting(addon) Use data:GetLibAddonMenuSetting() of the new data class instead.


Version 2
- Fix bug where account wide settings overwrite character settings when toggling in LAM2

Version 1
- Initial release
Optional Files (0)


Archived Files (14)
File Name
Version
Size
Uploader
Date
5.0.4
26kB
silvereyes
02/16/20 09:58 PM
5.0.3
26kB
silvereyes
11/11/19 10:11 PM
5.0.2
26kB
silvereyes
11/11/19 04:07 PM
5.0.1
26kB
silvereyes
10/21/19 11:56 AM
5.0.0
26kB
silvereyes
08/01/19 05:12 PM
4.2.2
26kB
silvereyes
05/27/19 02:14 PM
4.2.1
26kB
silvereyes
05/25/19 09:35 AM
4.2.0
26kB
silvereyes
05/17/19 08:33 PM
4.1.0
25kB
silvereyes
04/15/19 09:50 PM
4.0.1
25kB
silvereyes
01/28/19 12:59 PM
4.0.0
25kB
silvereyes
01/27/19 02:07 AM
3.0
10kB
silvereyes
10/07/18 11:28 PM
2
5kB
silvereyes
10/04/18 10:27 AM
0.1.0
5kB
silvereyes
10/03/18 10:28 PM


There have been no comments posted to this file.
Be the first to add one.



Category Jump: