View Single Post
09/17/15, 10:52 AM   #35
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by ZOS_ChipHilseberg View Post
We have official word on the cause of this bug now. The lua virtual machine implementation that we use has a hard limit on the number of string literals that can appear in a single file. The work around for this would be to use multiple saved variable files if one gets too large. It's not optimal, but it's what we have in the short term. There is the potential to auto-split the tables across files in the future, but that won't be for a while and may not be a better solution after we investigate it.
Wow

I was wondering why my combat log still gets corrupted after ~3 evenings of PvP, and started to think it might be because I regularly force /quit without waiting those 10s, and thought that events might still be appending to the table while it's being written out.

Anyway, auto-splitting tables sounds like a daunting task. The "LuaON" that goes into saved variables is such a simple subset of Lua (no expressions, keys can only be string/number/boolean, values can also be tables, and that's it) that I think it'd be much simpler to write a custom parser instead of using the limited implementation. With re2c or another simple parser generator, you could probably get it working in a single coffee buff's time (provided you already know the generator).