Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-06-2007, 10:39 PM
pig132 pig132 is offline
professional troll
Join Date: May 2006
Posts: 260
pig132 will become famous soon enough
savelog

This is just a test script i just made up, im wondering how to accurately use savelog. I have this but doesnt seem to do anything..
PHP Code:
//#CLIENTSIDE
function onPlayerchats() {
  if (
player.chat "test") {
  
savelog2 testlog.txt,test!;
  }

Reply With Quote
  #2  
Old 01-06-2007, 10:51 PM
Devenio Devenio is offline
Scripter
Devenio's Avatar
Join Date: Dec 2006
Posts: 28
Devenio is on a distinguished road
Quote:
Originally Posted by pig132 View Post
This is just a test script i just made up, im wondering how to accurately use savelog. I have this but doesnt seem to do anything..
PHP Code:
//#CLIENTSIDE
function onPlayerchats() {
  if (
player.chat "test") {
  
savelog2 testlog.txt,test!;
  }

first off, savelog2("testlog.txt","test!");.
next it should save the folder called logs on RC (Remote_Control).

if you dont see logs folder than have someone add, rw logs/*
to your folders access.
__________________

"Two things are infinite: the universe and human stupidity, and I'm not sure about the the universe.." -Einstein


Reply With Quote
  #3  
Old 01-06-2007, 10:59 PM
pig132 pig132 is offline
professional troll
Join Date: May 2006
Posts: 260
pig132 will become famous soon enough
Ah, okay thanks.
Reply With Quote
  #4  
Old 01-06-2007, 11:25 PM
Devenio Devenio is offline
Scripter
Devenio's Avatar
Join Date: Dec 2006
Posts: 28
Devenio is on a distinguished road
np
__________________

"Two things are infinite: the universe and human stupidity, and I'm not sure about the the universe.." -Einstein


Reply With Quote
  #5  
Old 01-06-2007, 11:36 PM
Devenio Devenio is offline
Scripter
Devenio's Avatar
Join Date: Dec 2006
Posts: 28
Devenio is on a distinguished road
also you can only do it server-side
__________________

"Two things are infinite: the universe and human stupidity, and I'm not sure about the the universe.." -Einstein


Reply With Quote
  #6  
Old 01-07-2007, 12:00 AM
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
savelog2(filename,text) only exists on serverside. On clientside you only have savelog(text) which is the same as echo(text)
Reply With Quote
  #7  
Old 01-07-2007, 12:59 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Stefan View Post
savelog2(filename,text) only exists on serverside. On clientside you only have savelog(text) which is the same as echo(text)
Hmm, when doing it clientside ( savelog() ), is it saved anywhere?
Or is it equal to echo()?
__________________
Reply With Quote
  #8  
Old 01-07-2007, 01:11 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Chompy View Post
Hmm, when doing it clientside ( savelog() ), is it saved anywhere?
Or is it equal to echo()?

Same thing as an echo.


Do savelog("Test"); and open up your RPG Message Log to be greeted with the word "Test".
Reply With Quote
  #9  
Old 01-07-2007, 01:53 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Chompy View Post
Hmm, when doing it clientside ( savelog() ), is it saved anywhere?
Or is it equal to echo()?
It might be saved into graal4console.log; however, that file is cleared when you open Graal again so it would only be temporary.
Reply With Quote
  #10  
Old 01-07-2007, 04:52 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I thought it would have been saved in the scriptfiles folder.
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:37 AM.


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