Raised This Month: $51 Target: $400
 12% 

[DEV] Entity Limits Logger


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
7417
Plugin Version:
2.1
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    30 
    Plugin Description:
    Logs entity types when the total number of entities on the map exceeds a pre-prefined maximum
    Old 12-13-2020 , 15:51   [DEV] Entity Limits Logger
    Reply With Quote #1

    Description:
    When the total number of networked entities become > 2048* (depends on your game),
    server receive crash
    Quote:
    ED_Alloc: no free edicts
    This plugin can help you with manual searching for a reason of entities leaking by logging all entities once per map whenever the total number of networked entities become > MAX, defined by you.
    List of info that is to be logged:
    - Time
    - Map name
    - Delta report since the latest snapshot (it is a difference between entities, spawned when map started and entities at the moment of a leak detection )
    - Weapon names per each slot per each player
    - Player names and their teams
    - total entities
    - total networked entities
    - per each entity:
    > class name
    > target name
    > model name
    > origin (position)
    > is within Saferoom (L4D only)
    > HammerId
    Log location: /addons/sourcemod/logs/entity_limit_<date-time>.log

    ConVars (Settings):
    Located at cfg/sourcemod/sm_entity_limit.cfg

    - sm_entity_limit_unsafe_left - def.: 150 - Plugin creates report when the number of free entities is less than this ConVar
    - sm_entity_limit_delay - def.: 10.0 - Delay to be used after map start to create entities snapshot for calculating the entities delta when a leak happens
    Commands:
    - sm_entlog - instantly creates the entities report
    - sm_entsnap - creates entities snapshot which is to be used for calculating the entities delta (when leak happens or sm_entlog used)

    - sm_entcrash - (available if only you enable DEBUG 1) - creates new 300 dummy entities to imitate the crash
    Installation:
    - copy .smx to addons/sourcemod/plugins
    Example of a log:
    Spoiler


    Related plugins:
    - [ANY] Security entity limit
    - [Any] Crash Helper / Log A Lot
    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon (Paypal)
    - BitCoin
    - Ю.Money
    Attached Files
    File Type: sp Get Plugin or Get Source (entity_limit_logger.sp - 791 views - 12.6 KB)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 05-12-2021 at 19:29.
    Dragokas is offline
     



    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 18:11.


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