Raised This Month: $27 Target: $400
 6% 

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-31-2020 , 06:26   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #781

Quote:
Originally Posted by bakugo View Post
Is it normal that multiple plugins can't detour the same function at the same time? Is there any way around this?
Multiple plugins can detour the same function, but the act of detouring changes the bytes of the function so the "normal" signature wont match. Generally you can workaround it by wildcarding the first 6 bytes of the signature.
__________________
asherkin is online now
bakugo
Junior Member
Join Date: Nov 2012
Old 08-01-2020 , 16:27   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #782

Quote:
Originally Posted by asherkin View Post
Multiple plugins can detour the same function, but the act of detouring changes the bytes of the function so the "normal" signature wont match. Generally you can workaround it by wildcarding the first 6 bytes of the signature.
That makes sense, thanks.
bakugo is offline
maclarens
Junior Member
Join Date: Jul 2020
Old Yesterday , 06:28   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #783

L 08/10/2020 - 16:24:49: [SM] Exception reported: Failed to get CreateInterface
L 08/10/2020 - 16:24:49: [SM] Blaming: dhooks-test.smx
L 08/10/2020 - 16:24:49: [SM] Call stack trace:
L 08/10/2020 - 16:24:49: [SM] [0] SetFailState
L 08/10/2020 - 16:24:49: [SM] [1] Line 99, dhooks-test.sp::OnPluginStart
L 08/10/2020 - 16:24:49: [SM] Unable to load plugin "dhooks-test.smx": Error detected in plugin startup (see error logs)


SourceMod Version: 1.10.0.6492
SourcePawn Engine: 1.10.0.6492, jit-x86 (build 1.10.0.6492)
SourcePawn API: v1 = 5, v2 = 12
Compiled on: Jul 24 2020 20:07:18
Built from: https://github.com/alliedmodders/sou...commit/250886f
Build ID: 6492:250886f
http://www.sourcemod.net/

Last edited by maclarens; Yesterday at 06:37.
maclarens is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old Yesterday , 06:47   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #784

The dhooks-test plugin is a reference for plugin developers to use DHooks, you shouldn't be trying to run it.
__________________
asherkin is online now
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old Yesterday , 17:59   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #785

Quote:
Originally Posted by asherkin View Post
Multiple plugins can detour the same function, but the act of detouring changes the bytes of the function so the "normal" signature wont match. Generally you can workaround it by wildcarding the first 6 bytes of the signature.
Would it be better to create a forward in such cases ?
__________________
Spirit_12 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 18:20.


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