Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal Main Forum (English) (https://forums.graalonline.com/forums/forumdisplay.php?f=4)
-   -   Stefan/Unixmad, read. It's urgent. (https://forums.graalonline.com/forums/showthread.php?t=48941)

protagonist 11-02-2003 02:40 AM

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.

Spark910 11-02-2003 03:13 AM

Cant you just d/c it in RC?

protagonist 11-02-2003 03:18 AM

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.

Neoreno 11-02-2003 03:38 AM

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?

Lance 11-02-2003 03:40 AM

It's no longer in the serverlist, as of a few seconds ago.

Edit: Stefan's there, that's why.

Loriel 11-02-2003 03:48 AM

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;
}


Neoreno 11-02-2003 03:50 AM

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 :p

protagonist 11-02-2003 03:55 AM

Quote:

Originally posted by Neoreno

2) Was there any malicious intent?

There was.
Stefan fixed it. <3 Stefan.

SingleChance 11-02-2003 04:42 AM

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

Lance 11-02-2003 04:53 AM

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 :D!:
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.

Milkdude99 11-02-2003 05:05 AM

It's against Forum Rules to post for other people in the first place....:\

SingleChance 11-02-2003 05:07 AM

Quote:

Originally posted by Milkdude99
It's against Forum Rules to post for other people in the first place....:\
what the hell shutup.

Kaimetsu 11-02-2003 05:46 AM

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.

Lance 11-02-2003 06:06 AM

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.

Kaimetsu 11-02-2003 06:26 AM

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 :)

Lance 11-02-2003 06:30 AM

Quote:

Originally posted by Kaimetsu


Hmm, you might be right. I haven't experimented with it much.

Either way, a simple timeout system would be more reliable :)

Just tested; I am. :)

And indeed, timeout's more reliable, and simpler as well.

Kaimetsu 11-02-2003 06:50 AM

Ever tried nesting semi-infinite loops? They do all kinds of strange stuff. I have yet to understand the counter's inner workings.

Lance 11-02-2003 07:00 AM

Quote:

Originally posted by Kaimetsu
Ever tried nesting semi-infinite loops? They do all kinds of strange stuff. I have yet to understand the counter's inner workings.
Indeed, and in a few cases they managed to exceed the limit, even though by all logic they should not have.


All times are GMT +2. The time now is 09:39 PM.

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