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

Does SourceMod reload plug-ins on map change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
g0ldz
New Member
Join Date: Jan 2008
Old 01-25-2008 , 22:34   Does SourceMod reload plug-ins on map change
Reply With Quote #1

Hi I'm running a zombie master dedicated windows server, and it is crashing a lot. I don't close a handle in my plug in when the plug in stops. I was wondering if SourceMod will reload my plug-in when the map changes.

If it does, this is why my server is crashing (memory leaks).

Thanks,

g0ldz

Last edited by g0ldz; 01-25-2008 at 22:54.
g0ldz is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-26-2008 , 00:19   Re: Does SourceMod reload plug-ins on map change
Reply With Quote #2

Yes, all plugins are reloaded upon map change, and all open handles are closed.
bl4nk is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 01-26-2008 , 14:50   Re: Does SourceMod reload plug-ins on map change
Reply With Quote #3

Quote:
Originally Posted by bl4nk View Post
Yes, all plugins are reloaded upon map change, and all open handles are closed.
No.

Plugins are only reloaded if they have been changed. Open handles are only closed when the plugin unloads/reloads. This does NOT occur on map change automatically.
__________________
I'm a blast from the past!
ferret is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-26-2008 , 18:30   Re: Does SourceMod reload plug-ins on map change
Reply With Quote #4

Well then why do my timers and such stop when the map changes?
bl4nk is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 01-26-2008 , 19:11   Re: Does SourceMod reload plug-ins on map change
Reply With Quote #5

If they're TIMER_REPEAT, they shouldn't.
__________________
I'm a blast from the past!
ferret is offline
BAILOPAN
Join Date: Jan 2004
Old 01-27-2008 , 18:27   Re: Does SourceMod reload plug-ins on map change
Reply With Quote #6

(And make sure you aren't using TIMER_NO_MAPCHANGE.)

To the original poster: "crashing (memory leaks)"

Those are two very different things...
__________________
egg
BAILOPAN is offline
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 09-16-2022 , 01:53   Re: Does SourceMod reload plug-ins on map change
Reply With Quote #7

Quote:
Originally Posted by BAILOPAN View Post
(And make sure you aren't using TIMER_NO_MAPCHANGE.)

To the original poster: "crashing (memory leaks)"

Those are two very different things...
So, if this is called every OnMapStart:

CreateTimer(0.2, Timer_CheckMenu, _, TIMER_FLAG_NO_MAPCHANGE|TIMER_REPEAT);

It will create a new timer thread each time OR will it notice the timer's handle is already used and ignore it?
__________________
El Diablo War3Evo 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 16:46.


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