Could someone show me simply how to use Crash Detect? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Could someone show me simply how to use Crash Detect? (
/showthread.php?tid=479520)
Could someone show me simply how to use Crash Detect? -
Dokins - 05.12.2013
Title says all, I'm a little confused about to how to run/install and check logs?
Re: Could someone show me simply how to use Crash Detect? -
Konstantinos - 05.12.2013
Download the latest version of it:
https://github.com/Zeex/samp-plugin-...ases/tag/v4.12
Place the crashdetect.dll (for Windows) or crashdetect.so (for Linux) and add it last to the server.cfg
pawn Код:
// Windows:
plugins some_plugin1 some_plugin2_blabla crashdetect
// Linux:
plugins some_plugin1.so some_plugin2_blabla.so crashdetect.so
In case the server crashes for any reason or it gives errors (without crashes), it will print in the console/server log some information related to that crash/problem.
Compiling with debug info (
https://github.com/Zeex/samp-plugin-...ith-debug-info), in the next crash/problem may give the lines which was caused at (which is pretty useful).
There are few runtime errors and using ****** will help you to understand what's wrong with it; however, we're always here to help!
Re: Could someone show me simply how to use Crash Detect? -
Dokins - 05.12.2013
Thank you.
Could you tell me if this is good or not and briefly explain, if you wouldn't mind.
pawn Код:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 9696 bytes
Code size: 515516 bytes
Data size: 1388400 bytes
Stack/heap size: 16384 bytes; estimated max. usage=1857 cells (7428 bytes)
Total requirements: 1929996 bytes
Re: Could someone show me simply how to use Crash Detect? -
Konstantinos - 05.12.2013
It is good.
You don't have to worry about it as long as estimated max. usage (bytes) is lesser than Stack/heap size.
In case you wish to get better results (less size etc.), there's a really great thread about code optimisations:
https://sampforum.blast.hk/showthread.php?tid=57018
Re: Could someone show me simply how to use Crash Detect? -
Dokins - 05.12.2013
I really appreciate that, Thank you very much.