Monthly Target: $400 Donations: $131
 32% 

[Any] Crash Helper / Log A Lot v1.0.2a (Updated 9/9/13)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Plugin ID:
3891
Plugin Version:
1.0.2a
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Provides functionality for logging massive amounts of information for tracing crashes.
    Old 09-08-2013 , 23:33   [Any] Crash Helper / Log A Lot v1.0.2a (Updated 9/9/13)
    Reply With Quote #1

    Features:
    • A plugin request paid for by AdReNoChrOm who agreed to its public release.
    • Provides logging functionality for several elements to help assist debugging crashes.
      • Note: This plugin can only do so much; by the time a crash occurs, it's too late to log any information. The most you can hope for is that what's logged right before the crash is related to the actual crash. It's HIGHLY recommended that you run asherkin's Accelerator to further assist in crashes.
      • However, this isn't just for debugging crashes. With the amount of information being logged, it can be used to help track down exploits, griefers, map freakouts, general issues, etc if you spend enough time in the logs.
    • Capable of logging the following, each to its own logging file:
      • Connections (Upon Authorization: Name, Steam, IP)
      • Events (All Events, including their parameters)
      • Population (Every 60.0 seconds, Name/Steam/IP of everyone in-game)
      • Map Changes (Pre / Post change)
      • Entitys (OnCreation / OnDestroy + Total Entities / Max Entities)
      • Commands (Client / Server executed commands + arguments)
    • Parses ModEvents.res and ServerEvents.res, providing compatibility for any Source game.
      • I've provided files from 9/8/13 for: TF2, CS:S, CS:GO, HL2:MP, L4D2
    Installation:
    • It's recommended to just use the .zip file, however, if you possess above normal intelligence:
      • You have to manually create the log directory you with to use within /logs/
      • You need to upload the appropriate .res files to the directory you wish to use within /configs/
      • You should know where the .smx goes, if not, uninstall now because you skipped the .zip opportunity.
    ConVars:
    • sm_crashhelper_enabled: Allows you to enable/disable all aspects of the plugin.
    • sm_crashhelper_detect: Determines what elements will be logged.
    • sm_crashhelper_stamp: The optional date stamp to use for log files.
    • sm_crashhelper_ignore_events: Events to be ignored while logging.
    • sm_crashhelper_ignore_entities: Entity classnames to be ignored while logging.
    • sm_crashhelper_ignore_commands: Commands to be ignored while logging.
    • sm_crashhelper_path_modevents: Path to desired modevents.res.
    • sm_crashhelper_path_serverevents: Path to desired serverevents.res.
      • Note: You may use a separate file for each feature, or combine detections into multiple files.
      • sm_crashhelper_path_logging_connect: Path to log client connections.
      • sm_crashhelper_path_logging_events: Path to log events.
      • sm_crashhelper_path_logging_population: Path to log population updates.
      • sm_crashhelper_path_logging_map: Path to log map changes.
      • sm_crashhelper_path_logging_entity: Path to log entities.
      • sm_crashhelper_path_logging_commands: Path to log commands.
    ModEvents.res
    • Typically located within <file>_dir.vpk if VPK structures exist, otherwise, within /resource/.
    ServerEvents.res
    • Located in either <file>_dir.vpk if VPK structures exist, otherwise, within /resource/.
    • Some source games utilize the default HL2 .res file, in which case, try /hl2/ one directory prior to your game directory.
    Log Examples:
    Attached Files
    File Type: zip _crash_helper.zip (55.8 KB, 503 views)
    File Type: sp Get Plugin or Get Source (sm_crashhelper.sp - 146 views - 22.6 KB)

    Last edited by thetwistedpanda; 09-11-2013 at 09:25.
    thetwistedpanda is offline
    XenTerSiO
    SourceMod Donor
    Join Date: Nov 2011
    Location: Black Mesa
    Old 09-09-2013 , 01:37   Re: [Any] Crash Helper
    Reply With Quote #2

    Awesome! Many thanks to you for your work!
    XenTerSiO is offline
    XenTerSiO
    SourceMod Donor
    Join Date: Nov 2011
    Location: Black Mesa
    Old 09-09-2013 , 03:42   Re: [Any] Crash Helper
    Reply With Quote #3

    Hey! Man!
    ---------
    [SM] Native "HookEvent" reported: Game event "server_pre_shutdown" does not exist
    [SM] Displaying call stack trace for plugin "sm_crashhelper.smx":
    [SM] [0] Line 263, sm_crashhelper.sp:efineEvents()
    [SM] [1] Line 170, sm_crashhelper.sp::OnPluginStart()
    XenTerSiO is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 09-09-2013 , 04:47   Re: [Any] Crash Helper
    Reply With Quote #4

    Most common crashing i have seen is in tf from no free edicts... Wrote something simple to dump them to file once they reach threshold before triggering a mapchange, but cant seem to find any pattern... Seems some valve maps have just way too many entities to constantly support 32 players

    If you have some ideas for this // want to add it in, may be very useful.
    __________________
    Profile - Steam Group - Plugins - Blog - Donate
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-09-2013 , 08:05   Re: [Any] Crash Helper
    Reply With Quote #5

    @ XenTerSiO - game?

    @ friagram - I'll see about implementing an edict/entity count tracker. But beyond that, not sure.
    __________________

    Last edited by thetwistedpanda; 09-09-2013 at 13:29.
    thetwistedpanda is offline
    XenTerSiO
    SourceMod Donor
    Join Date: Nov 2011
    Location: Black Mesa
    Old 09-09-2013 , 09:17   Re: [Any] Crash Helper
    Reply With Quote #6

    Counter-Strike: Source
    XenTerSiO is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 09-09-2013 , 09:21   Re: [Any] Crash Helper
    Reply With Quote #7

    This is just awesome! Thank you so much, Panduh! It may help many people to detect a crash reason. I'd suggest to track OnEntityCreated/Destroyed as a separate option (for detailed information).
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-09-2013 , 09:22   Re: [Any] Crash Helper
    Reply With Quote #8

    I appear to have uploaded the wrong serverevents.res for CS:S/TF2, corrected in v1.0.1 which was just pushed.

    @Root_, good idea. Will see about it for next version. Implemented!
    __________________

    Last edited by thetwistedpanda; 09-09-2013 at 13:30.
    thetwistedpanda is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 09-09-2013 , 11:56   Re: [Any] Crash Helper
    Reply With Quote #9

    Quote:
    L 09/09/2013 - 16:54:27: [SM] Native "LogToFileEx" reported: Could not open file "/home/srv39540/game/l4d2/left4dead2/addons/sourcemod/logs/crashhelper/09_09.log"
    L 09/09/2013 - 16:54:27: [SM] Displaying call stack trace for plugin "sm_crashhelper.smx":
    L 09/09/2013 - 16:54:27: [SM] [0] Line 208, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\sm_crashhelper.sp::OnClientDis connect()
    eric0279 is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-09-2013 , 12:53   Re: [Any] Crash Helper
    Reply With Quote #10

    @eric0279
    Quote:
    Any sub-directories must be created manually. /logs/crashhelper/ will not automatically be created.
    Version 1.0.2
    PHP Code:
    Expanded sm_crashhelper_detectRequires server restart due to upper bounds being raised.
    -- 
    Using the flag 16 results in Entity Logging (hooks OnEntityCreated/OnEntityDestroyed)
    --- 
    Displays classnamecurrent entity indextotal entity countmaximum entities allowed
    -- Using the flag 32 results in Command Logging (hooks AddCommandListener)
    --- 
    Displays client nameclient steam, and any command arguments.
    Reduced block of text in v1.0.1 to 3 lines... (Booze wanted 7)
    Cleaned up logging phrases.
    Cvar Changes:
    -- 
    sm_crashhelper_ignore has been renamed to sm_crashhelper_ignore_events.
    -- 
    sm_crashhelper_path_logging has been depreciated and 6 sub-cvars have been created:
    --- 
    sm_crashhelper_path_logging_connect
    --- sm_crashhelper_path_logging_events
    --- sm_crashhelper_path_logging_population
    --- sm_crashhelper_path_logging_map
    --- sm_crashhelper_path_logging_entity
    --- sm_crashhelper_path_logging_commands
    -- Added sm_crashhelper_ignore_entitieswhich ignores entities for entity logging similar to sm_crashhelper_ignore_events.
    -- 
    Added sm_crashhelper_ignore_commandswhich ignores commands for command logging similar to sm_crashhelper_ignore_events.
    -- 
    sm_crashhelper_path_logging_cvars are no longer hooked for changesreload plugin if you modify
    __________________

    Last edited by thetwistedpanda; 09-09-2013 at 13:10.
    thetwistedpanda is offline
    Reply


    Thread Tools
    Display Modes

    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 01:38.


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