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

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
henk717
Member
Join Date: Jun 2009
Old 05-22-2010 , 07:12   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#591

Its not really a bug its a missing function that cant be used in a sourcemod 1.2.0 compatible version.
This is the error im getting.
Code:
[SM] Unable to load extension "sdkhooks.ext.so": Could not find interface: IPlayerManager
__________________


www.bouncyball.eu - Revolution Coop - Join - Spectate
henk717 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-22-2010 , 11:07   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#592

Well yes, because SourceMod 1.2 is 15 months old, so you shouldn't be using it. If a newer SourceMod doesn't work with your game, file a bug on http://bugs.alliedmods.net. If one of your plugins doesn't work with a newer SourceMod, post in that plugin's topic so it can be fixed.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
henk717
Member
Join Date: Jun 2009
Old 05-22-2010 , 12:48   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#593

If it only was that easy.
Things are really complicated.
Some plugins dont work and doesn't seem to give a clearly error.
But other plugins make the server crash on certain maps only.
This only happens when i update my sourcemod.
I will loose about 6 plugins when i upgrade to make sdkhooks work and the server will become very unstable to.
So a 1.2.0 compatible version whould be welcome.
__________________


www.bouncyball.eu - Revolution Coop - Join - Spectate
henk717 is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 05-22-2010 , 18:56   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#594

Quote:
Originally Posted by henk717 View Post
I will loose about 6 plugins when i upgrade to make sdkhooks work and the server will become very unstable to.
Then those 6 plugins really need to be updated. Under no circumstances should anyone be using SourceMod 1.2 anymore, which wont even work with ANY of the orange box games (TF2, DoD and soon CSS) since the last several updates.

Also, I would suggest updating your server from Window 2000 or 3.1, whatever it is that you use....
naris is offline
henk717
Member
Join Date: Jun 2009
Old 05-23-2010 , 06:14   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#595

As i sayd things are really complicated.
First of all your think that i was using windows.
This is not true.
Windows means crash on some of the maps.
The error's i get are only on some of the maps and usually just crash or give no error at all.
I have runned 1.3 for a while but i preffer these 6 plugins then the 2 plugins i was hopeing to use.
About 4 plugins where misteriously crashing and dont look like the other plugin at all they are not related in any way.
I can easily update if i whould want to but i dont want to loose more plugins then i get.
__________________


www.bouncyball.eu - Revolution Coop - Join - Spectate
henk717 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-23-2010 , 08:46   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#596

There are several people on this forum who can explain how to debug crashes, so if you're actually willing to put work into it, the causes can probably be found and fixed.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Erik V
Member
Join Date: Oct 2009
Old 05-23-2010 , 23:16   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#597

when does SDKHook_PreThink() get called...I would like to replace

some OnGameFrame() code that constantly checks if players are ducking or are not moving forward

will
SDKHook_PreThink() work for this?
Erik V is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-24-2010 , 02:44   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#598

Yes, all Think functions are called every frame too.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Erik V
Member
Join Date: Oct 2009
Old 05-24-2010 , 14:57   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#599

Ok, so what is the advantage to using this instead of OnGameFrame()?
Erik V is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-24-2010 , 15:19   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#600

PreThink, as the name says, is called before OnGameFrame, and allows you to block things like attacking or jumping. Any other hook fires too late, so client prediction will make the blocking look silly.

Also, OnGameFrame is called 66 times per second, no matter what. Think functions are called for a specific entity, so when that entity is destroyed your code won't run anymore. This alleviates the server if that code only needs to run when a specific entity exists.

And, yay 600th post.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami 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 12:39.


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