Externalcamera.cfg breaks bows example in 2.2.1
See original GitHub issueI know 2.2.1 is deprecated but I’m still someone in the wild using it for now.
I just noticed that when using externalcamera.cfg for mixed reality it breaks all things related to the bow example. The bow, arrows and the arrow spawner.
This is the only information I was able to get.
NullReferenceException: Object reference not set to an instance of an object
at VRTK.Examples.Archery.BowAim.DoObjectGrab (System.Object sender, InteractableObjectEventArgs e) [0x00000] in <filename unknown>:0
at VRTK.VRTK_InteractableObject.OnInteractableObjectGrabbed (InteractableObjectEventArgs e) [0x00000] in <filename unknown>:0
at VRTK.VRTK_InteractableObject.Grabbed (UnityEngine.GameObject currentGrabbingObject) [0x00000] in <filename unknown>:0
at VRTK.VRTK_InteractGrab.InitGrabbedObject () [0x00000] in <filename unknown>:0
at VRTK.VRTK_InteractGrab.GrabInteractedObject () [0x00000] in <filename unknown>:0
at VRTK.VRTK_InteractGrab.AttemptGrabObject () [0x00000] in <filename unknown>:0
at VRTK.VRTK_InteractGrab.DoGrabObject (System.Object sender, ControllerInteractionEventArgs e) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) VRTK.ControllerInteractionEventHandler:invoke_void__this___object_ControllerInteractionEventArgs (object,VRTK.ControllerInteractionEventArgs)
at VRTK.VRTK_ControllerEvents.OnAliasGrabOn (ControllerInteractionEventArgs e) [0x00000] in <filename unknown>:0
at VRTK.VRTK_ControllerEvents.EmitAlias (ButtonAlias type, Boolean touchDown, Single buttonPressure, System.Boolean& buttonBool) [0x00000] in <filename unknown>:0
at VRTK.VRTK_ControllerEvents.Update () [0x00000] in <filename unknown>:0
(Filename: Line: -1)
I would like to know how to modify the affected script to protect itself from this issue. I’m assuming it’s because externalcamera.cfg and mixed reality uses a 3rd controller for camera tracking and some how this is breaking something in the vrtk script.
It’s a lot of work for me to migrate to 3.1 so I cannot budget the time yet. I made poor coding decisions and I’m too tightly coupled to 2.2.1.
I would appreciate if you could post a patch that I could then manually drag and drop into my project.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (3 by maintainers)
Top GitHub Comments
Sorry dude, I was just referring to the gross income on patron. But I now understand you are allocating this for resources after reading the reddit. This is the same in how my video game earns a few thousand dollars in early access sales but I’m not personally pocketing any of the money, it sits in a bank account and is used for the purchasing of assets and resources for the game.
Thanks for the additional info and links in the reply today that actually helps me understand the issue better.
We are way off topic now so I’m sorry for this going off the rails. I am surprised that no company is interested in funding an abstraction layer like this especially since many games are steamvr, oculus and psvr capable.
For anyone reading this in the future (don’t worry @ssshake, just making sure everyone understands this, as you’ll see in the links VRTK has got some trolls spreading false info 😩):
References: https://www.reddit.com/r/Vive/comments/654b1q/vrtk_amazing_toolkit_and_its_free_why_not_pledge/dg7o21l/ https://www.reddit.com/r/Vive/comments/654b1q/vrtk_amazing_toolkit_and_its_free_why_not_pledge/dg879tb/