Page 1 of 1

Uhm, this is interesting...

Posted: Wed Oct 25, 2006 9:30 am
by jv_map
Today I bring you a bug :) , in itself that may not be very exhilarating but mind you this gotta be one of the fanciest bugs ever :wink:

Note: It only happens when you have developer on (developer 1).

All you have to do is make a .scr file in the global folder, name doesn't even matter, and put in it:

Code: Select all

uhm:
	println "scary eh"
	self.health--
end
Then start a game of mohaa... nothing will happen at first, but it gets interesting when you restart or start a new map ;)

Note: you're gonna need task manager to kill off the mohaa process lol :P

Posted: Wed Oct 25, 2006 11:58 am
by Wertmanzzz
Memory block wrote past end? what? lol?
How could that be?

Posted: Wed Oct 25, 2006 2:59 pm
by Rookie One.pl
Lol! Interesting, seems like they overlooked a potential pointer crash. :)

Posted: Wed Oct 25, 2006 10:45 pm
by Ophisâ„¢
Im not about to do that, so care to expalin what happens?

Posted: Thu Oct 26, 2006 1:26 am
by lizardkid
basically the scripting doesn't take into consideration that there may NOT BE a "self". Which is interesting, because any other variable (when undefined) yields a simple text error and continues on it's merry way.

I guess self is just passed when the thread is called, there's no self and it's not a required argument...

interesting.

Posted: Thu Oct 26, 2006 6:14 am
by jv_map
Yah but it's a lot stranger than that :P

If you remove the println line, it won't crash.
If you replace self.health-- with self.health = self.health-1, it won't crash.

:?

Posted: Thu Oct 26, 2006 10:11 am
by ViPER
hmmmm... get back to work JV !

Posted: Thu Oct 26, 2006 10:46 am
by jv_map
:oops: Viper has me through :lol:

Not that I stopped working though :wink:

Posted: Thu Oct 26, 2006 1:22 pm
by PKM
speaking of which, anyone look at the tail end of the german_sheppard.tik ?
/*QUAKED ai_german_hund_dog-real (1.0 0.5 0.0) (-12 -12 0) (12 12 80)fart or die
*/