ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

Oculus controller binding currently broken #86

Closed wirelessdreamer closed 5 years ago

wirelessdreamer commented 5 years ago

Unity 2018.2.0f2 (Oculus only supports versions below 2018.3 VIU 1.10.2 (Current) Oculus Integration 1.32.1 (Current)

created a new project with all of the above, loaded example scene 7, and saw this error when trying to bind:

ArgumentException: Cannot mapping invalid deviceIndex(0) HTC.UnityPlugin.Vive.ViveRole+Map.MappingRoleValue (Int32 roleValue, UInt32 deviceIndex) (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/ViveRoleMap.cs:428) HTC.UnityPlugin.Vive.ViveRole+GenericMap1[HTC.UnityPlugin.Vive.BodyRole].MappingRole (BodyRole role, UInt32 deviceIndex) (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/ViveRoleMap.cs:651) HTC.UnityPlugin.Vive.ViveRole+MapHandler1[HTC.UnityPlugin.Vive.BodyRole].MappingRole (BodyRole role, UInt32 deviceIndex) (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/ViveRoleMapHandler.cs:48) HTC.UnityPlugin.Vive.ViveRole+MapHandler1[HTC.UnityPlugin.Vive.BodyRole].MappingRoleIfUnbound (BodyRole role, UInt32 deviceIndex) (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/ViveRoleMapHandler.cs:55) HTC.UnityPlugin.Vive.BodyRoleHandler.Refresh () (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/RoleMaps/BodyRole.cs:60) HTC.UnityPlugin.Vive.BodyRoleHandler.OnAssignedAsCurrentMapHandler () (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/RoleMaps/BodyRole.cs:37) HTC.UnityPlugin.Vive.ViveRole+Map.set_Handler (IMapHandler value) (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/ViveRoleMap.cs:125) HTC.UnityPlugin.Vive.ViveRole.AssignMapHandler[BodyRole] (HTC.UnityPlugin.Vive.MapHandler1 mapHandler) (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/ViveRoleMap.cs:748) HTC.UnityPlugin.Vive.ViveRole.Initialize () (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/ViveRole.cs:60) HTC.UnityPlugin.Vive.BindingInterface.BindingInterfaceRoleSetPanelController.RefreshRoleSelection () (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/BindingInterface/BindingInterfaceRoleSetPanelController.cs:218) HTC.UnityPlugin.Vive.BindingInterface.BindingInterfaceRoleSetPanelController.Awake () (at Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/BindingInterface/BindingInterfaceRoleSetPanelController.cs:50)

SIde note. I ran into this while adding rift support to my game. I thought i was doing something wrong when i went to add new roles, and couldn't pin down what was wrong. I did this sandbox test and it failed.

wirelessdreamer commented 5 years ago

I've been unable to reproduce this issue for the past week. must of been a system specific issue.