Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-23-14, 12:55 PM   #1
Cybeloras
A Fallenroot Satyr
 
Cybeloras's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 28
Major issue with saved variables

Just discovered this after a user was reporting that some of his TellMeWhen icons were disappearing every single login/reload (http://wow.curseforge.com/addons/tel...a-few-bugs/#c3)

Something has gone wrong with the serializer for SavedVariables that is causing numbers that are totally able to be represented as integers to get turned into floats WITH ERROR.

See this shot of section of the SavedVariables that the profile is based on: http://i.imgur.com/Ts7WqCp.png

Icons 28 and 29 are the ones that get lost every single reload. There are also duplicates in there - one is the icon data that used to be there (which persisted from previous reload with a key of 28.00000000000001) and the other is the data that was corrupted to have a key of 28.00000000000001.

I will do some more testing, but so far this appears to only happen whenever an array-style table has gaps in it (as this one does at 23 and 24) which forces the values after the gap to get written with explicit keys (as it always has).

PS: If you're here from the report I submitted in-game, thanks for checking this out! Shameless plea: please also bring back the cost and powerType returns from GetSpellInfo() =)

Last edited by Cybeloras : 07-23-14 at 01:07 PM.
 
 

WoWInterface » Site Forums » Archived Beta Forums » WoD Beta archived threads » Major issue with saved variables


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off