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

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
GPhoenix97
Member
Join Date: Oct 2012
Location: Poland
Old 01-24-2013 , 15:48   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #91

hi!
Code:
L 01/24/2013 - 21:44:06: [SM] Unable to load extension "dhooks.ext": Could not find interface: VSERVERTOOLS002
L 01/24/2013 - 21:44:06: [SM] Unable to load plugin "admin-allspec.smx": Required extension "dhooks" file("dhooks.ext") not running
it's CS:S
SM newest
MM newest

Last edited by GPhoenix97; 01-24-2013 at 15:48.
GPhoenix97 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-24-2013 , 16:01   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #92

Quote:
Originally Posted by GPhoenix97 View Post
hi!
Code:
L 01/24/2013 - 21:44:06: [SM] Unable to load extension "dhooks.ext": Could not find interface: VSERVERTOOLS002
L 01/24/2013 - 21:44:06: [SM] Unable to load plugin "admin-allspec.smx": Required extension "dhooks" file("dhooks.ext") not running
it's CS:S
SM newest
MM newest
paste the output of the version command along with sm version and meta version please

Last edited by Dr!fter; 01-24-2013 at 16:04.
Dr!fter is offline
GPhoenix97
Member
Join Date: Oct 2012
Location: Poland
Old 01-24-2013 , 16:10   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #93

Quote:
Originally Posted by Dr!fter View Post
paste the output of the version command along with sm version and meta version please
SourceMod Version Information:
SourceMod Version: 1.4.7-dev
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.4.7-dev)
SourcePawn API: v1 = 4, v2 = 4
Compiled on: Jan 6 2013 07:19:08
Build ID: 3605:fe35b5032f37-dev
http://www.sourcemod.net/

Metamod:Source version 1.9.2-dev
Build ID: 807:6fcbd5454095-dev
Loaded As: Valve Server Plugin
Compiled on: Dec 23 2012
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/
GPhoenix97 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-24-2013 , 16:24   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #94

Quote:
Originally Posted by Dr!fter View Post
  • 1.0.11-alpha
    • Made engine specific builds so that it works with tf2 again.
    • Hopefully fixed crashes in CS:GO in OnEntityCreated
    • Fixed a bug using Edict params.
    • Requires SM 1.5 and MM:S 1.9+
Quote:
Originally Posted by GPhoenix97 View Post
SourceMod Version Information:
SourceMod Version: 1.4.7-dev
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.4.7-dev)
SourcePawn API: v1 = 4, v2 = 4
Compiled on: Jan 6 2013 07:19:08
Build ID: 3605:fe35b5032f37-dev
http://www.sourcemod.net/

Metamod:Source version 1.9.2-dev
Build ID: 807:6fcbd5454095-dev
Loaded As: Valve Server Plugin
Compiled on: Dec 23 2012
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/

Last edited by Dr!fter; 01-24-2013 at 16:24.
Dr!fter is offline
GPhoenix97
Member
Join Date: Oct 2012
Location: Poland
Old 01-24-2013 , 16:33   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #95

sorry, i didnt notice that. sorry again for a trouble and thanks
GPhoenix97 is offline
Electr000999
Senior Member
Join Date: Aug 2011
Old 01-25-2013 , 03:35   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #96

Up, add i use for test last sm 1.5.0-hg3756, and metamod 1.9.1 stable branch, dhooks 1.0.11-alpha on l4d2 windows server.
On DHookEntity(g_hOnSetTransmit, false, client, RemovalCB) - crash occurs
Offset is from the current sdkhooks, attached a crash dump, Please help)

Quote:
Originally Posted by Electr000999 View Post
Hi Dr!fter, thx for extension, can you help SetTransmit hook example for l4d2 based on your extension?

