Quantcast LoTROInterface - View Single Post - Loading data issues
View Single Post
  #2  
Unread 12-18-2013, 08:33 AM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 245
The underlying Turbine.PluginData.Load functions differently when the plugin is loading and during runtime. When the plugin loads, the data is returned as the result of the function. During runtime, however, the data is not made available immediately so the return value of the function is simply "nil". Instead, the data is passed to the callback function as the first parameter of the callback. For the callback, you should be using something like:
Code:
function load_done(dataload)
-- when the function is called, dataload now has the table of data that is returned
 
end
Reply With Quote