PDA

View Full Version : saveVars and Limits?


ZeroTrack
09-29-2006, 06:09 PM
2 things first off I cannot see why this wouldn't save properly to the logs
function onCreated(){
oldGfx = new TStaticVar();
folders = {"levels/levels/*.nw","levels/levels/overworld/*.nw"};
for (folder: folders){
echo("Debug: Checking folder " @ folder);
temp.levels.loadfolder(folder, 0);
for (temp.found: temp.levels){
temp.l = findlevel(temp.found);
for(i: temp.l.npcs) oldGfx.(@temp.l) = i.image;
}
}
oldGfx.savevars("logs/oldgfx.txt", 0);
if (filesize("logs/oldgfx.txt") > 0) echo("Debug:Wrote to the log!!!");
else echo("Debug: Writing to the log failed");
}


Second... I've echoed out the results in db flags before and it seemed to only do a certain amount of levels and stop ... I am guess I exceeded the loop limiter more than likely I don't suppose there is any way around this besides starting a new loop?

EDIT: Come to think of it, could the loop maxing out effect the oldGfx var? As in setting it back to NULL ??

ZeroTrack
09-29-2006, 06:55 PM
Err I don't think i exceeded the loop limiter, i just echoed out the loop count and it was only like 854, i believe the loop limiter for this lang is 10,000? Not exactly sure. So any ideas?