Hello,
In one of the project I have, I got multiple saved vars.
There declared as is :
Lua Code:
## SavedVariables: POSTMAIL_DEAMON DATAMINED_DATA DATAMINED_BOOKS DUMPING_DEAMON eideticReverse eideticHomonym
DATAMINED_DATA DATAMINED_BOOKS are a bit linked together.
DATAMINED_DATA is built by a function, no problem.
Then I got another function, which does this :
Lua Code:
DATAMINED_BOOKS = DATAMINED_DATA
then DATAMINED_BOOKS is altered several times
When saving, changes are repercuted in both variables.
This first issue is easy to handle, because both variables (two arrays of hundreds of thousands of lines) are equal..
Another issue is with
eideticReverse eideticHomonym
eideticReverse is linked to a slash command, the array is built.
eideticHomonym is linked to a another slash command, the array is built.
eideticReverse &
eideticHomonym are in the same Lua file but each one got its own function they don't have anything in relation, except being in the same Lua file and the metafile.
When I run the function which build
eideticHomonym, 1 column is written in
eideticReverse variable and so the code is totally faked.
the possibilities for me are to change the metafile (remove one of the 2 vars) before executing code in order to avoid this, Or merge the whole data into one super array, like ZO_Ingame does.
If its a known bug, or something.
The var POSTMAIL_DAEMON is built from datamining since months, and I wouldn't lost it due to this issue ...
PS: I don't use the ZO_SavedVars object.