AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   CPureFileTracker:DoesFileMatch (https://forums.alliedmods.net/showthread.php?t=309454)

Neuro Toxin 07-26-2018 17:55

CPureFileTracker:DoesFileMatch
 
https://forums.alliedmods.net/showpo...&postcount=319

I'm looking to hook this signature. Can some provide an example that prints the parameters to chat.

Im hoping to get filename, client/userid, hash as string

donrevan 07-28-2018 14:07

Re: CPureFileTracker:DoesFileMatch
 
Show us your attempts so we can help.

FileHash_t structure is probably the same as in 2013 Source SDK (md5value_t is here).

Neuro Toxin 07-29-2018 19:52

Re: CPureFileTracker:DoesFileMatch
 
I barely have time to scratch my ass atm.

That is why I posted this in the request forum instead of scripting help.

I do appreciate the link to the md5 value class.

Neuro Toxin 08-11-2018 09:14

Re: CPureFileTracker:DoesFileMatch
 
I've been giving this a shot. It is possible to hook this signature in a plugin or do I need to write an extension?

psychonic 08-11-2018 13:50

Re: CPureFileTracker:DoesFileMatch
 
Quote:

Originally Posted by Neuro Toxin (Post 2609606)
I've been giving this a shot. It is possible to hook this signature in a plugin or do I need to write an extension?


https://forums.alliedmods.net/showpo...&postcount=589

Neuro Toxin 08-12-2018 01:10

Re: CPureFileTracker:DoesFileMatch
 
Quote:

Originally Posted by psychonic (Post 2609643)

Code:

"Games"
{
    "#default"
    {
        "Functions"
        {
            "DoesFileMatch"
            {
                "signature"  "\x55\x8B\xEC\x8B\x0D\x2A\x2A\x2A\x2A\x81\xEC\x94\x05\x00\x00"
                "callconv"  "thiscall"
                "return"  "bool"
                "this"  "ignore"
                "arguments"
                {
                    "str1"
                    {
                        "type"  "string"
                    }
                    "str2"
                    {
                        "type"    "string"
                    }
                    "int1"
                    {
                        "type"    "int"
                    }
                    "hash"
                    {
                        "type"    "int"
                    }
                    "userid"
                    {
                        "type"    "int"
                    }
                }
            }
        }
    }
}

This is not my specialty that's for sure.

I'm not sure what the argument names are nor where to properly parse the signature.

hmmmmm 08-12-2018 03:39

Re: CPureFileTracker:DoesFileMatch
 
Argument name is irrelevant, call it whatever you want.
Also you might find it easier doing this through an extension to begin with while messing around, then doing it as a plugin once you know what you want. With an extension you'll be able to directly use the structs, which will make your life a lot easier.


All times are GMT -4. The time now is 06:24.

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