.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > YappA > Half-Life 2, Source and Source Games
Half-Life 2, Source and Source Games Discuss about Valve's new FPS game and its mods here Half-Life 2

Reply
 
Thread Tools
interesting tip
Old
  (#1)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default interesting tip - 26-01-2005

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



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: interesting tip
Old
  (#2)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: interesting tip - 26-01-2005

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


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: interesting tip
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: interesting tip - 26-01-2005

that's what I thought at first, but yes it does! the autoexec is parsed before the engine starts! try it!



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: interesting tip
Old
  (#4)
TruB
One Eyed Freak
 
TruB's Avatar
 
Status: Offline
Posts: 1,164
Join Date: Dec 2003
Location: local mall
Default Re: interesting tip - 26-01-2005

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


Have been quoted [6] times



  
Reply With Quote
Re: interesting tip
Old
  (#5)
Rick
Council Member
 
Rick's Avatar
 
Status: Offline
Posts: 690
Join Date: Dec 2003
Location: Holland
Default Re: interesting tip - 26-01-2005

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
  
Reply With Quote
Re: interesting tip
Old
  (#6)
TruB
One Eyed Freak
 
TruB's Avatar
 
Status: Offline
Posts: 1,164
Join Date: Dec 2003
Location: local mall
Default Re: interesting tip - 26-01-2005

Quote:
Originally Posted by Rick
Yes that code looks very suspicious!


9_9
yeah doesnt it.. thats how i come to think about it..


Have been quoted [6] times



  
Reply With Quote
Re: interesting tip
Old
  (#7)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: interesting tip - 26-01-2005

wait... Don't the vdf's automatically get executed?
Nowhere did I set my mani admin plugin to load, and it did anyways!
  
Reply With Quote
Re: interesting tip
Old
  (#8)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: interesting tip - 27-01-2005

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



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: interesting tip
Old
  (#9)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: interesting tip - 27-01-2005

you can't load more than one plugin from the vdf in the addons folder?
  
Reply With Quote
Re: interesting tip
Old
  (#10)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: interesting tip - 27-01-2005

well I tried, but it definitely seems you can't.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com