Raised This Month: $248 Target: $400
 62% 

DHooks (Dynamic Hooks - Dev Preview)


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

Quote:
Originally Posted by xerox8521 View Post
Would it be possible to add a return type that skips the game function call entirely for void functions ?
Currently it explicity checks when using MRES_Supercede.
That code is just checking for allocating space to store the return value - supercede should work fine for void functions.
__________________
asherkin is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-26-2020 , 07:41   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #792

Quote:
Originally Posted by Accelerator74 View Post
Аfter sourcemod 1.11.6609 and above, dhooks detours causes server crashes on startup. After updating sdkhooks extension (OnEntitySpawned forward)
Code:
---- Host_NewGame ----
maxplayers set to 32
Host_NewGame on map c1m1_hotel
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file
./srcds_run: line 341:  5383 Segmentation fault      $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Even the "Accelerator" extension fails to create a crash dump.
This should be fixed in the next-ish SM build, thanks!

In the future, best to file crashes caused by SM upgrades as GitHub issues against SourceMod - they're more likely to be seen quickly.
__________________
asherkin is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 08-26-2020 , 10:58   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #793

Quote:
Originally Posted by asherkin View Post
That code is just checking for allocating space to store the return value - supercede should work fine for void functions.
Yea my bad forgot to switch from post to pre hook where supercede works just fine.
xerox8521 is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-26-2020 , 18:09   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #794

So i have a plugin that removes some entities on SDKHook_Spawn and another plugin that dhooks an entity on SDKHook_Spawn. Whenever I kill an entity that is hooked as well, the server crashes.
I changed SDKHook_Spawn to SDKHook_SpawnPost for the dhook thing, and it's fine now. Should i dunhook the entitiy on EntityDestroyed?
I hook AcceptInput and i use AcceptEntityInput to kill entities.

Some info about the crash: https://crash.limetech.org/gd2tysruj7hp
__________________

Last edited by Ilusion9; 08-26-2020 at 18:18.
Ilusion9 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 06:14.


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