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

Server plugins like: zBlock


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ecca
Sexy Santa
Join Date: Jan 2011
Old 05-09-2012 , 06:42   Server plugins like: zBlock
Reply With Quote #1

Hi, well as the title says i'm trying to learn how to code plugins like zBlock that isnt dependent on SourceMod och what else just the plugin for it self, like a dll or something. I've searched and i can't find any documention about this?
ecca is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 05-09-2012 , 19:29   Re: Server plugins like: zBlock
Reply With Quote #2

Maybe you can find something in the developerwiki from valve.
Guess you are right, it seems there is no detailed documentation.

Yours sincerely
Impact
__________________

Last edited by Impact123; 05-09-2012 at 19:29.
Impact123 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-09-2012 , 22:22   Re: Server plugins like: zBlock
Reply With Quote #3

Here's a good place to start, I guess.
__________________
Dr. McKay is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 05-09-2012 , 23:11   Re: Server plugins like: zBlock
Reply With Quote #4

Vsp's are bad code for metamod source.
Dr!fter is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 05-10-2012 , 08:59   Re: Server plugins like: zBlock
Reply With Quote #5

Yee i't doesn't describe alot, in sourcemod there are much more examples and documention so ;( Is there any way to convert sourcemod to a standalone server plugin?
ecca is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-10-2012 , 12:00   Re: Server plugins like: zBlock
Reply With Quote #6

Valve's documentation for VSPs sucks major... [insert rude word here].

Needless to say, you need to:
  1. install the Source SDK through Steam
  2. use GCFScape to explore it to extract the actual programming SDK
  3. create a C++ class that extends the IServerPluginCallbacks class and implements all the abstract methods.
Oh, and that's just what you have to do to start your VSP. To make it do anything useful, you have to use or implement other interfaces (use IVEngineServer or implement IGameEventListener2 for example)

You also don't have access to anything that doesn't use edicts.

(Side note: The MetaMod: Source site has reverse-engineered SDKs for various versions of the Source engine. However, the official solution offers just the original SDK from 2004 or Orange Box SDK from 2007)

Quote:
If you are compiling for Source 2009, you must change the names of some Valve libraries in Makefile and Makefile.vpcm:
In other words, compiling things for multiplayer games breaks without manually making some changes. Oh, and there is no official SDK for L4D/L4D2... sorry.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-10-2012 at 13:17.
Powerlord is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 05-10-2012 , 13:06   Re: Server plugins like: zBlock
Reply With Quote #7

Quote:
Originally Posted by ecca View Post
Yee i't doesn't describe alot, in sourcemod there are much more examples and documention so ;( Is there any way to convert sourcemod to a standalone server plugin?
why? all you need to run sourcemod is metamod source.
Dr!fter is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 05-13-2012 , 20:00   Re: Server plugins like: zBlock
Reply With Quote #8

Ye but it affects server performance to have meta and sm installed so i wanted to learn to script server plugins, is there any tut on like yt or something? Can't find anything...
ecca is offline
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 14:07.


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