Author Topic: What does crash(); do  (Read 3913 times)

Type deletedatablocks(); in console :3 do it and you'll be cool..
-_- I expected better of YOU, my friend >_>

it makes you crash, what do you think it does?

Maybe it tries to access the data at x+1 position in an array of x size, thus causing a fatal error.

it makes you crash, what do you think it does?
We want to know HOW it crashes... meaning what happens within the engine that causes it to crash when you type in crash();.

it makes you crash, what do you think it does?
Read the OP first.

I'm guessing it's something put into Blockland to amuse the one who put it in.

Probably some sick joke that takes place when someone builds something epic.

Then some dude types it into the eval.

D:

OH.

It crashes Blockland by putitng in ConsoleEntry::eval();

If you care to do trace(1); and then crash();

it says it in the console.

OH.

It crashes Blockland by putitng in ConsoleEntry::eval();

If you care to do trace(1); and then crash();

it says it in the console.
I thought NO ONE would ever figure this out XD

It crashes Blockland by putitng in ConsoleEntry::eval();

ConsoleEntry::eval is the function used to run anything put in the console

Do trace(1); and then type anything, it will call ConsoleEntry::eval

ConsoleEntry::eval is the function used to run anything put in the console

Do trace(1); and then type anything, it will call ConsoleEntry::eval
Guess no one will. x_x

Guess no one will. x_x

Chuck norris knows it.









It probably divides something by zero.

ConsoleEntry::eval is the function used to run anything put in the console

Do trace(1); and then type anything, it will call ConsoleEntry::eval

well it crashed me

Code: [Select]
function ConsoleEntry::eval()
{
   %text = ConsoleEntry.getValue();
   echo("==>" @ %text);
   eval(%text);
   ConsoleEntry.setValue("");
}

It crashes because it's creating an infinite loop, by evaling "ConsoleEntry::Eval();" before it clears what's in ConsoleEntry.
This is not what crash(); does, and it not what causes it to crash, just what happens when you manually call ConsoleEntry::Eval in the console
Try switching around those two lines, putting it in an add-on (Or just putting it all into one line and pasting it into console), and putting "ConsoleEntry::Eval()" in the console. It won't crash.

Code: [Select]
function ConsoleEntry::eval()
{
   %text = ConsoleEntry.getValue();
   echo("==>" @ %text);
   ConsoleEntry.setValue("");
   eval(%text);
}

or

function ConsoleEntry::eval(){ %text = ConsoleEntry.getValue(); echo("==>" @ %text); ConsoleEntry.setValue(""); eval(%text); }
« Last Edit: July 13, 2010, 02:54:21 AM by Headcrab Zombie »

Chuck norris knows it.









It probably divides something by zero.
-_______________-

My guess is that crash() imports some C libraries with syntax errors in them and stuff, and thus crashes when failing to import them.
Thanks  :cookie: