Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-11-2012, 06:19 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
saveVars creating invisible files?

I looked around and I couldn't find anything explaining this..

This is the code i'm using:
Graal Script 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
Reply With Quote
  #2  
Old 06-11-2012, 01:30 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Probably reached the limit of logs per hour?
Reply With Quote
  #3  
Old 06-11-2012, 03:16 PM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
Quote:
Originally Posted by Admins View Post
Probably reached the limit of logs per hour?
What is the limit of logs per hour?
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote
  #4  
Old 06-17-2012, 06:47 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
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:
Graal Script 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?
Reply With Quote
  #5  
Old 07-07-2012, 06:14 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by BlueMelon View Post
What is the limit of logs per hour?
Wondering the same. I wasn't aware there was a limit.
Reply With Quote
  #6  
Old 07-07-2012, 10:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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.
__________________
Reply With Quote
  #7  
Old 07-07-2012, 11:54 PM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Ahh alright. Thanks for letting me know(no sarcasm intended).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:59 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.