Raised This Month: $ Target: $400
 0% 

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-25-2020 , 11:42   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #801

Quote:
Originally Posted by Shadowysn View Post
Whenever I try to compile, I get these errors from the .inc file.
You can replace all occurences of "GameData" with "Handle" in the file to compile with pre 1.10 includes.
__________________
Peace-Maker is offline
Mi.Cura
Senior Member
Join Date: Dec 2016
Location: Brazil
Old 10-28-2020 , 19:24   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #802

Someone could help, I'm getting this error in the log, but I don't know why.


L 10/28/2020 - 15:47:16: SourceMod error session started
L 10/28/2020 - 15:47:16: Info (map "c5m1_waterfront") (file "d:\tcafiles\users\scotts1\41067\left4dea d2\a ddons\sourcemod\logs\errors_20201028.log")
L 10/28/2020 - 15:47:16: [SM] Exception reported: Failed to get CreateInterface
L 10/28/2020 - 15:47:16: [SM] Blaming: dhooks-test.smx
L 10/28/2020 - 15:47:16: [SM] Call stack trace:
L 10/28/2020 - 15:47:16: [SM] [0] SetFailState
L 10/28/2020 - 15:47:16: [SM] [1] Line 100, C:\Users\Jannik\Documents\GitHub\DHooks2\buil d\package\addons\sourcemod\scripting\dhooks-test.sp::OnPluginStart
L 10/28/2020 - 15:47:16: [SM] Unable to load plugin "dhooks-test.smx": Error detected in plugin startup (see error logs)
__________________
Mi.Cura is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-28-2020 , 20:42   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #803

Quote:
Originally Posted by Mi.Cura View Post
Someone could help, I'm getting this error in the log, but I don't know why.


L 10/28/2020 - 15:47:16: SourceMod error session started
L 10/28/2020 - 15:47:16: Info (map "c5m1_waterfront") (file "d:\tcafiles\users\scotts1\41067\left4dea d2\a ddons\sourcemod\logs\errors_20201028.log")
L 10/28/2020 - 15:47:16: [SM] Exception reported: Failed to get CreateInterface
L 10/28/2020 - 15:47:16: [SM] Blaming: dhooks-test.smx
L 10/28/2020 - 15:47:16: [SM] Call stack trace:
L 10/28/2020 - 15:47:16: [SM] [0] SetFailState
L 10/28/2020 - 15:47:16: [SM] [1] Line 100, C:\Users\Jannik\Documents\GitHub\DHooks2\buil d\package\addons\sourcemod\scripting\dhooks-test.sp::OnPluginStart
L 10/28/2020 - 15:47:16: [SM] Unable to load plugin "dhooks-test.smx": Error detected in plugin startup (see error logs)
https://forums.alliedmods.net/showth...74#post2442574
https://forums.alliedmods.net/showth...34#post2616934
https://forums.alliedmods.net/showth...71#post2605671

Quote:
Originally Posted by asherkin View Post
That is expected, it is a code sample of the DHooks API and does not contain up-to-date gamedata for every game. You should not be trying to load it.
__________________
Peace-Maker is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu.
Old 11-22-2020 , 18:25   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #804

Hello,

DHookReturn seems to have an issue (SourceMod 1.10).
I'm doing something like:

PHP Code:
public MRESReturn X(int pThisDHookReturn dynamicHookReturn)
{
    
dynamicHookReturn.Value.set(3);

And I get:

HTML Code:
error 104: cannot find any methods for any
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 190: too many error messages on one line
__________________
micapat is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-22-2020 , 18:29   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #805

Your code is wrong:

PHP Code:
public MRESReturn X(int pThisDHookReturn dynamicHookReturn)
{
    
dynamicHookReturn.Value 3;

__________________
asherkin is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu.
Old 11-22-2020 , 18:33   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #806

Oh ok, working now. Sweet .
__________________
micapat 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 23:57.


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