Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2006, 06:09 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
saveVars and Limits?

2 things first off I cannot see why this wouldn't save properly to the logs
PHP Code:
function onCreated(){
  
oldGfx = new TStaticVar();
  
folders = {"levels/levels/*.nw","levels/levels/overworld/*.nw"};
  for (
folderfolders){
    echo(
"Debug: Checking folder " folder);
    
temp.levels.loadfolder(folder0);
    for (
temp.foundtemp.levels){
      
temp.findlevel(temp.found);
      for(
itemp.l.npcsoldGfx.(@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 ??
__________________

Reply With Quote
  #2  
Old 09-29-2006, 06:55 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
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?
__________________

Reply With Quote
Reply


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

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

Forum Jump


All times are GMT +2. The time now is 10:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.