Page 1 of 1

Server crash script :)

Posted: Tue Apr 26, 2005 11:44 am
by Rookie One.pl
Hi,

I was so bored I wrote a small server crash script. :P Just call this thread anywhere:

Code: Select all

crasher:
	level.loop_protection = 0
	while (1)
	{
		level.threadcount = int(level.threadcount) + 1 // this is for NIL stuff protection ;)
		println "Started thread #" level.threadcount
		thread crasher
	}
end
My dedicated server could handle only 9 instances of this thread, after that it kills the server with a 'stack overflow' message. If you run the map once again, it'll just pop a red 'recursive error' text and the only thing you'll be able to do is to close the server. :P

Rookie One

Posted: Tue Apr 26, 2005 1:20 pm
by jv_map
Useful :roll: :P

Posted: Tue Apr 26, 2005 1:27 pm
by Mj
Hehe, just what I always needed :P

Posted: Sat Apr 30, 2005 2:11 pm
by Grassy
And even quicker if you have a rountine trying to divide by zero! :lol:
Grassy

Posted: Sat Apr 30, 2005 4:24 pm
by Rookie One.pl
Wouldn't that just flood you with script errors with the game running anyway?

Posted: Mon May 02, 2005 1:46 pm
by Grassy
No I think it gets trapped before executing the script anyway.