Raised This Month: $51 Target: $400
 12% 

Server crashing since updates?


Post New Thread Reply   
 
Thread Tools Display Modes
michaelrw
Senior Member
Join Date: Jul 2017
Old 12-11-2017 , 02:21   Re: Server crashing since updates?
Reply With Quote #171

Quote:
Originally Posted by sneaK View Post
Basically what he's saying is that precaching custom content OnConfigsExecuted is now too late and is what is causing crashes after the update - it's best to edit any plugins precaching content to do it OnMapStart.

This aligns with my findings as well, nice find!
does this mean we simply search through our sp files and replace any of the OnConfigsExecuted() with OnMapStart() ?? for people who arent coders.. can someone just confirm this is what we need to do, and if not, spell it out very plainly. many thanks
__________________

michaelrw is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-11-2017 , 05:06   Re: Server crashing since updates?
Reply With Quote #172

Quote:
Originally Posted by michaelrw View Post
does this mean we simply search through our sp files and replace any of the OnConfigsExecuted() with OnMapStart() ?? for people who arent coders.. can someone just confirm this is what we need to do, and if not, spell it out very plainly. many thanks
yes
__________________
8guawong is offline
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 12-11-2017 , 06:46   Re: Server crashing since updates?
Reply With Quote #173

Quote:
Originally Posted by michaelrw View Post
does this mean we simply search through our sp files and replace any of the OnConfigsExecuted() with OnMapStart() ?? for people who arent coders.. can someone just confirm this is what we need to do, and if not, spell it out very plainly. many thanks
Nope!

This is how todo it:
You search for OnConfigsExecuted() > in the Brackets {} > See if there is AddFileToDownloads Table and any kind of Precaching Stuff like:
PrecacheDecal
PrecacheGeneric
PrecacheModel
PrecacheParticleSystem
PrecacheSound

> Cut out these Lines > Find OnMapStart(), if it dosent exists, create it(Dont forget the brackets {}) > Paste the Stuff you cut out there and your Done

If you do it elseway, you could move other Stuff that belongs to be there
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

Last edited by DJPlaya; 12-11-2017 at 06:47.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 12-11-2017 , 06:48   Re: Server crashing since updates?
Reply With Quote #174

Quote:
Originally Posted by michaelrw View Post
does this mean we simply search through our sp files and replace any of the OnConfigsExecuted() with OnMapStart() ?? for people who arent coders.. can someone just confirm this is what we need to do, and if not, spell it out very plainly. many thanks
Quote:
Originally Posted by 8guawong View Post
yes
No...

You need to move any of the functions from OnConfigsExecuted to OnMapStart:
HTML Code:
PrecacheDecal
PrecacheGeneric
PrecacheModel
PrecacheSentenceFile
PrecacheSound
AddFileToDownloadsTable
Leave any other code that was in OnConfigsExecuted there.
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!


Last edited by Byte; 12-11-2017 at 06:48.
Byte is offline
kgns
Senior Member
Join Date: May 2017
Location: Istanbul, Turkey
Old 12-11-2017 , 08:00   Re: Server crashing since updates?
Reply With Quote #175

i dont think that the problem is only with precaching stuff on OnConfigsExecuted.

my ws knife plugin and gloves plugin do not have any files to download or precache, but they still crash the server for some of you. creating a timer of 1 seconds to do everything in OnConfigsExecuted and emptying OnConfigsExecuted seems to fix the crash. as i said, this happens WITHOUT any Precache or AddFileToDownloadsTable calls in OnConfigsExecuted

https://github.com/kaganus/weapons/b...rds.sp#L18-L50
https://github.com/kaganus/gloves/bl...ves.sp#L63-L87

clearly some shit has changed, and no one figured out what yet. so i would just keep using GOTV and forget about this madness until some hero figures it out and shares it with us, if that even happens.

until then, do not try to fix any plugins unless they have idiotic logic like precaching stuff on OnConfigsExecuted. just use GOTV
__________________

OyunHost Sunucu Hizmetleri: https://www.oyunhost.net
kgns is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-11-2017 , 10:20   Re: Server crashing since updates?
Reply With Quote #176

Quote:
Originally Posted by Byte View Post
No...

You need to move any of the functions from OnConfigsExecuted to OnMapStart:
HTML Code:
PrecacheDecal
PrecacheGeneric
PrecacheModel
PrecacheSentenceFile
PrecacheSound
AddFileToDownloadsTable
Leave any other code that was in OnConfigsExecuted there.

is there any code that definetly needs to be in OnConfigsExecuted?
__________________
8guawong is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 12-11-2017 , 11:44   Re: Server crashing since updates?
Reply With Quote #177

Quote:
Originally Posted by 8guawong View Post
is there any code that definetly needs to be in OnConfigsExecuted?
Sure, an example is code which needs to override some convar from another plugin. You need it in OnConfigsExecuted, otherwise you'll have race conditions depending on which plugin is loaded first.
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
geoxd1
Junior Member
Join Date: Aug 2017
Location: Poland
Old 12-11-2017 , 12:05   Re: Server crashing since updates?
Reply With Quote #178

my server is laging snice last update and its not crashing with gotv any way ho to prevent lags?
geoxd1 is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 12-11-2017 , 13:45   Re: Server crashing since updates?
Reply With Quote #179

Quote:
Originally Posted by geoxd1 View Post
my server is laging snice last update and its not crashing with gotv any way ho to prevent lags?
Turn off GOTV and fix/update your plugins.
Turning on GOTV just to prevent a crash when you don't use it is stupid.
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 12-11-2017 , 17:30   Re: Server crashing since updates?
Reply With Quote #180

Quote:
Originally Posted by Byte View Post
Turn off GOTV and fix/update your plugins.
Turning on GOTV just to prevent a crash when you don't use it is stupid.
Thats Valve my Friend, ime writing a GiveMeAll Plugin right now just as Payback for the last Update - Noteable is that this is not forbidden by the Server Guidline
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

Last edited by DJPlaya; 12-11-2017 at 17:30.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
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 04:58.


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