Raised This Month: $12 Target: $400
 3% 

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
superaconi
New Member
Join Date: Feb 2016
Old 02-02-2016 , 17:46   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #431

How to install it I put everything for linux on its place and its not enabled?
superaconi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 02-04-2016 , 19:31   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #432

If nothing uses the extension it won't load
Dr!fter is offline
Alienmario
Senior Member
Join Date: Aug 2013
Old 02-15-2016 , 13:33   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #433

Running without SDKHooks crashes the server; only running simplest plugin "#include <dhooks>"
Quote:
L 02/15/2016 - 18:20:40: -------- Mapchange to dm_overwatch --------
L 02/15/2016 - 18:20:40: [SM] Unable to load extension "sdkhooks.ext": The specified module could not be found.

..\tier1\fileio.cpp (4022) : Assertion Failed: CFileWriterThread: pending file writer connection_log_27015.txt
Assert( Assertion Failed: CFileWriterThread: pending file writer connection_log_27015.txt ):..\tier1\fileio.cpp:4022

threadtools.cpp (3643) : Assertion Failed: Illegal termination of worker thread 'CFileWriterThread'
Event viewer:
Quote:
Exception code: 0xc0000005
Fault offset: 0x00002767
Faulting process ID: 0xac8
Faulting application start time: 0x01d1681590babac0
Faulting application path: C:\server\hl2dm\srcds.exe
Faulting module path: c:\server\hl2dm\bin\datacache.dll
I thought fixing that could help some other weird crashes that I'm having while hooking functions that SDKHooks already hook, like
CHL2MP_Player::FireBullets ( const FireBulletsInfo_t &info ) which crashes on first call after the plugin has been reloaded while passing by value (wrong, but works until reload) or first call when passing by reference (correct way but always crashes).
Event log of that looks weird
Quote:
Faulting application name: srcds.exe, version: 0.0.0.0, time stamp: 0x56130401
Faulting module name: dbi.sqlite.ext.dll, version: 1.7.3.0, time stamp: 0x56a6ce68
Faulting module path: C:\server\hl2dm\hl2mp\addons\sourcemod\extens ions\dbi.sqlite.ext.dll
Anyway, the hook works and I can access the data, the only thing is that my plugin can't be hot-reloaded when updating
Thanks again for this extension
One thing I can think of that would make this extension better is a bool indicating whether or not it is a post hook in the callbacks.
Alienmario is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-15-2016 , 14:03   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #434

DHooks requires SDKHooks, SDKTools, and BinTools to function.
It should probably fail to load rather than crash, but it will not work without them.

Your hook is probably incorrect, and thus other consumers are ending up with bad data.
JIT error handling (as used for the event logs) always fails with SRCDS due to the built-in crash handlers, use Accelerator if you want reliable crash information.
__________________
asherkin is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-15-2016 , 20:49   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #435

Quote:
Originally Posted by asherkin View Post
DHooks requires SDKHooks, SDKTools, and BinTools to function.
It should probably fail to load rather than crash, but it will not work without them.
I haven't worked on DHooks in a while, but I thought one of the changes I made for DHooks 2 was to make it fail to load instead of crash when its dependencies weren't present.

I mean, looking at the code, you can see
Code:
bool DHooks::QueryRunning(char *error, size_t maxlength)
{
	SM_CHECK_IFACE(SDKTOOLS, g_pSDKTools);
	SM_CHECK_IFACE(BINTOOLS, g_pBinTools);
	SM_CHECK_IFACE(SDKHOOKS, g_pSDKHooks);
	return true;
}
Maybe some null checks needs to happen in DHooks::SDK_OnAllLoaded after the SM_GET_LATE_IFACE calls?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 02-15-2016 at 20:51.
Powerlord is offline
Smoke123
Member
Join Date: Jul 2006
Old 02-18-2016 , 13:21   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #436

Loading up the new nuke and it's crashing with this plugin and im getting a server restart. Unsure if this is the proper place to post this

L 02/17/2016 - 00:26:02: SourceMod log file session started (file "L20160217.log") (Version "1.7.3-dev+5280")
L 02/17/2016 - 00:26:02: -------- Mapchange to de_dust2 --------
L 02/17/2016 - 00:26:03: [deathmatch.smx] Dynamic Hooks not found! Resuming without Dhooks features
L 02/17/2016 - 14:00:22: -------- Mapchange to de_dust2 --------
L 02/17/2016 - 14:043: -------- Mapchange to de_dust2 --------
L 02/17/2016 - 16:46:11: -------- Mapchange to de_dust2 --------
L 02/17/2016 - 201:11: SourceMod log file session started (file "L20160217.log") (Version "1.7.3-dev+5280")
L 02/17/2016 - 201:11: -------- Mapchange to de_dust2 --------
L 02/17/2016 - 201:17: [deathmatch.smx] Dynamic Hooks not found! Resuming without Dhooks features
L 02/17/2016 - 20:56:18: -------- Mapchange to de_dust2 --------
L 02/17/2016 - 21:40:46: -------- Mapchange to de_dust2 --------
L 02/17/2016 - 22:14:25: -------- Mapchange to de_dust2 --------
__________________
Smoke123 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-18-2016 , 13:46   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #437

Considering the only thing in your error log is about not using DHooks, no, the DHooks thread is not a remotely sane place to post that.
__________________
asherkin is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-18-2016 , 14:01   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #438

Dhooks works fine with the new update. Can confirm. (windows)
heres a line out of the log
Code:
L 02/18/2016 - 02:24:54: [DHooks] working great. thanks.
Mitchell is offline
Crowii
Member
Join Date: Nov 2015
Location: England.
Old 02-22-2016 , 05:07   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #439

One thing that's always scared me about this plugin;

How exactly do I install this?
I can work through the sourcemod folder area, but I have no clue about the other folders and files.
Never heard of .cpp, .h, m.py, .rc, etc. ;-;
Crowii is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-22-2016 , 05:21   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #440

Quote:
Originally Posted by Crowii View Post
One thing that's always scared me about this plugin;

How exactly do I install this?
I can work through the sourcemod folder area, but I have no clue about the other folders and files.
Never heard of .cpp, .h, m.py, .rc, etc. ;-;
I suggest downloading the builds rather than the source code.
__________________
asherkin is offline
Reply



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 12:38.


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