Raised This Month: $ Target: $400
 0% 

Plugin load order on SM (TF2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Raz
Senior Member
Join Date: Jan 2005
Old 10-22-2008 , 13:37   Plugin load order on SM (TF2)
Reply With Quote #1

Long time no see Allied Modders. Got a quick question for you. A friend of mine coded a quick plugin for me to do something for our tf2 servers. Anyway it seems that said plugin needs to be the last plugin to load. How can this be done considering the plugins load strait out of the plugins folder without a .cfg file.

Thanks
-Raz

PS: I searched around for a bit and found nothing. Apologies if this has been asked already.
Raz is offline
Send a message via AIM to Raz
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 10-22-2008 , 19:44   Re: Plugin load order on SM (TF2)
Reply With Quote #2

They may be done by alphabetical order but what do I know
__________________

DontWannaName is offline
Raz
Senior Member
Join Date: Jan 2005
Old 10-22-2008 , 20:23   Re: Plugin load order on SM (TF2)
Reply With Quote #3

haha. Well can anyone confirm that . Maybe there isn't a way to do it
Raz is offline
Send a message via AIM to Raz
Jamster
Veteran Member
Join Date: Jun 2008
Old 10-22-2008 , 20:28   Re: Plugin load order on SM (TF2)
Reply With Quote #4

hmmm, well, it SHOULDN'T matter what order it comes in at really but yeah, they are loaded alphabetically.
Alternatively you can just add at the bottom of your server.cfg:
sm plugins unload plugin_name
sm plugins load plugin_name
Jamster is offline
Raz
Senior Member
Join Date: Jan 2005
Old 10-22-2008 , 22:43   Re: Plugin load order on SM (TF2)
Reply With Quote #5

Hey thanks i'll give that a try.
Raz is offline
Send a message via AIM to Raz
RM_Hamster
SourceMod Donor
Join Date: Jul 2008
Location: MA
Old 10-22-2008 , 23:56   Re: Plugin load order on SM (TF2)
Reply With Quote #6

I think they load alphabetically, but I'm not sure. It really shouldn't matter though if the plugin is coded correctly.

Oh, and

sm plugins reload plugin_name

works (instead of having both those lines).
RM_Hamster is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 10-23-2008 , 00:48   Re: Plugin load order on SM (TF2)
Reply With Quote #7

What you need to do is call OnAllPluginsLoaded() if you need to make sure the code is last to run, or at least close to it.

Properly coded plugins should deal with it without having the need to reload.
Antithasys is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 10-23-2008 , 12:03   Re: Plugin load order on SM (TF2)
Reply With Quote #8

Quote:
Originally Posted by RM_Hamster View Post
I think they load alphabetically, but I'm not sure. It really shouldn't matter though if the plugin is coded correctly.
Alphabetically on Windows, and I think it's by last modification date on Linux.
bl4nk is offline
BAILOPAN
Join Date: Jan 2004
Old 10-24-2008 , 00:46   Re: Plugin load order on SM (TF2)
Reply With Quote #9

No. There is no guaranteed order on any operating system. Do not rely on any side effect you think you might be seeing.
__________________
egg
BAILOPAN 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 19:22.


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