FirstPersonKSP / Kerbal-VR

An add-on for Kerbal Space Program (KSP) to enable virtual reality.
Other
95 stars 5 forks source link

Handle SteamVR_Input initialization failure gracefully #234

Closed JonnyOThan closed 1 year ago

JonnyOThan commented 1 year ago

I'm not really sure what happened here, but it seems to just completely hose the rest of the app.

  193 [LOG 18:01:51.316] [KerbalVR] Addon Awake
  194 [LOG 18:01:51.338] <b>[SteamVR Setup]</b> Generated you an editor app key of: application.generated.unity.kerbalspaceprogram.exe. This lets the editor tell SteamVR what project this is. Has no effect on builds. This can be changed in Assets/SteamVR/Resources/SteamVR_Settings
  195 [LOG 18:01:51.355] <b>[SteamVR]</b> Successfully loaded 23 actions from action manifest into SteamVR (E:\Kerbal Space Program for VR\GameData\KerbalVR\Input\actions.json)
  196 [EXC 18:01:51.368] NullReferenceException: Object reference not set to an instance of an object
  197     Valve.VR.SteamVR_Action_Pose.SetTrackingUniverseOrigin (Valve.VR.ETrackingUniverseOrigin newOrigin) (at <df405e33c14345feac2340b0178ceb35>:0)
  198     Valve.VR.SteamVR_Input.Initialize (System.Boolean force) (at <df405e33c14345feac2340b0178ceb35>:0)
  199     KerbalVR.Core.InitSteamVRInput () (at <7fb95b01888b4122ab971ac8e19008c2>:0)
  200     KerbalVR.FirstPersonKerbalAddon.Awake () (at <7fb95b01888b4122ab971ac8e19008c2>:0)
  201     UnityEngine.DebugLogHandler:LogException(Exception, Object)
  202     ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
  203     UnityEngine.GameObject:AddComponent(Type)
  204     AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
  205     AddonLoader:StartAddons(Startup)
  206     <LoadObjects>d__90:MoveNext()
  207     UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
  208     <CreateDatabase>d__71:MoveNext()
  209     UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
  210     GameDatabase:StartLoad()
  211     <LoadSystems>d__11:MoveNext()
  212     UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
  213     LoadingScreen:Start()

KSP - 2023-01-12T060704.804.log