Game Development Community

explosion on items cause lockup

by Sabrecyd · in Torque Game Engine · 07/23/2002 (7:52 am) · 12 replies

There seems to be a problem when a radius explosion hits a weapon object (or other items). If I throw a weapon (made in MilkShape 1.6.0) and then shoot it with a radius damage projectile the engine locks up. It does this every time and on different computers. I'm using the HEAD version from 7-12-02 at the moment (it does have some things added). I don't get any error messages showing up either.

Has anyone else seen this problem? I want to make sure it isn't something I might have done to the code. I'm wondering if it has to do with the current MilkShape version and/or exporter. The animated flag that is included in the ms folder doesn't cause a lockup when it's shot.

Thanks,
-Sabrecyd

#1
07/23/2002 (8:22 am)
I can't reproduce the problem :/
#2
07/23/2002 (8:52 am)
Crap,
then it must be something I did. Thanks for the reply. I'll have to see if I can figure out what's causing it. If I do, I'll be sure to post it here. I don't get why this wouldn't happen on the MilkShape flag object included in the ms folder though :/
#3
07/23/2002 (9:36 pm)
hmm Possibly related to the bounding box of the model?
#4
07/24/2002 (5:01 am)
It does seem like it has to do with my MilkShape created objects rather then the engine code, but I'm not sure. I'll experiment with some more objects and the bounding box for them and see what happens. It's been happening for quite awhile but I didn't isolate what triggered the lockup until a couple days ago.
#5
07/25/2002 (9:11 am)
I've narrowed this down a bit more.
It seems to only happen on items that I "throw" from my player. If I drop that item in as a "pickup" Shape or Static Shape in the mission editor it's fine. The other wierd part is, if I don't use a areaImpulse setting on the projectile the thrown item is fine when hit. Does anyone have a code snipit on throwing items? I can also post what I'm using, but don't have it with me at the moment.
#6
09/12/2002 (6:05 am)
In case anyone is interested I found out the cause of the problem. Shooting an item created in game that has a mass setting of 1 with a projectile with a large impulse setting (100+). By changing the mass of the item to say 70, everything is fine. So simple, yet so very frustrating. I'm not sure if the very low mass with a high impulse causes some sort of out of range calculation or what, but it does make the engine stop responding.

Hopefully this saves others from the time I've spent searching through code and script trying to figure this one out.
#7
09/13/2002 (2:04 pm)
Someone needs to fix this.... It is well known to me that Torque/Tribes 2 lock up when something (often impulsed) collides at extremely high amounts of speed.
#8
02/17/2003 (7:11 pm)
When any object moves faster than the game can keep up with you get a crash. Its the same for players and vehicles. If they move too fast, crashola.

Did you ever figure out how to get explosions shapes to spawn with script?
#9
02/18/2003 (3:47 am)
It's fairly easy to spawn items and more projectiles but straight explosions spawned only work on the server side and won't appear (might also crash) on any client connections. I haven't looked at it for quite awhile tho so maybe something has changed but I don't think so. I know there's another thread about spawning explosions that probably explains it better.
#10
07/30/2003 (10:01 am)
Thank you so much Sabrecyd! This was happening to me with my items and also shapes. I cant wait to go home and try it out. This was with my 3DS and milkshape files....

Gracias,

-s
#11
07/30/2003 (11:02 am)
Hope it works for you Stephen. I've had way less lockup problems these days :)

Just a note for others that might read this thread:

Quote:
Change #: 3264
Committed by: Tim Gift
Date: 2003/06/13 17:49:48

Description:

Changed the explosion object to use it's base class SceneObject position instead of providing it's own. This fixes problems with creating explosion objects from the scripting language.

Modified Files:

torque/engine/game/fx/explosion.cc (1.4.4.1)
torque/engine/game/fx/explosion.h (1.3.4.1)

YEAH! I love explosions!
#12
07/30/2003 (11:17 am)
I have seen this horrible problem too. It doesn't always happen but there is a bug somewhere in the explosion code that causes the engine to try to make like a billion particles, so it locks up. Hard to track down as I recall because it was so sporatic in nature.