Raised This Month: $32 Target: $400
 8% 

[SM] What plugin load order depends on?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-21-2018 , 10:24   [SM] What plugin load order depends on?
Reply With Quote #1

Hi,

how can I place my plugin to be the first in load order list (for test/debug reasons) ?

I changed its name to "a", but it doesn't move from initial 56-th position.

Thanks,
Alex.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 05-21-2018 at 11:44.
Dragokas is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-21-2018 , 10:49   Re: [SM] What plugin load order depends on?
Reply With Quote #2

Plugins are loaded in alpha numerical order (by filename) however i've seen windows/linux act differently depending on their setup.
Mitchell is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-21-2018 , 10:53   Re: [SM] What plugin load order depends on?
Reply With Quote #3

Automatic plugin load order is not guaranteed on any platform. Don't rely on it.
psychonic is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-21-2018 , 10:55   Re: [SM] What plugin load order depends on?
Reply With Quote #4

yea-yea. I know. Thanks.

Mitchell, ahh, you mean, smx-file name. Of course.
Ok, it work (somehow).

Topic is resolved.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 05-21-2018 at 11:45.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-21-2018 , 11:03   Re: [SM] What plugin load order depends on?
Reply With Quote #5

It looks like much as a random.

Now, I was need vice versa, to have my plugin in the last place.

I renamed to "Z.smx" and my plugin is on 56-th place.
I renamed to "ZZ.smx" and it's on 44-th place
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 05-21-2018 at 11:46.
Dragokas is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-21-2018 , 11:09   Re: [SM] What plugin load order depends on?
Reply With Quote #6

Why do you want to change the load order? Your plugin can use OnAllPluginsLoaded() for when all the plugins are loaded in
Mitchell is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-21-2018 , 11:32   Re: [SM] What plugin load order depends on?
Reply With Quote #7

Bacause I need to test different behaviour of Cvar cfg read bug.

In other hand, I need to check server for this bug presence. In that case, plugin needs to be in the last place. But, I think:
Code:
sm plugins unload ..
sm plugins load ..
in server.cfg will be enough for such task.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 05-21-2018 , 12:13   Re: [SM] What plugin load order depends on?
Reply With Quote #8

i think they load alphabetically on windows
__________________
8guawong is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-21-2018 , 12:25   Re: [SM] What plugin load order depends on?
Reply With Quote #9

Maybe.

Here is Linux.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-21-2018 , 12:59   Re: [SM] What plugin load order depends on?
Reply With Quote #10

(Windows) From what I noticed, any plugin that starts with an opening bracket doesn't follow the alphabetical order. Anything with an underscore in front is taken as first priority and anything starting with a bracket will only be arranged based on the first letter of the actual plugin name.

Example:

1. _[L4D2]Survivor_Legs
2. Anti-Speedrunner System
3. [L4D & L4D2] Super Tanks+
__________________
Psyk0tik is offline
Reply


Thread Tools
Display Modes

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 07:16.


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