Raised This Month: $32 Target: $400
 8% 

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 12-24-2020 , 03:29   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #811

Quote:
Originally Posted by ttfak12 View Post
L 12/24/2020 - 10:48:04: [left4dhooks.smx] Failed to find signature: ForceNextStage
https://forums.alliedmods.net/showpo...&postcount=246
__________________
HarryPotter is offline
vanz
Junior Member
Join Date: Apr 2020
Old 12-24-2020 , 14:18   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #812

Hi, are there any plans to add support for global hooks, as implemented in SourceHook ?
vanz is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-27-2020 , 10:58   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #813

Quote:
Originally Posted by Peace-Maker View Post
PASSFLAG_ODTOR: "odtor"
PASSFLAG_OCTOR: "octor"
PASSFLAG_OASSIGNOP: "oassignop"
PASSFLAG_OCOPYCTOR: "ocopyctor"
PASSFLAG_OUNALIGN: "ounalign"
Can you please provide a little explanation, what these flags meaning?

E.g. using:
Code:
bool CBaseEntity::AcceptInput( const char *szInputName, CBaseEntity *pActivator, CBaseEntity *pCaller, variant_t Value, int outputID )
as sample.

Gamedata.
Why:
Quote:
"size" "20"
"flags" "byval odtor octor oassignop"
Also, sizeof(variant_t) == 16. Why 20?

EDIT. Ok, found in inc:
PHP Code:
    DHookPass_ODTOR =        (1<<2),        /**< Object has a destructor */
    
DHookPass_OCTOR =        (1<<3),        /**< Object has a constructor */
    
DHookPass_OASSIGNOP    =    (1<<4),        /**< Object has an assignment operator */ 
However, no ocopyctor / ounalign flags are there at all. Deprecated flags in main post?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 12-27-2020 at 11:30.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-30-2020 , 11:41   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #814

Does Dhook Detours support such register?
Code:
__int64 __userpurge sub_101D7CB0@<edx:eax>(char a1@<efl>, int a2, float a3, float a4)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 01-09-2021 , 13:59   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #815

when i used dhooks extension with any kind of plugin server crashes on "quit" command anyone knows why?
__________________

Last edited by iGANGNAM; 01-09-2021 at 14:01.
iGANGNAM is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-28-2021 , 04:51   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #816

A new maintenance version detours16 is up. This one includes a fix for a frequent crash on shutdown as well as improve post-mortem debugging of crashes on linux.



Changelog:

  • Fix crash on server shutdown
  • Switch to std::vector and std::string for SourceMod 1.11 / AMTL update compatibility
  • Enable frame pointer on linux for better crash stack traces
  • Include:
    • Fix INVALID_HOOK_ID using incorrect value
    • Avoid reference to GameData methodmap for backwards compatibility
__________________
Peace-Maker is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 01-28-2021 , 09:10   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #817

Quote:
Originally Posted by Peace-Maker View Post
A new maintenance version detours16 is up.
Code:
[SM] Unable to load extension "dhooks.ext": bin/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /game/left4dead2/addons/sourcemod/extensions/dhooks.ext.so)
Some L4D2 servers just crash on startup.
__________________
Accelerator is offline
MasterMe
Member
Join Date: Mar 2010
Location: Netherlands
Old 01-28-2021 , 10:13   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #818

Presumably your glibc is rather old. On Debian 10 (buster) if I run this:

Code:
nm -gD /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
It lists starting from 3.4 all the way up to 3.4.25.

On https://gcc.gnu.org/onlinedocs/libst...anual/abi.html I read GCC 4.9.0 ships with 3.4.20. GCC 4.9.0 is from april 2014 https://gcc.gnu.org/releases.html.

It might be time to update your servers, I note Debian 8 (jessie) from 2015 has a GCC version new enough, so presumably your distro is even older.
__________________
MasterMe is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 01-28-2021 , 10:33   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #819

The distribution kit left4dead2 initially comes with the old libstdc ++ library, the servers themselves run on debian 10. After manually removing the library from the bin folder, the server starts using the new library, but with the new dhooks extension, server crashes on startup stage.
__________________
Accelerator is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-28-2021 , 10:51   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #820

Quote:
Originally Posted by Accelerator74 View Post
Code:
[SM] Unable to load extension "dhooks.ext": bin/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /game/left4dead2/addons/sourcemod/extensions/dhooks.ext.so)
Some L4D2 servers just crash on startup.
Oh, I didn't mean to link STL dynamically. Please have a try with this binary, which is compiled using -static-libstdc++ against SM1.10.
__________________

Last edited by Peace-Maker; 01-28-2021 at 12:47. Reason: Remove stale attachment
Peace-Maker 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:50.


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