Mandraval
12-18-2013, 08:08 AM
Perhaps someone can explain to me, what I am doing wrong...
Loading data worked right fine for some time, but since the amount of data got quite huge, I tried to split these data to various files on disc.
Loading works quite fine, except it takes ages (and sometimes leads to server-disconnects for too long loading time).
So I tried to split the loading between startup and runtime.
If I load all data at startup, there is no difference, but if I try to load some data during runtime, the load routine finishes, with no data returned.
dataload=VindarPatch.PatchDataLoad(Turbine.DataSco pe.Server,"filename",load_done)
If this code is executed during load, dataload contains the requested data.
Perhaps I'm getting this wrong, but I think, 'load_done' should be called when the data was loaded, and if I try to access the data in the function load_done, it is always >nil<
function load_done()
if(dataload~=nil) then
dataload should be known in both functions
Any help on getting the data loaded?
Loading data worked right fine for some time, but since the amount of data got quite huge, I tried to split these data to various files on disc.
Loading works quite fine, except it takes ages (and sometimes leads to server-disconnects for too long loading time).
So I tried to split the loading between startup and runtime.
If I load all data at startup, there is no difference, but if I try to load some data during runtime, the load routine finishes, with no data returned.
dataload=VindarPatch.PatchDataLoad(Turbine.DataSco pe.Server,"filename",load_done)
If this code is executed during load, dataload contains the requested data.
Perhaps I'm getting this wrong, but I think, 'load_done' should be called when the data was loaded, and if I try to access the data in the function load_done, it is always >nil<
function load_done()
if(dataload~=nil) then
dataload should be known in both functions
Any help on getting the data loaded?