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

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
red4911
Senior Member
Join Date: Sep 2010
Location: Russia
Old 04-09-2015 , 14:44   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #261

Quote:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// dhooks-test.sp
//
// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(107) : error 173: 'interface' is a newly reserved keyword that may be used in
the future; use a different name as an identifier
// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(10 : error 173: 'interface' is a newly reserved keyword that may be used in
the future; use a different name as an identifier
// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(10 : error 173: 'interface' is a newly reserved keyword that may be used in
the future; use a different name as an identifier
// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(115) : error 173: 'interface' is a newly reserved keyword that may be used in
the future; use a different name as an identifier
// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(142) : error 122: expected type expression
// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(181) : error 122: expected type expression
// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(183) : error 166: cannot use 'this' outside of a methodmap method or property

// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(185) : error 166: cannot use 'this' outside of a methodmap method or property

// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(185) : error 166: cannot use 'this' outside of a methodmap method or property

// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(185) : error 166: cannot use 'this' outside of a methodmap method or property

// C:\Users\└фьшэшёЄЁрЄюЁ\Desktop\sourcemod-1.7.1-git5152\scripting\dhooks-test.
sp(185) : fatal error 187: too many error messages on one line
//
// Compilation aborted.
// 11 Errors.
//
// Compilation Time: 0,52 sec
// ----------------------------------------

Press enter to exit ...
red4911 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-09-2015 , 15:51   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #262

grab the latest include file
Dr!fter is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-10-2015 , 12:18   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #263

With the release of SourceMod 1.7 I have decided to officially fully release dhooks2. I updated all the info and removed old useless info from the original post. DHooks(1) is now unsupported. If there is any issues with plugins that worked with dhooks(1) but not dhooks2 let me know.
Dr!fter is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 04-10-2015 , 14:32   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #264

Awesome, now we can just link to the first post and avoid confusion. Nice job on the 2.0 release!
__________________
GoD-Tony is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 04-12-2015 , 10:04   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #265

What kind of things would you use Dhooks for instead of SDKHooks?

They both use gamedata so I otherwise don't know the difference.
__________________

Last edited by Chdata; 04-12-2015 at 10:05.
Chdata is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-12-2015 , 10:41   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #266

Quote:
Originally Posted by Chdata View Post
What kind of things would you use Dhooks for instead of SDKHooks?

They both use gamedata so I otherwise don't know the difference.
SDKHooks can only hook functions specifically implemented in it. DHooks can hook almost any virtual function on a player, entity, or other classes. All of SDKHooks itself could be implemented inside of an SM plugin with DHooks.
psychonic is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 04-12-2015 , 11:26   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #267

Quote:
Originally Posted by psychonic View Post
SDKHooks can only hook functions specifically implemented in it. DHooks can hook almost any virtual function on a player, entity, or other classes. All of SDKHooks itself could be implemented inside of an SM plugin with DHooks.
Maybe I mean to say

'SDKCall'

?
__________________
Chdata is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-12-2015 , 11:37   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #268

Quote:
Originally Posted by Chdata View Post
Maybe I mean to say

'SDKCall'

?
SDKCall can call functions, but can't hook/override them.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 04-12-2015 , 11:40   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #269

Ah alright. dhooks p coo
__________________
Chdata is offline
lechoo
Member
Join Date: Jul 2010
Location: Poland
Old 05-08-2015 , 11:41   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #270



I'm using the latest DHooks and 'Example/Test Plugin' from first post. The same problem like red4911. Any way to fix this?
__________________
Sorry for my bad English
lechoo is offline
Send a message via Skype™ to lechoo
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 04:58.


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