Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   saveVars creating invisible files? (https://forums.graalonline.com/forums/showthread.php?t=134266624)

Tricxta 06-11-2012 06:19 AM

saveVars creating invisible files?
 
I looked around and I couldn't find anything explaining this..

This is the code i'm using:
PHP Code:

      this.filePath "logs/Projects/workboard/";  

      
temp.lines = new TStaticVar();
      
temp.lines.variable "Hello";
      
temp.lines.secondvariable "World";
      
temp.lines.saveVars(this.filePath@"testProject.txt"0);
            
      
temp.loadVariables.loadvars(this.filePath@"testProject.txt");
      echo(
"Variables:"@temp.loadVariables.secondvariable); 

The problem is I can't read and write to visible files in the folder, but I can create and read from invisible files in the folder. Does anyone have any clue why this is the case?

Thanks

Admins 06-11-2012 01:30 PM

Probably reached the limit of logs per hour?

BlueMelon 06-11-2012 03:16 PM

Quote:

Originally Posted by Stefan (Post 1696989)
Probably reached the limit of logs per hour?

What is the limit of logs per hour?

Tricxta 06-17-2012 06:47 AM

The situation still hasn't progressed and is still happening even after i've moved to a different server and a totally different file path with different functions:

Here's the current code I have:
PHP Code:

      this.filePath "levels/world/staff_tricxta/";



      
temp.fileP this.filePath@params[1];
      
temp.loadVariables.loadlines(fileP);  
      
      
temp.loadVariables.add("Testttinnnnggg!!!!");          
      
      
temp.loadVariables.savelines(fileP,0);
      
      echo(
fileP@":"@loadVariables);
      echo(
"file size:" filesize(fileP)); 

and here's what's happening when I echo the results and then search for the file:
Quote:

levels/world/staff_tricxta/testProject.txt:Testttinnnnggg!!!!,Testttinnnnggg! !!!,Testttinnnnggg!!!!,Testttinnnnggg!!!!,Testttin nnnggg!!!!
file size:95
world/staff_tricxta/testProject.txt: not downloadable, 27 byte, 2012-06-17 04:53:51
If the log limit is reached for whatever reason how can I go about fixing it?

scriptless 07-07-2012 06:14 PM

Quote:

Originally Posted by BlueMelon (Post 1696994)
What is the limit of logs per hour?

Wondering the same. I wasn't aware there was a limit.

cbk1994 07-07-2012 10:52 PM

You can't write via saveVars or saveLines to the logs folder, regardless of the npcserver's folder rights. A few folders are restricted like this: logs, accounts, scripts, weapons, npcs.

Tricxta 07-07-2012 11:54 PM

Ahh alright. Thanks for letting me know(no sarcasm intended).


All times are GMT +2. The time now is 01:59 AM.

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