Virtual Cockpit issues playing custom mission as TUG

Issue #447 resolved
Jason McNew created an issue
NullReferenceException: Object reference not set to an instance of an object
PlayerShipController.InitializeOverlayInstrumentsForShip (OverlayCockpitInstruments overlayInstruments, Common.EntityTypeIdentifier shipType) (at Assets/Code/Behaviors/PlayerShipController.cs:187)
PlayerShipController.Initialize (Common.EntityTypeIdentifier shipType) (at Assets/Code/Behaviors/PlayerShipController.cs:144)
GameManager.InitializeCockpit () (at Assets/Code/Behaviors/Managers/GameManager.cs:600)
GameManager+<PerformResourceLoading>c__Iterator1.MoveNext () (at Assets/Code/Behaviors/Managers/GameManager.cs:399)
GameManager+<LoadCombatSequence>c__Iterator0.MoveNext () (at Assets/Code/Behaviors/Managers/GameManager.cs:335)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

Comments (1)

  1. Xwvm Art

    The exception was being caused by no weapons being defined for the tug. Added null checking in commit 27e1162 which resolves issue and allows tug to be flyable. Please note that the virtual cockpit orientation will not be correct until a mainCamera point is added for the XWVM tug model.

  2. Log in to comment