(Update: this was fixed. It was a ship in my fleet missing components.)
Loving the game, but I am getting some crashes all related to "Object reference not set to an instance of an object". Any idea what causes this?
Sunday, 9 February 2020
Crash on layout: shipCombat
Crash reason: Object reference not set to an instance of an object.
Crash report: System.NullReferenceException: Object reference not set to an instance of an object.
at Starship_Command_2.Layouts.ShipCombat.Draw()
at Starship_Command_2.Game1.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Starship_Command_2.Program.Main()
Crash on layout: shipCombat
Crash reason: Object reference not set to an instance of an object.
Crash report: System.NullReferenceException: Object reference not set to an instance of an object.
at Starship_Command_2.Layouts.ShipCombat.Draw()
at Starship_Command_2.Game1.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Starship_Command_2.Program.Main()
Crash on layout: mainScreen
Crash reason: Object reference not set to an instance of an object.
Crash report: System.NullReferenceException: Object reference not set to an instance of an object.
at Starship_Command_2.Controllers.GUIController.Update()
at Starship_Command_2.Game1.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Starship_Command_2.Program.Main()
Crash on layout: sectorScreen
Crash reason: Object reference not set to an instance of an object.
Crash report: System.NullReferenceException: Object reference not set to an instance of an object.
at Starship_Command_2.Controllers.GUIController.Update()
at Starship_Command_2.Game1.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Starship_Command_2.Program.Main()
Crash on layout: shipCombat
Crash reason: Object reference not set to an instance of an object.
Crash report: System.NullReferenceException: Object reference not set to an instance of an object.
at Starship_Command_2.Controllers.Ship.UpdateCaptain(Single dT)
at Starship_Command_2.Controllers.Ship.Process(Single deltaTime, Single updateRate)
at Starship_Command_2.Layouts.ShipCombat.Update(Single dT)
at Starship_Command_2.Game1.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Starship_Command_2.Program.Main()
Crash on layout: shipCombat
Crash reason: Object reference not set to an instance of an object.
Crash report: System.NullReferenceException: Object reference not set to an instance of an object.
at Starship_Command_2.Layouts.ShipCombat.Draw()
at Starship_Command_2.Game1.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Starship_Command_2.Program.Main()