server crash when I start the hook..(

Here source my brocken example

Code:
#pragma	semicolon 1
#include <sourcemod>
#include <dhooks>

static	Handle:g_hOnSetTransmit, // OnSetTransmit
		OnSetTransmitHookID[MAXPLAYERS+1];

public Plugin:myinfo = 
{
	name = "SetTransmit Example on dhooks",
	author	  	= "Electr0",
	description = "",
	version	 	= "0.2",
	url		 	= "http://steamcommunity.com/id/Electr0n/"
};

public OnPluginStart()
{
	new Handle:temp = LoadGameConfigFile("sdkhooks.games/game.l4d2");
	if( temp != INVALID_HANDLE )
	{		
		new offset = GameConfGetOffset(temp, "SetTransmit"); 
		if(offset == -1)
		{
			SetFailState("Unable to find offset for SetTransmit");
		}			
		g_hOnSetTransmit = DHookCreate(GameConfGetOffset(temp, "SetTransmit"), HookType_Entity, ReturnType_Int, ThisPointer_CBaseEntity, Hook_SetTransmit);	
		DHookAddParam(g_hOnSetTransmit, HookParamType_CBaseEntity);
			
		CloseHandle(temp);
	}
	else
		SetFailState("Missing required gamedata/sdkhooks.games/game.l4d2");

	RegConsoleCmd("sm_setTransmit_me", sm_setTransmit_me);	
}

public Action:sm_setTransmit_me(client,args)
{ 
	if (OnSetTransmitHookID[client] != 0)
	{	
		PrintToServer("Remove old OnSetTransmit hook::DHookRemoveHookID(%i)", OnSetTransmitHookID[client]);
		DHookRemoveHookID(OnSetTransmitHookID[client]);
		OnSetTransmitHookID[client]=0;
	}
	else
	{
		OnSetTransmitHookID[client] = DHookEntity(g_hOnSetTransmit, false, client, RemovalCB);
		PrintToServer("Create OnSetTransmit hook %i", OnSetTransmitHookID[client]);
	}
}

public MRESReturn:Hook_SetTransmit(entity, Handle:hReturn, Handle:hParams)
{
	new client = DHookGetParam(hParams, 1);
	if( entity == client)
	{
		return MRES_Handled;
	}
	return MRES_Ignored;
}

public RemovalCB(hookid) 
{ 	
	PrintToServer("Removed hook %i", hookid);
}
Attached Files
File Type: zip crash_srcds.exe_20130125142219_1.zip (20.1 KB, 168 views)

Last edited by Electr000999; 01-25-2013 at 03:42.
Electr000999 is offline
Send a message via Skype™ to Electr000999
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-25-2013 , 13:02   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #97

Quote:
Originally Posted by Electr000999 View Post
Up, add i use for test last sm 1.5.0-hg3756, and metamod 1.9.1 stable branch, dhooks 1.0.11-alpha on l4d2 windows server.
On DHookEntity(g_hOnSetTransmit, false, client, RemovalCB) - crash occurs
Offset is from the current sdkhooks, attached a crash dump, Please help)
Your missing a param for one and the first param isnt an ent.

https://bitbucket.org/psychonic/sdkh...efault#cl-1253
Dr!fter is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 02-05-2013 , 21:54   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #98

Curious if this needs to be updated at all too since the latest CS:S update? I have 1 plugin that uses this extension but it fails to run saying dhooks is not loading.
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
Crone
Junior Member
Join Date: Mar 2011
Old 02-06-2013 , 04:19   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #99

same for me dhooks donīt work at the moment ;)
Crone is offline
Bittersweet
Veteran Member
Join Date: May 2012
Old 02-07-2013 , 13:32   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #100

I am using the admin-allspec plugin on a Windows CS:S server. It's causing a crash, see https://forums.alliedmods.net/showpo...2&postcount=33.

I just updated to the latest DHooks posted in this thread. Using the plugin causes the server to crash a few seconds after a human starts playing - you never make it through one round. When I disable the plugin, DHooks doesn't load since the admin-allspec is the only plugin using it. I manually loaded the DHooks extension and played a few rounds to try duplicating the crash, and it never did crash. I see the MM requirement of 1.9+. I'm wondering if MM 1.10 meets that requirement?
__________________
Thank you in advance for your help

My plugins:
[CS:S] BOT Swat | [ANY] CVAR Randomizer | [CS:S] SM CS:S Tag Beta | [CS:S] Bot2Player
Awesome & Crucial plugins by other people:
[CS:S/CS:GO] GunGame | [UMC3] Ultimate Mapchooser | [ANY] Server Crontab | [ANY] SM ForceCamera
Bittersweet 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 13:00.


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