Originally Posted by Slakah
The only difference is that in the first method PocketPlotDB is local, so I'm guessing your "PocketPlotDB is nil" error is due to variable scope. i.e.
|
I listed PocketPlotDB as a local at the top of the file, so scope was not it. As I mentioned, it did work after adding
Code:
PocketPlotDB = PocketPlotDB or defaults
(and removed the "or defaults" from the metatable assignment) *except* for the color table.
Anyway, the inpairs solution works for me.
Thanks.