Uhm, this is interesting...

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Uhm, this is interesting...

Post 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
Image
Wertmanzzz
Lance Corporal
Posts: 21
Joined: Sun Feb 12, 2006 2:09 pm
Location: The Netherlands

Post by Wertmanzzz »

Memory block wrote past end? what? lol?
How could that be?
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 »

Lol! Interesting, seems like they overlooked a potential pointer crash. :)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

Im not about to do that, so care to expalin what happens?
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.

:?
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

hmmmm... get back to work JV !
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

:oops: Viper has me through :lol:

Not that I stopped working though :wink:
Image
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post 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
*/
i'm not f****** angry, i'm from philadelphia .
Image
Post Reply