AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How you can determinate weather the crash was caused by too much entities (https://forums.alliedmods.net/showthread.php?t=108220)

10000000 11-02-2009 21:09

How you can determinate weather the crash was caused by too much entities
 
Title says all.

fysiks 11-02-2009 21:20

Re: How you can determinate weather the crash was caused by too much entities
 
I believe there is a specific error for that.

VMAN 11-02-2009 21:26

Re: How you can determinate weather the crash was caused by too much entities
 
Use HLSW log and wait until it crashes

10000000 11-02-2009 23:42

Re: How you can determinate weather the crash was caused by too much entities
 
What I mean is, will it just crash or there is a message like fysiks said?

fysiks 11-03-2009 00:21

Re: How you can determinate weather the crash was caused by too much entities
 
It will crash with a message.

joaquimandrade 11-03-2009 02:40

Re: How you can determinate weather the crash was caused by too much entities
 
Hook FM_Sys_Error that passes a string for your function (the error message) and log it.

10000000 11-03-2009 11:43

Re: How you can determinate weather the crash was caused by too much entities
 
This way I suppose

PHP Code:

register_forward(FM_Sys_Error"hi_im_crasher")

public 
hi_im_crasher(const err[]) 
    
log_to_file("itcrashed.log"err

And this will be called from any kind of crashes?

Thanks quim

joaquimandrade 11-03-2009 13:56

Re: How you can determinate weather the crash was caused by too much entities
 
Quote:

Originally Posted by 10000000 (Post 979712)
This way I suppose

PHP Code:

register_forward(FM_Sys_Error"hi_im_crasher")

public 
hi_im_crasher(const err[]) 
    
log_to_file("itcrashed.log"err

And this will be called from any kind of crashes?

Thanks quim

It will happen on deliberate crashes from the engine. Like "message sent before ..."

De nada, Speed :D


All times are GMT -4. The time now is 17:39.

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