Server crash script :)

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Server crash script :)

Post 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
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Useful :roll: :P
Image
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post by Mj »

Hehe, just what I always needed :P
ImageImage
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

And even quicker if you have a rountine trying to divide by zero! :lol:
Grassy
An ambiguous question will get a similar answer...
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Wouldn't that just flood you with script errors with the game running anyway?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

No I think it gets trapped before executing the script anyway.
An ambiguous question will get a similar answer...
Post Reply