Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » Developer Discussions » Lua/XML Help » Saved var size always 0


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off