PDA

View Full Version : interesting tip


Pierre-Marie Baty
26-01-2005, 02:52
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 :)


// 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, 11:52
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, 22:43
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, 23:18
dont do it stefan.. PMB is evil.. it will screw up your comp.. thats what he wants.. :p

Rick
26-01-2005, 23:29
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
27-01-2005, 00:10
Yes that code looks very suspicious!


9_9

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

dead bwoy
27-01-2005, 00:18
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, 01:55
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, 04:52
you can't load more than one plugin from the vdf in the addons folder?

Pierre-Marie Baty
27-01-2005, 08:18
well I tried, but it definitely seems you can't.

stefanhendriks
27-01-2005, 10:11
If you read botman's readme then even a .GARBAGE files gets loaded in the addons directory..... so it does not matter what the extention or filename is, it will get parsed.

Scary huh