Maintenance for the week of December 30:
• PC/Mac: No maintenance – December 30

Long strings in saved variables being replaced with invalid LUA.

Flamage
Flamage
Soul Shriven
FYI to other addon developers, it appears that ZOS has introduced a limit on the maximum size of strings stored in saved variables. If your string is longer than (guessing, not verified) 2048 characters, it will be replaced with something like
["showTitle"] = true,
["body"] = nil -- invalid string value,
["medium"] = 0,
Unfortunately, because the comma is also commented, if there is another table value on the following line, it will be missing a preceding comma and the parser will be unable to read your saved variables, and so on the next login, no variables will be loaded at all, and at logout, the entire file will be overwritten with an empty one.

To top it all off, (and this is becoming a rant now) because of the simultaneous issue with the account name being removed from saved variables, an addon can't even fix its own strings as they are inaccessible unless the user manually edits the file, so the majority of users will be unable to recover their saved variables at all if they had long strings before the patch.
  • Dominoid
    Dominoid
    ✭✭✭✭✭
    ✭✭
    I think this may be because saved text is now within double quotes instead of double brackets. They could have limited it as well.

    Before - SOME TEXT
    Now - "SOME TEXT"
    Edited by Dominoid on June 25, 2014 3:18PM
Sign In or Register to comment.