Looks like bullets with Type = PenetratingHit
cause this crash (System.NullReferenceException
). I've modified homing torpedoes for this test. Affects any (vanilla) shield. Save file included
http://www.mediafire.com/file/e8h64pgslkj3w4d
System.NullReferenceException:
Cosmoteer.Ships.Parts.Defenses.ArcShield.OnHit(Vector2D bulletLoc, Int32 damage) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Defenses\ArcShield.cs:line 147.
Cosmoteer.Simulation.HitEffects.ShieldDamageEffectRules.DoEffect(HitEffectParams effectParams) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Simulation\HitEffects\ShieldDamageEffectRules.cs:line 30.
Cosmoteer.Simulation.HitEffects.MultiHitEffectRules.DoEffect(HitEffectParams effectParams) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Simulation\HitEffects\MultiHitEffectRules.cs:line 19.
Cosmoteer.Bullets.Hits.BulletPenetratingHit.DoHitEffect(Ship hitShip, Part hitPart, ArcShield hitShield, HitRules hitRules, Vector2D worldPoint, Vector2D worldNormal) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Bullets\Hits\BulletPenetratingHit.cs:line 311.
Cosmoteer.Bullets.Hits.BulletPenetratingHit.OnHitShield(ArcShield shield, Vector2D worldPoint, Vector2D worldNormal) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Bullets\Hits\BulletPenetratingHit.cs:line 213.
Cosmoteer.Bullets.Hits.BulletPenetratingHit.OnCollision(Fixture ourFixture, Fixture theirFixture, Contact contact) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Bullets\Hits\BulletPenetratingHit.cs:line 148.
FarseerPhysics.Dynamics.Contacts.Contact.Update(ContactManager contactManager) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\3rd Party\Farseer Physics Engine 3.5\Dynamics\Contacts\Contact.cs:line 305.
FarseerPhysics.Dynamics.World.SolveTOI(TimeStep& step) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\3rd Party\Farseer Physics Engine 3.5\Dynamics\World.cs:line 860.
FarseerPhysics.Dynamics.World.Step(Single dt) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\3rd Party\Farseer Physics Engine 3.5\Dynamics\World.cs:line 1258.
Halfling.Scene.Dim2.SceneRoot.UpdatePhysics() in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Scene\Dim2\SceneRoot.cs:line 1088.
Cosmoteer.Simulation.SimRoot.UpdatePhysics() in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Simulation\SimRoot.cs:line 452.
Halfling.Scene.Dim2.SceneRoot.<Update>b__161_0() in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Scene\Dim2\SceneRoot.cs:line 725.