AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   DHooks (Dynamic Hooks - Dev Preview) (https://forums.alliedmods.net/showthread.php?t=180114)

asherkin 09-18-2016 11:26

Re: DHooks (Dynamic Hooks - Dev Preview)
 
SetDataRate is an INetChannel function... you're trying to hook it on the player entity.

Peace-Maker 09-18-2016 11:30

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Please add your gamedata, can't see what you're trying to hook.

shavit 09-18-2016 11:37

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Quote:

Originally Posted by asherkin (Post 2454948)
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 (Post 2454952)
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

asherkin 09-22-2016 19:11

Re: DHooks (Dynamic Hooks - Dev Preview)
 
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%.

Spirit_12 09-22-2016 19:13

Re: DHooks (Dynamic Hooks - Dev Preview)
 
There was a commit made a day ago.

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

Maybe recompile is worth a shot?

Dr!fter 09-22-2016 19:48

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Unless you are using a version of dhooks1, there is no need to recompile as it does not compile against the sdk AT ALL.

Potato Uno 09-23-2016 22:03

Re: DHooks (Dynamic Hooks - Dev Preview)
 
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.

asherkin 09-24-2016 06:03

Re: DHooks (Dynamic Hooks - Dev Preview)
 
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.

Dr!fter 09-24-2016 11:59

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Quote:

Originally Posted by Potato Uno (Post 2456436)
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.

Spyrek 10-07-2016 14:24

Re: DHooks (Dynamic Hooks - Dev Preview)
 
1 Attachment(s)
Updated dhooks gamedata in attachment. Couldn't find few offsets, so not all are updated.


All times are GMT -4. The time now is 23:22.

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