Game Development Community

Crash with strafing and firing (decal related) - LOGGED

by Jacob Neville · in Torque 3D Professional · 11/19/2009 (3:40 pm) · 5 replies

Working on some machine gun style code.

Just to get started I create a new project, and edit the RockerLauncher.cs stateTimeoutValue values to all be 0.1, to get a fast-shooting rocket launcher. In game, standing still and shooting is no problem, but if I start strafing left or right while shooting, the game will crash after 6-8 rockets have been fired. No errors I can see in the console that would explain this.

Any ideas anyone? Did this with 2 projects both had the same problem. Unfortunately I can't try on a different computer.

Edit: Bit more testing shows that it doesn't crash if the rockets are shot into the air, just if they are exploding one right after another. Still doesn't explain why it only happens when I'm strafing though...

Also, I have tried commenting out the explosions, and even without a visible explosion the game crashes after several rockets impact the terrain.

Edit 2: As Steve mentions below, commenting out the decal from the rocket stops the crashing.

#1
11/19/2009 (4:03 pm)
Build a debug, run it from the Compiler, and post the trace when it crashes.

I've got (custom) weapons that fire at a higher rate than that and no probs.

[edit]
Yeah I can replicate this crash when strafing in stock New Project.

[DOUBLE_EDIT]
Me thinks it be a decal issue.
Comment out decal = ScorchRXDecal; in datablock ProjectileData(RocketLauncherProjectile)
#2
11/19/2009 (4:41 pm)
You are correct Steve, commenting out the decal has stopped the crashing.
#3
11/19/2009 (4:46 pm)
Yeah, this seems to be a "stock" New Project issue. I've rigged my custom project with bullet decals, even the same decal and can't get a crash in that.
#4
11/19/2009 (9:40 pm)
Also an issue on stock NewProject 1.1alpha.
#5
11/20/2009 (4:44 pm)
Logged as THREED-812