Graal Forums  

Go Back   Graal Forums > General Forums > Graal Main Forum (English)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-02-2003, 02:40 AM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Exclamation Stefan/Unixmad, read. It's urgent.

Some damned idiot fool has created an infinite loop in UN's NPC server (we think, it may be in a level). If possible we'd like NPC server killed for the time being so we can A) delete the NPC and B) fire the nitwit.
Reply With Quote
  #2  
Old 11-02-2003, 03:13 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Cant you just d/c it in RC?
__________________
--Spark911
Reply With Quote
  #3  
Old 11-02-2003, 03:18 AM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by Spark910
Cant you just d/c it in RC?
We can't log on RC. We get spammed to death. Angel's working on something though that might work.
Reply With Quote
  #4  
Old 11-02-2003, 03:38 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
1) I thought Graal only did 10000 loops per second before it reached it's limit. (Granted, 10000 PMs in a second could kill anything).

2) Was there any malicious intent?
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #5  
Old 11-02-2003, 03:40 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
It's no longer in the serverlist, as of a few seconds ago.

Edit: Stefan's there, that's why.
Reply With Quote
  #6  
Old 11-02-2003, 03:48 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Neoreno
I thought Graal only did 10000 loops per second before it reached it's limit. (Granted, 10000 PMs in a second could kill anything).
It is 10000 iterations without delay, so....
NPC Code:
while (true) {
for (i = 0; i < 10000; i ++)
do_malicious_things();
sleep 0.1;
}

Reply With Quote
  #7  
Old 11-02-2003, 03:50 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Quote:
Originally posted by Loriel

It is 10000 iterations without delay, so....
[code]while (true) {
for (i = 0; i < 10000; i ++)
do_malicious_things();
sleep 0.1;
}
Then it's not really an infinite loop in the traditional sense
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #8  
Old 11-02-2003, 03:55 AM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by Neoreno

2) Was there any malicious intent?
There was.
Stefan fixed it. <3 Stefan.
Reply With Quote
  #9  
Old 11-02-2003, 04:42 AM
SingleChance SingleChance is offline
Kill Pirates
Join Date: Apr 2002
Location: Canada
Posts: 1,296
SingleChance is on a distinguished road
umm clev wanted me to post this for him:

Ok I am the so called "idiot" and the fact that it took hours for stefan to come on and d/c through some high tech what ever just boggles me. I could have disabled it at any time through just my level 2 RC with NC oh and one more thing yes i used an infinite code you idiots. - Clev
Reply With Quote
  #10  
Old 11-02-2003, 04:53 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by SingleChance
umm clev wanted me to post this for him:

Ok I am the so called "idiot" and the fact that it took hours for stefan to come on and d/c through some high tech what ever just boggles me. I could have disabled it at any time through just my level 2 RC with NC oh and one more thing yes i used an infinite code you idiots. - Clev
To Clev !:
Hi idiot. If you can't log on RC, you can't disable it at any time. You're a pathetic excuse for a scripter, and by extension a pathetic excuse for a person.

Hope you enjoy your global banning, but not very much.

And SingleChance, please don't post any more for other people. Thanks.
Reply With Quote
  #11  
Old 11-02-2003, 05:05 AM
Milkdude99 Milkdude99 is offline
Truckin Up
Milkdude99's Avatar
Join Date: Jun 2001
Location: Central Florida
Posts: 3,390
Milkdude99 is an unknown quantity at this point
Send a message via ICQ to Milkdude99
It's against Forum Rules to post for other people in the first place....
__________________

Moon God
Graal.net

---------- Home---------

Reply With Quote
  #12  
Old 11-02-2003, 05:07 AM
SingleChance SingleChance is offline
Kill Pirates
Join Date: Apr 2002
Location: Canada
Posts: 1,296
SingleChance is on a distinguished road
Quote:
Originally posted by Milkdude99
It's against Forum Rules to post for other people in the first place....
what the hell shutup.
Reply With Quote
  #13  
Old 11-02-2003, 05:46 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Loriel

It is 10000 iterations without delay, so....
NPC Code:
while (true) {
for (i = 0; i < 10000; i ++)
do_malicious_things();
sleep 0.1;
}

Technically that wouldn't work. When it hit the 10,000th loop in the for(), it'd abort the script and thus never reach the sleep.
__________________
Reply With Quote
  #14  
Old 11-02-2003, 06:06 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by Kaimetsu


Technically that wouldn't work. When it hit the 10,000th loop in the for(), it'd abort the script and thus never reach the sleep.
It wouldn't abort the script, man. The limit's 10,000 - in other words, that's the maximum.
Reply With Quote
  #15  
Old 11-02-2003, 06:26 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Lance
It wouldn't abort the script, man. The limit's 10,000 - in other words, that's the maximum.
Hmm, you might be right. I haven't experimented with it much.

Either way, a simple timeout system would be more reliable
__________________
Reply With Quote
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 +2. The time now is 07:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.