Raised This Month: $7 Target: $400
 1% 

[ANY] UserMsg Hooks - DevTools (1.7) [28-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6806
Plugin Version:
1.7
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    51 
    Plugin Description:
    Prints UserMessage data, with class filtering.
    Old 11-15-2019 , 03:47   [ANY] UserMsg Hooks - DevTools (1.7) [28-Jan-2024]
    Reply With Quote #1



    Related Plugins:


    About:
    • Prints UserMessage data to chat (client) or console (server).
    • Logs UserMessages structure and output data.
    • Can specify which UserMessages to listen for or filter out.
    • Example command: sm_um_watch "MusicCmd,TextMsg"
    • For more info on UserMessages: https://wiki.alliedmods.net/User_Messages
    • Auto generates up to 19 gamedata signatures! They should never break and support most games.
    • Logs messages to: "logs/user_messages_dump.log"
    • Logs structures to:"logs/user_messages_types.log"



    Example Output:
    Spoiler




    Known Working Games:
    • L4D1
    • L4D2
    • Please report success in other games.
    • Request support if required.



    Unsupported Games:
    • CSGO (method is different, requires manual hooks and/or changes)



    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_um_listen    // Starts listening to all UserMessages. Filters or listens for messages from the filter and listen cvars.
    sm_um_stop      // Stop printing UserMessages.
    sm_um_watch     // Start printing UserMessages. Usage: sm_um_watch <messages to watch, separate by commas> 



    ConVars:

    Saved to usermsg_hooks.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // Do not hook and these UserMessages, separate by commas (no spaces). Only works for sm_usermsg_listen command.
    sm_usermsg_filter ""

    // Only hook and display these UserMessages, separate by commas (no spaces). Only works for sm_usermsg_listen command.
    sm_usermsg_listen ""

    // 0=Off. 1=Logs all UserMessage structures. 2=Log listen UserMessage data. 4=Log listen UserMessage data with timestamps. Add numbers together.
    sm_usermsg_logging "1"

    // UserMsg Hooks plugin version.
    sm_usermsg_version 



    Changes:
    Code:
    1.7 (28-Jan-2024)
        - Fixed memory leak caused by clearing StringMap/ArrayList data instead of deleting.
    
    1.6 (07-Nov-2023)
        - Fixed not deleting handles on plugin start.
    
    1.5 (04-Dec-2021)
        - Changes to fix warnings when compiling on SourceMod 1.11.
    
    1.4 (20-Apr-2021)
        - Fixed compile errors on SourceMod 1.11.
    
    1.3 (01-Dec-2019)
        - Changed timestamps to use 24 hour format.
    
    1.2 (29-Nov-2019)
        - Fixed percent formatting operators breaking print to chat.
    
    1.1 (24-Nov-2019)
        - Plugin now logs an error and quits when failing to find required "UserMessageBegin" function.
        - Prints which functions are hooked when VERBOSE = 1.
    
    1.0 (15-Oct-2019)
        - Initial release.



    Requirements:

    Installation:
    DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
    1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
    2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (usermsg_hooks.sp - 21 views - 27.1 KB)
    File Type: txt usermsg_hooks.games.txt (4.5 KB, 542 views)
    File Type: smx usermsg_hooks.smx (12.8 KB, 22 views)
    __________________

    Last edited by Silvers; 01-28-2024 at 02:18.
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-29-2019 , 16:49   Re: [ANY] UserMsg Hooks - DevTools (1.2) [29-Nov-2019]
    Reply With Quote #2

    Quote:
    1.2 (29-Nov-2019)
    - Fixed percent formatting operators breaking print to chat.

    1.1 (24-Nov-2019)
    - Plugin now logs an error and quits when failing to find required "UserMessageBegin" function.
    - Prints which functions are hooked when VERBOSE = 1.
    __________________
    Silvers is offline
    _GamerX
    AlliedModders Donor
    Join Date: Jun 2011
    Location: Fun Server
    Old 11-29-2019 , 16:55   Re: [ANY] UserMsg Hooks - DevTools (1.2) [29-Nov-2019]
    Reply With Quote #3

    Great Release
    __________________

    Last edited by _GamerX; 11-29-2019 at 16:55.
    _GamerX is offline
    Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 11-21-2020 , 17:59   Re: [ANY] UserMsg Hooks - DevTools (1.3) [01-Dec-2019]
    Reply With Quote #4

    If somebody need, the attached version is correctly working on L4D1.
    This is L4D1 only release with hardcoded signatures.
    Attached Files
    File Type: zip UserMsgHook_L4D1.zip (6.0 KB, 250 views)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas 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 07:45.


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