Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Feature request (https://forums.graalonline.com/forums/forumdisplay.php?f=194)
-   -   'echo' as a log-able function (https://forums.graalonline.com/forums/showthread.php?t=134267946)

BlueMelon 02-27-2013 09:14 PM

'echo' as a log-able function
 
Can the function 'echo' be placed in the /listscriptlogfunctions as a log-able function? As a result of poor organization, there's an annoying echo of 1 or 0 that I can't seem to trace. :cry: Since era has alot of scripts using echo, it figured it would be simple and nice thing to add since sendtorc and sendtonc are already log-able functions. Ofcourse this would only be used to see where this anoying echo is coming from, then disabled afterwards when there is no use for it.

Fidel Castro 02-27-2013 09:16 PM

I support you

cbk1994 02-27-2013 10:43 PM

+1, tracking down this kind of stuff is practically impossible.

MysticalDragon 02-28-2013 12:45 AM

+2 I been trying to trace this echo down for weeks -_-

BlueMelon 03-01-2013 11:09 PM

Nice support
Would it be hard to implement stefan?

Hezzy002 03-02-2013 03:27 AM

yes very hard for stefan he is special

Tim_Rocks 03-03-2013 01:55 AM

Quote:

Originally Posted by MysticalDragon (Post 1714418)
+2 I been trying to trace this echo down for weeks -_-

I was bored yesterday, downloaded every level, script, weapon and traced down every echo in a text file, I may or may not have gotten rid of it. Only time will tell.

BlueMelon 03-03-2013 04:02 AM

Ive done the same thing @Tim, I've rounded it down to 200-250 echos, meaning un-commented, which I have looked, but can't seem to find anything that matches. This is why I created this thread, I shouldn't have needed to download every script to search for an echo...

Tim_Rocks 03-03-2013 07:28 AM

Oh, I 100% agree with you. Have you noticed the echo happening lately?

BlueMelon 03-03-2013 06:12 PM

I won't be online much during the week, so I won't be able to tell you

BlueMelon 04-10-2013 10:45 PM

Update: Stefan said its on his todo list.

Also big this are coming apparently. :O

scriptless 04-10-2013 11:59 PM

Quote:

Originally Posted by BlueMelon (Post 1716014)
Update: Stefan said its on his todo list.

Also big this are coming apparently. :O

Wouldn't it be just as easy, and maybe offer more flexibility, if you made your own function to do echo's and make it also log (if conditions are true). Meaning certain things could log while others don't necessarily have to rather then just logging it all?

Admins 04-11-2013 03:46 AM

The problem here is that some scripter have added echos in some level or class and display some annoying output on server start, a simple scriptfunctionlog thing could help a lot for finding that.

BlueMelon 04-11-2013 11:47 AM

Quote:

Originally Posted by scriptless (Post 1716017)
Wouldn't it be just as easy, and maybe offer more flexibility, if you made your own function to do echo's and make it also log (if conditions are true). Meaning certain things could log while others don't necessarily have to rather then just logging it all?

This would not be to use 24/7 for every echo, it would be purely for debugging.
Lets say someone is echo'ing a boolean from a random test script in a random level then that staff member forgets it and decides to go on vacation for a week. That leaves us with one annoying echo we cannot find.

Tim_Rocks 04-11-2013 04:57 PM

As Blue said, we'd only be using it if we actually needed it. Could be enabled/disabled through serverops.

Why not something like this?

PHP Code:

function decho(temp.datatemp.npctemp.loc) {
  echo(
params);




All times are GMT +2. The time now is 11:26 PM.

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