Raised This Month: $32 Target: $400
 8% 

Entity Network Monitor


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development        Approver:   Exolent[jNr] (178)
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-21-2009 , 17:13   Entity Network Monitor
Reply With Quote #1

Entity Network Monitor

Description

This plugin can display and log an entity's network activity. You just specify the entity you want to monitor, and the host player (that is, the receiver) and it will automatically start logging any data that's sent to him (actually only ES_ and CD_ constants).

This can help in analyzing how much bandwidth your custom entities are using up, or if you want to know how a particular property behaves under certain conditions.

There is also a verbose mode to show detailed names for some properties, e.g. ES_Flags: 8 (FL_CLIENT) --> 32784 (FL_INWATER | FL_SWIM) (this is a bit more CPU expensive though).

Installation
  • Extract .amxx file to your plugins folder, and add its name to plugins.ini
Commands
  • enm_output_mode <0/1/2/3> - Set output mode for data:
    0 - Disabled
    1 - Print to Server Console
    2 - Log to AMXX Logs
    3 - Log to Custom Logs File (default)
  • enm_entity_filter <entity id> - Set entity filter.
  • enm_host_filter <host id> - Set host filter.
  • enm_verbose <0/1> - Toggle verbose mode on/off.
Changelog

Code:
- Version: 1.0 (Mar 21, 2009)
* Public release
Attached Files
File Type: sma Get Plugin or Get Source (entity_network_monitor.sma - 2662 views - 36.8 KB)
__________________
MeRcyLeZZ is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-21-2009 , 17:16   Re: Entity Network Monitor
Reply With Quote #2

wow man this plugin is good

GJ
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
prabalgarina
Senior Member
Join Date: Mar 2009
Old 03-21-2009 , 17:35   Re: Entity Network Monitor
Reply With Quote #3

Wow man...I knew almost nothing of the description ...but i will give you karma...will you explain it more
easier if you can.. thanks (im not eanglish)
prabalgarina is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-21-2009 , 17:38   Re: Entity Network Monitor
Reply With Quote #4

This is nice. I've done something similar for testing lately but when I look at this much more advanced thing I think I have to use your version the next time. Mine was just crappy compared to this ;D


/edit:
@prabalgarina:
This plugin monitors and logs all values that are updated in the AddToFullPack and UpdateClientData forwards and therefore provides in-depth information about the correlation between two chosen entities. It is (only) useful for testing purposes.
__________________
In Flames we trust!

Last edited by Nextra; 03-21-2009 at 17:42.
Nextra is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-21-2009 , 17:46   Re: Entity Network Monitor
Reply With Quote #5

Nice job.

Just a suggestion, to replace log_to_file native, have a look at shptools plugin, the log system is works flawlessly compared to log_tofile.
When i log things on my listenserver, with log_to_file i notice a lag or fps decrease, with the replacement i don't feel anything.

Just in case you don't know the plugin : http://forums.space-headed.net/viewtopic.php?f=43&t=111
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 03-21-2009 , 17:58   Re: Entity Network Monitor
Reply With Quote #6

GJ MeRcyLeZZ, as always.
__________________
"There is no knowledge, that is not power"
fezh is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-21-2009 , 18:11   Re: Entity Network Monitor
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Nice job.

Just a suggestion, to replace log_to_file native, have a look at shptools plugin, the log system is works flawlessly compared to log_tofile.
When i log things on my listenserver, with log_to_file i notice a lag or fps decrease, with the replacement i don't feel anything.

Just in case you don't know the plugin : http://forums.space-headed.net/viewtopic.php?f=43&t=111
Yeah, I had that problem when I ran my dedicated server too. Thanks for the link!
__________________
MeRcyLeZZ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-22-2009 , 14:38   Re: Entity Network Monitor
Reply With Quote #8

Not bad, and can be useful. Good job, MeRcyLeZZ.
Arkshine is offline
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 03-27-2009 , 07:49   Re: Entity Network Monitor
Reply With Quote #9

Good job MeRcyLeZZ.
__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){

M1R0n,M' is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-06-2010 , 19:47   Re: Entity Network Monitor
Reply With Quote #10

Quote:
Originally Posted by MeRcyLeZZ View Post
Installation
  • Extract .amxx file to your plugins folder, and add its name to plugins.ini
As if the people interested in this plugin wouldn't know this...
01101101 is offline
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 -4. The time now is 07:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode