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

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-18-2016 , 11:26   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #501

SetDataRate is an INetChannel function... you're trying to hook it on the player entity.
__________________
asherkin is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-18-2016 , 11:30   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #502

Please add your gamedata, can't see what you're trying to hook.
__________________
Peace-Maker is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-18-2016 , 11:37   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #503

Quote:
Originally Posted by asherkin View Post
SetDataRate is an INetChannel function... you're trying to hook it on the player entity.
Now it makes more sense.
When am I supposed to use HookType_Raw and when HookType_GameRules? I was pretty sure INetChannel is shared within the client and the server so I assumed hooking the client would be fine.

Quote:
Originally Posted by Peace-Maker View Post
Please add your gamedata, can't see what you're trying to hook.
Huge apologies, I edited the code before posting and accidentally took out the gamedata! I added it back. It should be correct considering I used asherkin's vtable dumper to find it!

EDIT: Actually seems like you've already done it! https://forums.alliedmods.net/showpo...4&postcount=10
__________________
retired

Last edited by shavit; 09-19-2016 at 04:55.
shavit is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-22-2016 , 19:11   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #504

Rule #1 of DHooks and SDKCall: 99% of the time, crashes are your fault; and you need to do the legwork to prove the other 1%.
__________________
asherkin is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-22-2016 , 19:13   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #505

There was a commit made a day ago.

https://github.com/alliedmodders/hl2sdk/commits/tf2

Maybe recompile is worth a shot?
__________________

Last edited by Spirit_12; 09-22-2016 at 19:14.
Spirit_12 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-22-2016 , 19:48   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #506

Unless you are using a version of dhooks1, there is no need to recompile as it does not compile against the sdk AT ALL.
Dr!fter is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 09-23-2016 , 22:03   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #507

Thanks for being stubborn guys.

Turns out the extension was working correctly all along, and the map I happened to use at that time to test the plugin was the culprit that was causing server crashes. On a whim I tested on a different map and it was working properly (and worked on 2 other maps as well).

I owe an apology for being a moron the past couple of days. Lesson learned: Don't throw your brain out the window when frustrated.
Potato Uno is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-24-2016 , 06:03   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #508

Tbh I was really just asking for your source code and gamedata, but if it had been the SDK change, recompiling it yourself and testing that it worked would count as A++ legwork towards proving the issue.
__________________
asherkin is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-24-2016 , 11:59   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #509

Quote:
Originally Posted by Potato Uno View Post
Thanks for being stubborn guys.

Turns out the extension was working correctly all along, and the map I happened to use at that time to test the plugin was the culprit that was causing server crashes. On a whim I tested on a different map and it was working properly (and worked on 2 other maps as well).

I owe an apology for being a moron the past couple of days. Lesson learned: Don't throw your brain out the window when frustrated.
One of the main things I wanted to do when I made dhooks2 was to avoid game updates breaking the extension. Its always possible something from within SM is broken that effects dhooks however. But glad you solved your issue without hopefully trying to recompile everything.
Dr!fter is offline
Spyrek
Senior Member
Join Date: Jun 2009
Old 10-07-2016 , 14:24   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #510

Updated dhooks gamedata in attachment. Couldn't find few offsets, so not all are updated.
Attached Files
File Type: txt dhooks-test.games.txt (1.0 KB, 227 views)

Last edited by Spyrek; 10-07-2016 at 14:25.
Spyrek 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 14:03.


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