this is the same mistake I made. The table variables you associate in the toc as saved variables cannot be local variables in the lua file but instead classed as global.
One of the first lines in any of my WTF data file addons is the following:
MySavedVars = MySavedVars or {}
This way it will use whatever has been previously stored or create a new table. Repeat for whatever tables you have within that. Do the same for variables so that you have a set of defaults to use if it cannot find any data values.
Then throughout the code you can use the various values to set and get as appropriate.
So try removing the local part in front of GTgameArray and similarly off of the others.
|