Raised This Month: $87 Target: $400
 21% 

[ANY] Gamedata Offset Tester (1.1.1) [28-Jun-2019]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6617
Plugin Version:
1.1.1
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Dump memory bytes to server console for finding offsets. Uses signature bytes or gamedata for address.
    Old 06-25-2019 , 00:46   [ANY] Gamedata Offset Tester (1.1.1) [28-Jun-2019]
    Reply With Quote #1



    About
    • Dump memory bytes to server console for finding offsets.
    • Uses signature bytes or gamedata for address.


    Related Plugins

    Thanks
    • Lux - Ideas for the plugin.
    • BHaType - Testing on Win/Linux.


    Admin Commands
    PHP Code:
    sm_sig_off    // Usage: sm_sig_off <offset> <signature bytes> || <gamedata> <signature> [offset] [bytes]

    // Examples:
    sm_sig_offset_display 0sm_sig_offset_print 26
    sm_sig_offset_display 1
    sm_sig_offset_print 10
    sm_sig_off 
    "core.games/engine.csgo" EntInfosFinder 0 // Displays default 256 bytes from offset 0
    sm_sig_off "sdkhooks.games/engine.csgo" EntityListenersFinder 0 128 // Displays 128 bytes from offset 0
    sm_sig_off "sdktools.games/engine.csgo" CBaseTempEntity 75 128 // Displays 128 bytes from offset 75
    sm_sig_off 0 "55 8B ? 81 ? ? ? ? ? 53 56 8B ? 8B ? ? ? ? ? 57 85" // First byte 0 is the offset, search by signature
    sm_sig_off -15 "55 8B ? 83 ? ? 83 ? ? 83 ? ? ? ? ? ? 53 56 57 89 ? ? ? 8B" // First byte -15 is the offset, search by signature 

    ConVars:

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

    PHP Code:
    sm_sig_offset_print "10"     // How many bytes to print per line in the console.
    sm_sig_offset_display "1"    // 0 = Dump all bytes space separated. 1 = Display offset number next to bytes.
    sm_sig_offset_library "1"    // Which library to search. 0=Engine, 1=Server. 

    Changes
    Code:
    1.1.1 (28-June-2019)
        - Allowed negative offset lookup.
    
    1.1 (26-June-2019)
        - Added convar "sm_sig_offset_library" to determine which library to search.
    
    1.0 (25-June-2019)
        - Initial release.

    Installation
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_sig_offset.sp - 102 views - 8.7 KB)
    __________________

    Last edited by Silvers; 06-28-2019 at 13:49.
    Silvers is offline
    _GamerX
    AlliedModders Donor
    Join Date: Jun 2011
    Location: Fun Server
    Old 06-25-2019 , 02:41   Re: [ANY] Gamedata Offset Tester (1.0) [25-Jun-2019]
    Reply With Quote #2

    Great
    __________________
    _GamerX is offline
    Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
    404UNF
    ( ͡ ͜ʖ ͡)
    Join Date: Dec 2011
    Location: 🍁
    Old 06-25-2019 , 14:05   Re: [ANY] Gamedata Offset Tester (1.0) [25-Jun-2019]
    Reply With Quote #3

    Wooo, offsets! Hopefully one step closer to automated gamedata creation/updating. I'd love to see a system that generates gamedata (offsets & sigs) for everything in the game, all in one file. Would really make working with gamedata just that much easier.
    __________________


    Last edited by 404UNF; 06-25-2019 at 14:18.
    404UNF is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 06-25-2019 , 14:37   Re: [ANY] Gamedata Offset Tester (1.0) [25-Jun-2019]
    Reply With Quote #4

    Another amazing contribution Silver. Keep it up.

    I'll test this soon. One tiny thing that I noticed in the code would be to change syntax of one native.

    PHP Code:
    WriteFileLine(hFile
    can be switched to newer syntax.

    PHP Code:
    hFile.WriteLine
    __________________
    Spirit_12 is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-26-2019 , 07:07   Re: [ANY] Gamedata Offset Tester (1.0) [25-Jun-2019]
    Reply With Quote #5

    Quote:
    Originally Posted by Spirit_12 View Post
    Another amazing contribution Silver. Keep it up.

    I'll test this soon. One tiny thing that I noticed in the code would be to change syntax of one native.

    PHP Code:
    WriteFileLine(hFile
    can be switched to newer syntax.

    PHP Code:
    hFile.WriteLine
    Thanks, fixed.

    Also added cvar to select library for search (engine/server).
    __________________
    Silvers is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 06-29-2019 , 15:27   Re: [ANY] Gamedata Offset Tester (1.1.1) [28-Jun-2019]
    Reply With Quote #6

    Can some explain to a noob how this works? How exactly (step by step) can I get the correct gamedata for example DM plugin for CSGO? Like for linux EntSelectSpawnPoint?
    Ejziponken 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 22:48.


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