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

Server is terminating


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 08-26-2012 , 06:15   Server is terminating
Reply With Quote #1

Hello maybe anyone know program which can check my plugin? Cause my server is terminating with it.

Compiling without errors.
Plugin working without errors.
Plugin using :
PHP Code:
#include < sourcemod >
#include < sdktools >
#include < sdkhooks >
#include < clientprefs > 
Server on (Linux).
Plugin with 1549 lines (I didn't find any mistakes).

Or maybe you can tell me for what reasons server can terminate if plugin compiling without errors?
__________________
Of all the things I lost, I miss my brain the most.
Caldeum is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 08-26-2012 , 06:59   Re: Server is terminating
Reply With Quote #2

When exactly does it crash? Can you narrow it down to a single function?
__________________
FaTony is offline
TheAvengers2
BANNED
Join Date: Jul 2011
Old 08-26-2012 , 07:39   Re: Server is terminating
Reply With Quote #3

Quote:
Originally Posted by Caldeum View Post
maybe you can tell me for what reasons server can terminate if plugin compiling without errors?
lots
TheAvengers2 is offline
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 08-26-2012 , 07:44   Re: Server is terminating
Reply With Quote #4

Server is working nice when he is empty. It's hard to say when exactly. Last time when i check it crash when i kill enemy and second time when i respawn. I think it's random
__________________
Of all the things I lost, I miss my brain the most.
Caldeum is offline
MPQC
SourceMod Donor
Join Date: Dec 2011
Old 08-26-2012 , 15:45   Re: Server is terminating
Reply With Quote #5

I find the biggest amount of crashes is when something is dealing with models or materials, from files missing.
MPQC is offline
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 08-27-2012 , 03:37   Re: Server is terminating
Reply With Quote #6

Problem is in this code. Too much if ?

PHP Code:
public Action:OnTakeDamage victim, &attacker, &inflictor, &Float:damage, &damagetype )
{
    if ( 
g_iEnable && victim != attacker && attacker && attacker <= MaxClients && 
        
victim && victim <= MaxClients && 
        
g_iFunction && option_functionattacker ] && 
        
GetUserFlagBitsattacker ) & ADMIN_ACCESS && 
        
GetClientTeamvictim ) != GetClientTeamattacker ) )
    {
            
EmitSoundToClientattackersoundsGetRandomInt0) ], attackerSNDCHAN_AUTOSNDLEVEL_NORMALSND_NOFLAGS1.0SNDPITCH_NORMAL, -1vecPosNULL_VECTORtrue0.0 );
    }

__________________
Of all the things I lost, I miss my brain the most.

Last edited by Caldeum; 08-27-2012 at 03:37.
Caldeum is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 08-27-2012 , 12:27   Re: Server is terminating
Reply With Quote #7

Try to update to the latest snapshot of both MM:S and SM.
__________________
FaTony is offline
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 08-27-2012 , 13:26   Re: Server is terminating
Reply With Quote #8

same...
__________________
Of all the things I lost, I miss my brain the most.
Caldeum is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 08-27-2012 , 13:40   Re: Server is terminating
Reply With Quote #9

Put PrintToConsole or similar between all natives calls, you might be able to catch one that is crashing.
__________________
FaTony 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 17:03.


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