Metamod Plug-ins And Some Other Plugins :d

ZocZoc <?php echo "Hi there!"; ?> Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
edited February 2003 in General Server Discussion
<div class="IPBDescription">What is needed to build them?</div> This topic is mainly a question to [WHO]Them and Voogru (and the plug-ins developers, in general <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo--> ):
What is needed to build a plug-in? (MetaMOD plugin? - and any other if applicable)

If I'm right, it is needed:
<b>*</b> The Half-Life SDK

but, what more is needed?

I would like to start to "understand" the plugins and try to code some, but I would like to know which tools are needed to.

Thanks for the attention <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->

[]'s

-Zoc

* Update: Sorry about the english errors. I'm trying to do my best <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

Comments

  • scottlscottl Join Date: 2002-12-20 Member: 11232Members
    im not much of a coder but:

    Metamod.org
    _____________
    metamod source if doing metamod stuff
    HLsdk
    Knowledge, time, food, coke! who knows what else..... <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • verboseverbose Join Date: 2002-11-25 Member: 9968Members, Constellation
    The half-life SDK, and the metamod sources, both of which are easily found at <a href='http://metamod.org/' target='_blank'>http://metamod.org/</a> . A decent compiler and associated libraries, of course.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    you don't necessarily need the *full* sdk, but you need at least the code portions, and for metamod you'll also need the metamod source on www.metamod.org . And last but not least, a compiler and something to take out your frustration on.
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> And last but not least, a compiler and something to take out your frustration on. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    I have Visual Studio 6 (Microsoft Visual C++ 6) - I think that this should work. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    Does I need something else?

    []'s

    -Zoc

    PS: Thank's for all that replyed this topic... REALLY: Thank you! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--Zoc+Feb 12 2003, 07:45 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Zoc @ Feb 12 2003, 07:45 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
    Does I need something else?

    <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    just grammar lessons.. LOL


    Nah, your good to go if you understand C++ object coding and MM API. or mainly how to use API calls in general.
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->ah, your good to go if you understand C++ object coding and MM API. or mainly how to use API calls in general. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    Let's say that I can start learning now (or at least when I finish downloading the HL SDK. LOL) <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited February 2003
    MSVC 6 is what I do all my development in, and gcc for the linux stuff. So that'll work fine. And you have to be VERY comfortable with pointers to pointers to pointers and stuff like that. As soon as you know the basic usage of stuff like someclass->someotherclass->somevariable then you should be golden.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    u also have to understand class inheritence and templates and is there any polymorphing in MM stuff?

    i haven't looked at it.
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    <!--QuoteBegin--[WHO]Them+Feb 12 2003, 09:53 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([WHO]Them @ Feb 12 2003, 09:53 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> And you have to be VERY comfortable with pointers to pointers to pointers and stuff like that. As soon as you know the basic usage of stuff like someclass->someotherclass->somevariable then you should be golden. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    This thing is getting harder and harder...
    and I haven't downloaded all the HL SDK (it's in 20% now)

    phew...

    But I need to learn... and this is pure C++, I would need to study that someday... lol <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
    I'll do that now <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--cracker jackmac+Feb 12 2003, 07:02 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cracker jackmac @ Feb 12 2003, 07:02 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> u also have to understand class inheritence and templates and is there any polymorphing in MM stuff?

    i haven't looked at it. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    you don't really need any knowledge of templates at all with this stuff. To my knowledge I haven't encoutered any templatized data so far in my plugins.

    as for polymorphism, that happens any time you actually make logical use of inherited classes and their base pointers....
    *cough* CBaseEntity *cough*
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->you don't really need any knowledge of templates at all with this stuff<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    Well.. at least, I'm less scared... <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
    I won't give up, until I done something useful <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->

    PS:
    [WHO]Them,
    Does I said that your avatar from "DOOM" is great? - Was you that made it? <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    i ripped it from the gamespy avatar archive :/
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    another good site: www.planethalflife.com/botman

    BTW, I made my avatar <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
  • hulluhullu Join Date: 2002-11-02 Member: 5289Members
    I have started including all needed headers with plugin sources (which allows me to modify those headers)..
    check <a href='http://hullu.xtragaming.com/' target='_blank'>http://hullu.xtragaming.com/</a>

    No msvc project files included since I use mingw but they should compile with msvc without problems.
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I have started including all needed headers with plugin sources (which allows me to modify those headers)..
    check <a href='http://hullu.xtragaming.com/' target='_blank'>http://hullu.xtragaming.com/</a>

    No msvc project files included since I use mingw but they should compile with msvc without problems. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    Thank you hullu, but I'm a bit lost yet:
    What plug-ins have a "most clear" hearders (To I start reading by it - or to start trying to do something by them) ? (did i hear a "I have a file with all clean readers, ready to start a plugin? <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->)

    And, about mingw, Where can I download it/find more information about it? <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    I have downloaded the Hl SDK 2.3 and some plugins from various authors.
    But, I noticed that the plugins uses some files of the sdk and other files of metamod sources, but not all files, and not the same files for each plugins.
    The question is: What files I need to build a plugin? Which files from the sdk and from metamod I need to use and what files can be discarded?

    Sorry for all this inconvenience, but I'm a bit lost again... <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->

    thanks for all that are helping <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    well, the truth is that you really shouldn't discard anything code-related. so any file that is part of mapping or modeling can be discarded.

    But since different plugins use different data there's no clear definition about what to discard since different plugins will need different files.

    so... in short, you basically need the shortened version of the sdk from the metamod site and all of the metamod source
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
    Error executing cl.exe. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    This is happening when I try to compile many plugins (Incluiding the "lerklift" and the "unstuck pro"), but the file is in the directory and I tryed also to add it to the "hearders folder" on the M$VC++, but It didn't worked... <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->

    and about the SDK that is in the Metamod site, is it this file:
    <a href='http://metamod.org/files/sdk/hl_sdk_v23_source.exe' target='_blank'>http://metamod.org/files/sdk/hl_sdk_v23_source.exe</a> ?

    and I got the metamod source.

    I need that file above?

    PS: I'll try first try to make some pre-made plugins work, and later try to modify them... (do you think that I'll be in a 'good way' trying to do that? <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->)
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    well, the lerklift plugin already has directory including setup assuming that you're using this setup for your paths...

    the metamod main folder should be.....

    <hlsdk main dir>/multiplayer/metamod


    and the lerklift main dir should be......
    <hlsdk main dir>/multiplayer/metamod/lerklift

    using that setup, you shouldn't need to modify anything within the compiler to be able to compile.


    otherwise you can directly edit the project include folders, I believe they're under.....

    project->settings->c/c++
    change category to "preprocessor"
    and there should be a field named "additional include directories" which if you setup those correctly should get you up and running for just 1 project/plugin
  • TownehTowneh Join Date: 2002-11-01 Member: 3523Members
    Not to change the topic too much, but does anyone know where I can find an entity stripper plugin, i've seen one called stripent, and searched the boards, but haven't found much information on them.

    <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
  • verboseverbose Join Date: 2002-11-25 Member: 9968Members, Constellation
    <!--QuoteBegin--Zoc+Feb 14 2003, 09:34 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Zoc @ Feb 14 2003, 09:34 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> PS: I'll try first try to make some pre-made plugins work, and later try to modify them... (do you think that I'll be in a 'good way' trying to do that? <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->) <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    That is the path I strongly recommend. Take a simple, working plugin from someone else and work with it until you can compile and run it. Better to have a feel for how things are built before you throw new code in the mix. Simple plugins...Voogru's randomteam plugin is probably a good one to try out first. I believe he's a MSVC++ guy, so all the extra junk MSVC wants should be there.
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    I've opened the Gorgekick plugin from voogru (It was the only one that compiled at the first try), and I begin to (try to) understand the codes... Well.. It's pretty hard, but it isn't 'un-undestandable'...
    the progress I make at the first look it was to send someone a (fixed) message... I know that this isn't much, but is something to start with <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
    I deleted all the code fo gorgekick (not all, really - modified many parts of it) and ended it that.. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->  PlayerChatMessage(pPlayer, "* Fixed Message goes here\n");<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    but I'd like to send like this:
    nsa_testmessage <playerid> <message>

    it would be?
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->  PlayerChatMessage(pPlayer, "* ",(CMD_ARGV(2-)," \n");

    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    where CMD_ARGV(1) is the PlayerID

    is this correct? <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • EvilGrinEvilGrin Join Date: 2002-11-04 Member: 6851Members
    <!--QuoteBegin--Towneh+Feb 15 2003, 03:32 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Towneh @ Feb 15 2003, 03:32 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> where I can find an entity stripper plugin. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    <a href='http://www.planethalflife.com/botman/stripper2.shtml' target='_blank'>http://www.planethalflife.com/botman/stripper2.shtml</a>
Sign In or Register to comment.