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

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 , 10: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
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-28-2020 , 18: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 | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-28-2020 , 19: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 (France).
Old 11-22-2020 , 17: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 , 17: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 (France).
Old 11-22-2020 , 17:33   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #806

Oh ok, working now. Sweet .
__________________
micapat is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 12-03-2020 , 11:50   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #807

L 12/03/2020 - 13:14:07: SourceMod error session started
L 12/03/2020 - 13:14:07: Info (map "c5m1_waterfront") (file "d:\tcafiles\users\sergiok\34149\left4dead2\a ddons\sourcemod\logs\errors_20201203.log")
L 12/03/2020 - 13:14:07: [left4dhooks.smx] Failed to find signature: ForceNextStage
L 12/03/2020 - 13:16:13: Error log file session closed.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 12-03-2020 , 11:58   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #808

Quote:
Originally Posted by Mi.Cura View Post
L 12/03/2020 - 13:14:07: SourceMod error session started
L 12/03/2020 - 13:14:07: Info (map "c5m1_waterfront") (file "d:\tcafiles\users\sergiok\34149\left4dead2\a ddons\sourcemod\logs\errors_20201203.log")
L 12/03/2020 - 13:14:07: [left4dhooks.smx] Failed to find signature: ForceNextStage
L 12/03/2020 - 13:16:13: Error log file session closed.
That error is coming from Left 4 DHooks because the latest L4D2 update broke some signatures. DHooks itself has nothing to do with this.
__________________
Psyk0tik is offline
Tenchuu1987
Member
Join Date: Sep 2019
Old 12-06-2020 , 04:35   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #809

Hello,

i got some error if i use my knife ... the server is just crashing ...

Quote:
L 12/06/2020 - 10:22:43: SourceMod error session started
L 12/06/2020 - 10:22:43: Info (map "de_dust2") (file "C:\SteamCMD\csgo_server\csgo\addons\sourcemo d\logs\errors_20201206.log")
L 12/06/2020 - 10:22:43: [DHOOKS] FATAL: Failed to find return address of original function. Check the arguments and return type of your detour setup.
L 12/06/2020 - 10:29:29: SourceMod error session started
L 12/06/2020 - 10:29:29: Info (map "de_dust2") (file "C:\SteamCMD\csgo_server\csgo\addons\sourcemo d\logs\errors_20201206.log")
L 12/06/2020 - 10:29:29: [DHOOKS] FATAL: Failed to find return address of original function. Check the arguments and return type of your detour setup.
This is the error log ...

Plugins :

Quote:
[SM] Listing 30 plugins:
01 "Admin File Reader" (1.10.0.6501) by AlliedModders LLC
02 "SQL Admins (Threaded)" (1.10.0.6501) by AlliedModders LLC
03 "Admin Help" (1.10.0.6501) by AlliedModders LLC
04 "Admin Menu" (1.10.0.6501) by AlliedModders LLC
05 "Advertisements" (2.1.0) by Tsunami
06 "Anti-Flood" (1.10.0.6501) by AlliedModders LLC
07 "AutoExecConfig Testsuite" (0.1.5) by Impact
08 "Basic Ban Commands" (1.10.0.6501) by AlliedModders LLC
09 "Basic Chat" (1.10.0.6501) by AlliedModders LLC
10 "Basic Comm Control" (1.10.0.6501) by AlliedModders LLC
11 "Basic Commands" (1.10.0.6501) by AlliedModders LLC
12 "Basic Info Triggers" (1.10.0.6501) by AlliedModders LLC
13 "Basic Votes" (1.10.0.6501) by AlliedModders LLC
14 "Client Preferences" (1.10.0.6501) by AlliedModders LLC
15 "constraints.smx"
16 "[CS:GO] Deathmatch" (2.1.0) by Maxximou5
17 "Fun Commands" (1.10.0.6501) by AlliedModders LLC
18 "Fun Votes" (1.10.0.6501) by AlliedModders LLC
19 "LagCompensation" (1.0.4) by BotoX
20 "Nextmap" (1.10.0.6501) by AlliedModders LLC
21 "Player Commands" (1.10.0.6501) by AlliedModders LLC
22 "Reserved Slots" (1.10.0.6501) by AlliedModders LLC
23 "Say Sounds (including Hybrid Edition)" (4.0. by Hell Phoenix|Naris|FernFerret|Uberman|psychonic|ed gecom|woody|Miraculix|gH0sTy
24 "Block SM Plugins" (1.0.0) by Bara
25 "SimpleGDPRCompliance" (1.0) by Sarrus
26 "SMACBANS: Block" (0.2.0) by SMACBANS Team
27 "Sound Commands" (1.10.0.6501) by AlliedModders LLC
28 "SQL Admin Manager" (1.10.0.6501) by AlliedModders LLC
29 "Updater" (1.2.2) by GoD-Tony
30 "vphysics.smx"
Extensions :

Quote:
[SM] Displaying 19 extensions:
[01] Automatic Updater (1.10.0.6501): Updates SourceMod gamedata files
[02] Webternet (1.10.0.6501): Extension for interacting with URLs
[03] CS Tools (1.10.0.6501): CS extended functionality
[04] BinTools (1.10.0.6501): Low-level C/C++ Calling API
[05] SDK Tools (1.10.0.6501): Source SDK Tools
[06] Top Menus (1.10.0.6501): Creates sorted nested menus
[07] Client Preferences (1.10.0.6501): Saves client preference settings
[08] MySQL-DBI (1.10.0.6501): MySQL driver implementation for DBI
[09] VPhysics (1.0.0): Source VPhysics Tools
[10] SDK Hooks (1.10.0.6501): Source SDK Hooks
[11] PhysHooks (1.0): Hooks, forwards and natives for LagCompensation, etc.
[12] DHooks (2.2.0-detours15): Dynamic Hooks
[13] Sound Info Library (1.0): Access information of sound files
[14] PTaH (1.1.3): Additional CS:GO Hooks and Natives
[15] cURL Extension (1.3.0.0): cURL Extension
[16] Regex (1.10.0.6501): Provides regex natives for plugins
[17] Socket (3.0.1): Socket extension for SourceMod
[18] <OPTIONAL> file "steamtools.ext.dll": Das angegebene Modul wurde nicht gefunden.
Meta :

Quote:
Listing 8 plugins:
[01] SourceMod (1.10.0.6501) by AlliedModders LLC
[02] CS Tools (1.10.0.6501) by AlliedModders LLC
[03] SDK Tools (1.10.0.6501) by AlliedModders LLC
[04] VPhysics (1.0.0) by Asher Baker (asherkin)
[05] SDK Hooks (1.10.0.6501) by AlliedModders LLC
[06] PhysHooks (1.0) by BotoX
[07] DHooks (2.2.0-detours15) by Dr!fter
[08] PTaH (1.1.3) by Phoenix (╦Ö╬ç┘áÔùÅðñðÁð¢ð©ð║ÐüÔùÅ┘á╬ç╦Ö)
Tenchuu1987 is offline
ttfak12
Junior Member
Join Date: Mar 2016
Old 12-23-2020 , 21:51   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #810

L 12/24/2020 - 10:48:04: [left4dhooks.smx] Failed to find signature: ForceNextStage
ttfak12 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 10:01.


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