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)

FudgePoly 03-18-2012 10:37

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

[14] <FAILED> file "dhooks.ext.so": Could not find interface: IGameHelpers
Using TF2, fully updated, CentOS.

psychonic 03-18-2012 11:09

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

Originally Posted by FudgePoly (Post 1671199)
Code:

[14] <FAILED> file "dhooks.ext.so": Could not find interface: IGameHelpers
Using TF2, fully updated, CentOS.

What version of SM are you running?

FudgePoly 03-18-2012 11:29

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Latest stable release.

Dr!fter 03-18-2012 14:18

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

Originally Posted by KyleS (Post 1671021)
<KyleS> Drifter, Are you aware of any leaks in DHooks? D:
* ViolentCrimes has quit (Read error: Connection reset by peer)
<KyleS> Drifter, http://pastie.org/private/vxdnhepkmhi7wowytmydcg - If the client is kicked, if the plugin or ext is unloaded, the memory still isn't freed. I'm not sure where it's occuring. I could fire up Valgrind though if you can't reproduce it.
<KyleS> Hit about 2.5gb in 12h lol D:

I have fixed a few. There was one in the actual hooking, and another in getting the params/return values. If there is more feel free to run valgrind since I couldnt see anymore. I tried running valgrind but not sure if I did it correctly since I never used it :P

Quote:

Originally Posted by FudgePoly (Post 1671199)
Code:

[14] <FAILED> file "dhooks.ext.so": Could not find interface: IGameHelpers
Using TF2, fully updated, CentOS.

Try 1.0.3-alpha it should be fixed.

Also anyone running anything before 1.0.3-alpha should update to it, since the memory leak was pretty big.

Despirator 03-24-2012 14:52

Re: DHooks (Dynamic Hooks - Dev Preview)
 
how can i hook css SwitchTeam signature and stop it?

Dr!fter 03-24-2012 17:41

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

Originally Posted by Despirator (Post 1674909)
how can i hook css SwitchTeam signature and stop it?

Its not virtual so you cant use this method. You need to detour the function. What exactly are you trying to do? as their might be other hooks that can be used.

Despirator 03-25-2012 14:09

Re: DHooks (Dynamic Hooks - Dev Preview)
 
i want to handle players switch and stop that for certain players

thetwistedpanda 03-25-2012 14:53

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Well, you can hook manual team changes with join_team, which stops most of the issues in general. If you want to take into consideration plugin swapping or admin interference, it's relatively easy to hook player_team, set the broadcast to false, and swap them back.

Dr!fter 03-26-2012 09:23

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

Originally Posted by Despirator (Post 1675490)
i want to handle players switch and stop that for certain players

There dosnt seem to be anything virtual to do with switching teams.

Quote:

Originally Posted by thetwistedpanda (Post 1675522)
Well, you can hook manual team changes with join_team, which stops most of the issues in general. If you want to take into consideration plugin swapping or admin interference, it's relatively easy to hook player_team, set the broadcast to false, and swap them back.

Best method ^ :P

Despirator 03-26-2012 12:33

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

Originally Posted by thetwistedpanda (Post 1675522)
Well, you can hook manual team changes with join_team, which stops most of the issues in general. If you want to take into consideration plugin swapping or admin interference, it's relatively easy to hook player_team, set the broadcast to false, and swap them back.

i want to override autobalance function of the hide'n'seek's mod


All times are GMT -4. The time now is 15:32.

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