Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Announcements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-28-2012, 03:37 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
Exclamation NPCServer: shows callstack on error

The npcserver has been updated on all machines (need to be manually restarted):
- shows a small callstack (max 5 entries) when an endless loop has been detected or the callstack has been overrun (endless recursion)
- new script function getCallStackInfo() which returns a string which contains basically the same information: the call stack and script line numbers; this is basically a simpler version of the getCallStack() things; you can use this to easily show who has called your script functions:
PHP Code:
echo("I am " getCallStackInfo()); 
Reply With Quote
  #2  
Old 06-28-2012, 10:07 PM
Matt Matt is offline
iZone Administrator
Matt's Avatar
Join Date: Apr 2005
Location: United States
Posts: 2,690
Matt is a jewel in the roughMatt is a jewel in the rough
thumbs up
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center
Reply With Quote
  #3  
Old 07-02-2012, 11:55 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
There still seems to be the issue of joining a class to a scripted player object then being unable to be un-joined, which makes me hesitant to use the functionality as much as I'd like to as it results in more memory usage.

For example:

PHP Code:
temp.pl = new TServerPlayer(@ temp.account);
temp.pl.join("nameofclass");
temp.pl.someFunction();
temp.pl.leave("nameofclass");
temp.pl.destroy(); 
This will result in the class count still being included within the /stats RC message.

I did notice there was some new information within /stats too.
For example:

Quote:
Script engine: 1 event objects, 94 destroyed objects, 258 static objects, 503 global variables, 6 script machines
I wonder what it means exactly.
Reply With Quote
  #4  
Old 07-03-2012, 01:02 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
6 script machines - maximum number of objects calling another object in a chain
258 static objects - TStaticVars
503 global variables - needs no explanation
94 destroyed objects - objects which were destroyed but other objects are still linking to it
1 event object - objects with a name which were destroyed (having event catchers which will be reapplied when the object is recreated)

These variables were previously only available to me but they can show when there is a problem (too many global variables or so).
Reply With Quote
  #5  
Old 07-03-2012, 01:11 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Stefan View Post
6 script machines - maximum number of objects calling another object in a chain
258 static objects - TStaticVars
503 global variables - needs no explanation
94 destroyed objects - objects which were destroyed but other objects are still linking to it
1 event object - objects with a name which were destroyed (having event catchers which will be reapplied when the object is recreated)

These variables were previously only available to me but they can show when there is a problem (too many global variables or so).
The amount of static objects and especially global variables seems much higher than it should be for us, unless a number of them are waiting on the garbage collector or something.
Reply With Quote
  #6  
Old 07-03-2012, 01:33 AM
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
Quote:
Originally Posted by ffcmike View Post
The amount of static objects and especially global variables seems much higher than it should be for us, unless a number of them are waiting on the garbage collector or something.
For comparison, here's Era with about 115 players online:

Quote:
Script engine: 0 event objects, 448 destroyed objects, 217 static objects, 5786 global variables, 7 script machines
Would be neat if there was some way to see more information about the global variables, I can't think of anything on Era that would be creating so many.
__________________
Reply With Quote
  #7  
Old 07-03-2012, 01:36 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by cbk1994 View Post
I can't think of anything on Era that would be creating so many.
Same, I hardly ever use global variables serverside except for system references.
Reply With Quote
  #8  
Old 07-03-2012, 01:54 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by cbk1994 View Post
Would be neat if there was some way to see more information about the global variables, I can't think of anything on Era that would be creating so many.
Aren't npcs created via putnpc assigned to some global variable (items, trash, etc)?
__________________
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 09:57 PM.


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