View Single Post
05/15/14, 06:17 AM   #1
Edda
 
Edda's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
Saved var size always 0

Hi,

Facing a strange issue here but first the code :

Lua Code:
  1. RJ.Memory = {}
  2. RJ.Memory = ZO_SavedVars:New("RJMem", math.floor(RJ.varVersion), "Memory", RJ.Memory, nil);
  3.  
  4. --add some stuff to RJ.Memory
  5.  
  6. d(#RJ.Memory); --> ALWAYS 0 !!

RJ.Memory size is always 0 even tho I add stuff to it. And the savedVars file correctly displays saved data, and everything is working correctly but not the var size check.

What I am trying to do is to display the RJ.Memory content (if size > 0) but it seems RJ.Memory is hooked to the top of the the saved var tree rather than the "Memory" namespace (notice I used a "Memory" namespace because I use another "Options" namespace in my saved vars).

Full code can be found here : http://www.esoui.com/downloads/info4...emberJunk.html

What I am obviously trying to loop thru the "Memory" table.
  Reply With Quote