Raised This Month: $ Target: $400
 0% 

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 07-22-2014 , 14:45   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2691

Quote:
Originally Posted by smetanka_ View Post
This happens when I include sdkhooks:
Code:
L 07/22/2014 - 16:01:29: SourceMod error session started
L 07/22/2014 - 16:01:29: Info (map "") (file "errors_20140722.log")
L 07/22/2014 - 16:01:29: Failed lookup of gEntList - Reverting to networkable entities only
L 07/22/2014 - 16:01:30: Error log file session closed.
L 07/22/2014 - 16:01:30: SourceMod error session started
L 07/22/2014 - 16:01:30: Info (map "arena_badlands") (file "errors_20140722.log")
L 07/22/2014 - 16:01:30: [SM] Unable to load extension "game.tf2.ext": The specified module could not be found.


L 07/22/2014 - 16:01:30: [SDKTOOLS] Could not locate FireOutput - Disabling detour
L 07/22/2014 - 16:01:30: [SM] Unable to load extension "sdkhooks.ext": Failed to setup entity listeners
L 07/22/2014 - 16:01:30: [SM] Unable to load plugin "helloworld.smx": Required extension "SDKHooks" file("sdkhooks.ext") not running
Am I missing some extension file or do I have to wait for gamedata to update? I've tried to use SM 1.5.4 but couldn't get it to run. Any workarounds?
You are missing multiple files. I suggest reinstalling SM.
psychonic is offline
smetanka_
New Member
Join Date: Jul 2014
Old 07-22-2014 , 15:40   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2692

Well, I am very sure that I followed installation guides carefully. It seems to be as trivial as extracting 2 archives. I've used mmsource-1.10.1 and sourcemod-1.6.0 on windows.
Code:
L 07/22/2014 - 16:01:30: [SM] Unable to load extension "game.tf2.ext": The specified module could not be found.
If I try to guess and rename the extension file ("game.tf2.ext.2.tf2.dll" -> "game.tf2.ext.dll") the error from snippet above goes away. But my problem still remains, I cannot load sdkhooks and thus anything requiring it:
Code:
L 07/22/2014 - 21:36:26: SourceMod error session started
L 07/22/2014 - 21:36:26: Info (map "") (file "errors_20140722.log")
L 07/22/2014 - 21:36:26: Failed lookup of gEntList - Reverting to networkable entities only
L 07/22/2014 - 21:36:27: Error log file session closed.
L 07/22/2014 - 21:36:27: SourceMod error session started
L 07/22/2014 - 21:36:27: Info (map "cp_dustbowl") (file "errors_20140722.log")
L 07/22/2014 - 21:36:27: [SM] Unable to load extension "sdkhooks.ext": Failed to setup entity listeners
L 07/22/2014 - 21:36:27: [SDKTOOLS] Could not locate FireOutput - Disabling detour
L 07/22/2014 - 21:36:27: [SM] Unable to load plugin "helloworld.smx": Required extension "SDKHooks" file("sdkhooks.ext") not running
Is there any more logging that I don't know about and that can be used here to find what I'm missing?

Last edited by smetanka_; 07-22-2014 at 15:43.
smetanka_ is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-22-2014 , 15:52   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2693

game.tf2.ext.2.tf2.dll is the correct file name.
__________________
asherkin is offline
smetanka_
New Member
Join Date: Jul 2014
Old 07-22-2014 , 15:54   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2694

Quote:
Originally Posted by asherkin View Post
game.tf2.ext.2.tf2.dll is the correct file name.
Probably, but that was just a guess, it doesn't seem to bring new errors or affect my error.
smetanka_ is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 07-27-2014 , 11:16   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2695

SourceMod 1.6.0, Linux, CS:GO, sdktools fails to load by claiming no such file exists, if it even means the extension itself.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 09-05-2014 , 17:38   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2696

Hello, I seem to have run into a problem with OnTakeDamagePost (on L4D2 on a windows server).

I developed a plugin using player_hurt, however, player_hurt is very unreliable, so I thought to make a move into SDKHook_OnTakeDamagePost, however, when I did so, the server now crashes every time OnTakeDamage is called, I don't really think it's anything wrong I did codewise, so I'd like some input on this.

Here's the code for the plugin in question;
Spoiler
__________________
DeathChaos25 is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 09-05-2014 , 17:50   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2697

Quote:
Originally Posted by DeathChaos25 View Post
Hello, I seem to have run into a problem with OnTakeDamagePost (on L4D2 on a windows server).

I developed a plugin using player_hurt, however, player_hurt is very unreliable, so I thought to make a move into SDKHook_OnTakeDamagePost, however, when I did so, the server now crashes every time OnTakeDamage is called, I don't really think it's anything wrong I did codewise, so I'd like some input on this.

Here's the code for the plugin in question;
Spoiler
It should say why you crashed when you did, like §segmentation fault§.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 09-05-2014 , 21:37   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2698

Quote:
Originally Posted by rautamiekka View Post
It should say why you crashed when you did, like §segmentation fault§.
There's no error, just an immediate crash.

When this plugin is active, the server crashes before damage is even applied, no error logs either.
__________________
DeathChaos25 is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 09-06-2014 , 07:15   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2699

Quote:
Originally Posted by DeathChaos25 View Post
There's no error, just an immediate crash.

When this plugin is active, the server crashes before damage is even applied, no error logs either.
Immediate crash as in the process disappears ?
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 09-06-2014 , 09:31   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2700

Quote:
Originally Posted by rautamiekka View Post
Immediate crash as in the process disappears ?
Yes, "SRCDS has stopped working..." etc...

In game, damage isn't even applied, just immediate crash.

I've re-checked the code, I don't see anywhere where there could be a memory leak, and a very similar code was used, but instead of using OnTakeDamagePost and using a 1 second timer to check damage, I had an event hook onto "player_hurt" and the ForceSuicideTimer was 3.14 instead of 2.14, and it was working perfectly.
__________________

Last edited by DeathChaos25; 09-06-2014 at 09:31.
DeathChaos25 is offline
Closed Thread



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 06:26.


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