.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 2, Source and Source Games (http://forums.bots-united.com/forumdisplay.php?f=58)
-   -   interesting tip (http://forums.bots-united.com/showthread.php?t=3480)

Pierre-Marie Baty 26-01-2005 01:52

interesting tip
 
In Source, when you want to load server plugins you have to create an "addon" folder and in it, put as many .vdf files as there are plugins to load, each file having a particuliar syntax which I find unpractical.

If you want to do things in a more metamod-like way, i.e. one single config file for all your plugins, just use the autoexec.cfg :)

Quote:

// begin autoexec.cfg
plugin_load "../../source plugins/release/pmtools2.dll"
plugin_load "../../source plugins/release/bot_plugin.dll"
// EOF
it's no rocket science, but I thought I'd share this one :D

stefanhendriks 26-01-2005 10:52

Re: interesting tip
 
though i don't think this will help fro plugins required to start up at the same time as HL2?

Pierre-Marie Baty 26-01-2005 21:43

Re: interesting tip
 
that's what I thought at first, but yes it does! the autoexec is parsed before the engine starts! try it! 8)

TruB 26-01-2005 22:18

Re: interesting tip
 
dont do it stefan.. PMB is evil.. it will screw up your comp.. thats what he wants.. :p

Rick 26-01-2005 22:29

Re: interesting tip
 
Quote:

Originally Posted by TruB
dont do it stefan.. PMB is evil.. it will screw up your comp.. thats what he wants.. :p

Yes that code looks very suspicious!


9_9

TruB 26-01-2005 23:10

Re: interesting tip
 
Quote:

Originally Posted by Rick
Yes that code looks very suspicious!


9_9

yeah doesnt it.. thats how i come to think about it.. ;)

dead bwoy 26-01-2005 23:18

Re: interesting tip
 
wait... Don't the vdf's automatically get executed?
Nowhere did I set my mani admin plugin to load, and it did anyways!

Pierre-Marie Baty 27-01-2005 00:55

Re: interesting tip
 
as soon as the game finds any vdf file in the addons directory, it loads the plugin mentioned in each. But it's a pain to maintain one different file for each plugin. By deleting the vdfs in your addons folder and loading them in the autoexec like I do you have a metamod plugins.ini-like way of doing the same thing.

@Trub: I do'nt remember having crashed your computer? I gotta try that, someday :D

dead bwoy 27-01-2005 03:52

Re: interesting tip
 
you can't load more than one plugin from the vdf in the addons folder?

Pierre-Marie Baty 27-01-2005 07:18

Re: interesting tip
 
well I tried, but it definitely seems you can't.


All times are GMT +2. The time now is 04:23.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.