# VR Expansion Plugin

**URL:** <https://forums.unrealengine.com/t/vr-expansion-plugin/68709>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [July 11, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709 "2016-07-11T18:16:57Z")\
**Posts on this page:** 20\
**Page:** 177

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [December 23, 2019, 12:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3605 "2019-12-23T12:16:54Z")

</div>

> [@swolf](#):
>
> Should the grip motion controller function GetControllerDeviceID return a unique id for each motion controller? When I try the setup below, run for both my grip motion controller objects, it always returns the same Device ID value (3). Maybe I am totally misunderstanding what the DeviceID is…? I’m not sure if its completely contextual on my end, it appears that the correct device IDs for my controllers are 4 and 5, according to the output of GetValidTrackedDeviceIds when looking for controllers. For some greater context, I’m trying to differentiate between controller types (primarily, vive wand and index controllers, since most others can be figured out based on the HMD) at grip time so I can adjust the grip transform to look/feel better for the index controllers.

Yeah actually it should, i’ll look into it but I think I fixed something regarding that in 4.23, unsure what engine version you are in.

There is a GetOpenVRControllerType node as well in current plugin versions, its not on the generated node documentation yet is all.

---

<div class="post-metadata">

**Author:** ![swolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@swolf](https://forums.unrealengine.com/u/swolf)\
**Post date:** [December 25, 2019, 11:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3606 "2019-12-25T23:25:12Z")

</div>

Thanks for the reply! Ahh yeah, we’re still on 4.22. Good to know it isn’t just me at least! I don’t see the GetOpenVRControllerType node either, so it’s probably time to update the plugin on my end before I do anything else.

---

<div class="post-metadata">

**Author:** ![JimmothySanchez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JimmothySanchez](https://forums.unrealengine.com/u/JimmothySanchez)\
**Post date:** [December 28, 2019, 5:57am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3607 "2019-12-28T05:57:51Z")

</div>

Hey I’m trying to build a system similar to Boneworks, where in the players hand is physical in the world and can’t go through solid objects. To accomplish I’ve dragged in the skeletal mesh from the valve unreal VR demo level and added it as a grippable skeletal mesh component to a custom player character based on your VR character. I set the grip type on it to custom. I then “grab” it with a grip motion controller component and attempt to set location with sweep on grip tick. Unfortunately grip tick isn’t ever firing even though I can hit breakpoints on the component gip event and the owners grip. Any idea what I’m doing wrong or if is even the best way to approach something like ?

---

<div class="post-metadata">

**Author:** ![TommyOnF1r3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyOnF1r3](https://forums.unrealengine.com/u/TommyOnF1r3)\
**Post date:** [December 28, 2019, 11:49am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3608 "2019-12-28T11:49:33Z")

</div>

Hi all,

I am starting to learn Unreal and try to learn the basics. I have an Oculus Quest and loaded great Plugin. I tried to get the Gesture System to work, but it writes no Data in the Gesture Database. Is it possible, that there are some problems with the Oculus Quest or my project?  
I copied every Step from tutorial [[RunebergVR Plugin v2 - Gestures Component Deep Dive - YouTube](https://www.youtube.com/watch?v=z78CMOwGWxM&list=PLngZ5l9HmlOQBtL8dzDD1lTAdXhsVEm4g&index=7)

My Project Settings are changed for the Quest (Platforms - Android - APK Packaging). I launch the game directly to the Quest (see Screenshot). I can’t use the VR Preview because Oculus Link is not working for me (endless 3 Dots Loading Screen).  
When I paint gestures during the game, they get green but don’t get saved in the Database. I also tried the “Demo Content 6\_Gestures” from the Plugin. It says “New Gesture Recorded” but when i try to paint it, it just crashes. And it also saves no new Gestures in the Database. But at least I can use the Gestures stored in the “DA\_GesturesDB\_Demo”.

Below the Screenshots you can see the part of the log file when the game crashes.

Thanks,  
Tommy

 ![Capture_VR_Pawn.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/e/4e9f759155c0ab3d448b7ed8f2e5f7cd6004f322.png)]([RunebergVR Plugin v2 - Gestures Component Deep Dive - YouTube](https://www.youtube.com/watch?v=z78CMOwGWxM&list=PLngZ5l9HmlOQBtL8dzDD1lTAdXhsVEm4g&index=7))

 ![Capture_Launch.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/c/2cb4b2cbf10e0cde75b9478036c6ac67e86dc5eb.jpeg)

LogPlayLevel: 12-28 12:40:58.704 19660 20090 D UE4 : \*\*\* JavaEnvDestructor: 20090  
LogPlayLevel: 12-28 12:40:58.705 19660 20089 D UE4 : AndroidEGL::ResetDisplay()  
LogPlayLevel: 12-28 12:40:58.705 19660 20089 D UE4 : \*\*\* JavaEnvDestructor: 20089  
LogPlayLevel: 12-28 12:40:59.793 19660 19688 D UE4 : Used memory: 366211  
LogPlayLevel: 12-28 12:41:00.697 19660 20106 D UE4 : [2019.12.28-11.41.00:697][232]LogTcpMessaging: Started Connection to ‘127.0.0.1:59834’  
LogPlayLevel: 12-28 12:41:00.698 19660 20106 D UE4 : [2019.12.28-11.41.00:698][233]LogTcpMessaging: Discovered node ‘A7028A2C40A5692812679294CCBB0A39’ on connection ‘127.0.0.1:59834’…  
LogPlayLevel: 12-28 12:41:10.025 19660 19688 D UE4 : Used memory: 367683  
LogPlayLevel: 12-28 12:41:20.330 19660 19688 D UE4 : Used memory: 368087  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:376][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.377 19660 19686 D UE4 : [2019.12.28-11.41.23:377][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.378 19660 19686 D UE4 : [2019.12.28-11.41.23:378][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.379 19660 19686 D UE4 : [2019.12.28-11.41.23:379][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.379 19660 19686 D UE4 : [2019.12.28-11.41.23:379][266]LogUObjectArray: Warning: Invalid object index -572662307  
LogPlayLevel: Warning: 12-28 12:41:23.379 19660 19686 D UE4 : [2019.12.28-11.41.23:379][266]LogUObjectArray: Warning: Other object in slot  
LogPlayLevel: --------- beginning of crash  
LogPlayLevel: Took 0.3269825s to run adb.exe, ExitCode=0  
LogPlayLevel: Running: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe -s 1PASH9A21T9301 logcat -d  
LogPlayLevel: Took 0.3337775s to run adb.exe, ExitCode=0  
LogPlayLevel: \*\*\*\*\*\*\*\*\*\* RUN COMMAND COMPLETED \*\*\*\*\*\*\*\*\*\*

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [December 28, 2019, 6:08pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3609 "2019-12-28T18:08:10Z")

</div>

> [@JimmothySanchez](#):
>
> Hey I’m trying to build a system similar to Boneworks, where in the players hand is physical in the world and can’t go through solid objects. To accomplish I’ve dragged in the skeletal mesh from the valve unreal VR demo level and added it as a grippable skeletal mesh component to a custom player character based on your VR character. I set the grip type on it to custom. I then “grab” it with a grip motion controller component and attempt to set location with sweep on grip tick. Unfortunately grip tick isn’t ever firing even though I can hit breakpoints on the component gip event and the owners grip. Any idea what I’m doing wrong or if is even the best way to approach something like ?

That is really overdoing it for no reason… You don’t need to grip the hand to sweep it, you can just do it normally on tick. Or better yet, set up a clean physics constraint and have the hand constrained to a primitive component on the controller.

As for why tick grip isn’t firing, it will only fire inside of the gripped component itself.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [December 28, 2019, 6:09pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3610 "2019-12-28T18:09:21Z")

</div>

> [@TommyOnF1r3](#):
>
> Hi all,
> 
> I am starting to learn Unreal and try to learn the basics. I have an Oculus Quest and loaded great Plugin. I tried to get the Gesture System to work, but it writes no Data in the Gesture Database. Is it possible, that there are some problems with the Oculus Quest or my project?  
> I copied every Step from tutorial [URL=“[https://www.youtube.com/watch?v=z78CMOwGWxM&list=PLngZ5l9HmlOQBtL8dzDD1lTAdXhsVEm4g&index=7](https://www.youtube.com/watch?v=z78CMOwGWxM&list=PLngZ5l9HmlOQBtL8dzDD1lTAdXhsVEm4g&index=7)”][https://www.youtube.com/watch?v=z78CMOwGWxM&list=PLngZ5l9HmlOQBtL8dzDD1lTAdXhsVEm4g&index=7](https://www.youtube.com/watch?v=z78CMOwGWxM&list=PLngZ5l9HmlOQBtL8dzDD1lTAdXhsVEm4g&index=7)
> 
> My Project Settings are changed for the Quest (Platforms - Android - APK Packaging). I launch the game directly to the Quest (see Screenshot). I can’t use the VR Preview because Oculus Link is not working for me (endless 3 Dots Loading Screen).  
> When I paint gestures during the game, they get green but don’t get saved in the Database. I also tried the “Demo Content 6\_Gestures” from the Plugin. It says “New Gesture Recorded” but when i try to paint it, it just crashes. And it also saves no new Gestures in the Database. But at least I can use the Gestures stored in the “DA\_GesturesDB\_Demo”.
> 
> Below the Screenshots you can see the part of the log file when the game crashes.
> 
> Thanks,  
> Tommy

You are using Runebergs plugin, not mine, they are two entirely seperate things.

---

<div class="post-metadata">

**Author:** ![TommyOnF1r3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyOnF1r3](https://forums.unrealengine.com/u/TommyOnF1r3)\
**Post date:** [December 28, 2019, 7:02pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3611 "2019-12-28T19:02:34Z")

</div>

> [@](#):
>
> You are using Runebergs plugin, not mine, they are two entirely seperate things.

Oh damned that’s embarrassing :). But nice to know there are more Plugins - will download yours and try it. Thank you.

---

<div class="post-metadata">

**Author:** ![applepiefrost](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@applepiefrost](https://forums.unrealengine.com/u/applepiefrost)\
**Post date:** [December 28, 2019, 9:04pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3612 "2019-12-28T21:04:53Z")

</div>

EDIT: Never mind, I got it to work.

My project was a Blueprint project. In case someone arrives here from Google, here’s what I did:

- Add a C++ class through **File \> New C++ Class \> None \> Next \> Create Class**
- Close Project
- Download the branch with the same engine version as you’re using from [https://bitbucket.org//vrexpansionplugin/downloads/?tab=branches](https://bitbucket.org//vrexpansionplugin/downloads/?tab=branches) (at time of writing 4.24.1 is the latest version of the engine and I grabbed the Master branch)
- In your project folder, create a folder called Plugins
- Unzip the branch you downloaded to Plugins folder
- Relaunch the project, you’ll get a warning like the screenshot below
- Click yes to rebuild the VRExpansion module

ORIGINAL:

Hey Joshua, I’m running into a bit of a problem trying to use your plugin. Do you think you can help me out?

I’m trying to follow along with tutorial:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/b/81b80e3927ac7abd09e5ca0541982de456a0e414.jpeg "VREP Docs: 1 - Intro & Setup") ](https://www.youtube.com/watch?v=3fkCcek6TfU)

I grabbed the 4.24 binary from [VRE Binaries – VR Expansion Plugin](https://vreue4.com/binaries). My engine version is 4.24.1, I’m assuming is the correct binary to use because there’s no 4.24 version to download?

When I load my project it’s giving me warning, I click Yes.

![cant_compile.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/a/5a7eb9828b8487baa4dc9a957abef54fb83f9950.png)

However, I fails with error message:

![cant_compile_2.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/6/e60a8d81f4917b097752b1b71031b7a4a99d776c.png)

Would you happen to know what could be causing ?

---

<div class="post-metadata">

**Author:** ![mittens243](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mittens243](https://forums.unrealengine.com/u/mittens243)\
**Post date:** [December 28, 2019, 9:29pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3613 "2019-12-28T21:29:04Z")

</div>

Hey . I have been following the documentation and tutorials provided on your website as well as scouring forum for posts that might lead me to the answer I’m looking for. While I think I’m on the right track, I’m hoping for some clarification.

My game is primarily focused on gun interactions, so I decided to work on that after I found the basic grabbing interactions working. I have a gun that fires and all that logic works as well as the logic driven by a slider component. What I’m not sure is how I’m supposed to get the secondary interactions from point.

I have no code set up to designate whether the grip in range is a secondary or primary grip. should be able to be figured out by the get grip slot in range and according to what I’ve read on the forum here you suggest running through a branch that then passes through to different logic. Is the right way to go about doing ? The two slot grips on the mesh I have are just for gripping the gun as in a primary and secondary grip for aiming, no interaction with weapon mechanics if is important (VRGripP1 and VRGripS1).

Secondly, how does work for something like grabbing a slider component. On my gun I have a slider component that when I pull my secondary hand’s trigger it grips that slider from within the gun itself. Is there another way I should go about interacting with components on the gun because I’m not sure how I would grip a slider through a socket on the mesh as they’re completely unrelated to each other. Is a case where gameplay tags would be a good move?

Thanks for any pointers I’ve been trying to sus all out myself but it’s getting to the point where I think I need to ask the big man himself, and well here we are. Thanks again and happy holidays!

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [December 29, 2019, 12:08am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3614 "2019-12-29T00:08:19Z")

</div>

> [@mittens243](#):
>
> Hey . I have been following the documentation and tutorials provided on your website as well as scouring forum for posts that might lead me to the answer I’m looking for. While I think I’m on the right track, I’m hoping for some clarification.
> 
> My game is primarily focused on gun interactions, so I decided to work on that after I found the basic grabbing interactions working. I have a gun that fires and all that logic works as well as the logic driven by a slider component. What I’m not sure is how I’m supposed to get the secondary interactions from point.
> 
> I have no code set up to designate whether the grip in range is a secondary or primary grip. should be able to be figured out by the get grip slot in range and according to what I’ve read on the forum here you suggest running through a branch that then passes through to different logic. Is the right way to go about doing ? The two slot grips on the mesh I have are just for gripping the gun as in a primary and secondary grip for aiming, no interaction with weapon mechanics if is important (VRGripP1 and VRGripS1).
> 
> Secondly, how does work for something like grabbing a slider component. On my gun I have a slider component that when I pull my secondary hand’s trigger it grips that slider from within the gun itself. Is there another way I should go about interacting with components on the gun because I’m not sure how I would grip a slider through a socket on the mesh as they’re completely unrelated to each other. Is a case where gameplay tags would be a good move?
> 
> Thanks for any pointers I’ve been trying to sus all out myself but it’s getting to the point where I think I need to ask the big man himself, and well here we are. Thanks again and happy holidays!

Generally for sliders you would be removing the secondary attachment (or primary grip) to interact with the slider manually as it is more natural. But if you have good reason to retain the secondary attachment and grip the slider directly from within the gun that workflow is perfectly acceptable. The new door knob in the example door does that to grip the door when the knob has been disengaged.

As for primary / secondary grip, you can handle it however you want, in the template I set it up so that when you go to grip an object it first checks if another hand is holding the object, if one is then it checks if the object has secondary grips enabled and is within range of a secondary grip slot. If the checks were valid then it moves on to starting a secondary attachment to the hand. If instead one of those checks fails it falls back to checking if it is within range of a primary grip slot to switch hands.

The HasSocketInRange function has a boolean to define if you are checking against a primary or secondary socket, so it will work with both.

Some people prefer to not have that much flexibility and just hardcore distance based secondary gripping and the like, and that is fine as well.

---

<div class="post-metadata">

**Author:** ![JimmothySanchez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JimmothySanchez](https://forums.unrealengine.com/u/JimmothySanchez)\
**Post date:** [January 1, 2020, 12:45am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3615 "2020-01-01T00:45:47Z")

</div>

> [@](#):
>
> That is really overdoing it for no reason… You don’t need to grip the hand to sweep it, you can just do it normally on tick. Or better yet, set up a clean physics constraint and have the hand constrained to a primitive component on the controller.
> 
> As for why tick grip isn’t firing, it will only fire inside of the gripped component itself.

Thanks! I have it working now. I think I was just needlessly over-complicating things in my head.

---

<div class="post-metadata">

**Author:** ![MarcelEissens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcelEissens](https://forums.unrealengine.com/u/MarcelEissens)\
**Post date:** [January 5, 2020, 10:57am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3616 "2020-01-05T10:57:16Z")

</div>

Hey guys!

First I’d like to say that I absolutely love plugin, it saves a lot of time 🙂

However, when I try to enable seamless travel, the client crashes during the level-loading…

The host is a Windows machine (to be replaced with an android tablet) and the client is an Oculus Quest.

Everything else works fine, except the seamless travel.

I debugged the game on the quest and during the seamless travel it throws a “Fatal error 11” and then the game just crashes.

Could it better during the travel the player controller is destroyed and that the reason is for the crash?

I’ve setup a transition map with a new (empty) game mode (world override) and seamless travel enabled.

We’re in kind of a hurry to get working, so please help us 🙂

The unreal engine we’re using is 4.22  
The game is LAN only.

Thanks in advance,

Marcel

Error log from monitor.exe:

01-05 12:51:05.963: D/UE4(19738): localhost-0003199708  
01-05 12:51:05.963: D/UE4(19738): [2020.01.05-11.51.05:963][483]LogWorld: SeamlessTravel to: /Game/Levels/ROOM\_01  
01-05 12:51:06.032: D/UE4(19738): [2020.01.05-11.51.06:032][484]LogAudioMixer: Display: Flush succeeded in the source manager command queue (1).  
01-05 12:51:06.047: D/UE4(19738): [2020.01.05-11.51.06:047][484]LogAudio: Warning: Waited 36.750259ms for audio thread.  
01-05 12:51:06.056: D/UE4(19738): [2020.01.05-11.51.06:056][484]LogAudioMixer: Display: Flush succeeded the source manager command queue (2).  
01-05 12:51:06.056: D/UE4(19738): [2020.01.05-11.51.06:056][484]LogAudio: Warning: Waited 46.268700ms for audio thread.  
01-05 12:51:06.088: D/UE4(19738): [2020.01.05-11.51.06:088][484]LogUObjectHash: Compacting FUObjectHashTables data took 4.53ms  
01-05 12:51:06.094: D/UE4(19738): [2020.01.05-11.51.06:094][484]LogStats: SeamlessTravel FlushLevelStreaming - 0.002 s  
01-05 12:51:06.097: D/UE4(19738): [2020.01.05-11.51.06:097][484]LogWorld: Bringing World /Game/TransitionLevel.TransitionLevel up for play ( tick rate 0) at 2020.01.05-12.51.06  
01-05 12:51:06.098: A/libc(19738): Fatal signal 11 (SIGSEGV), code 2, fault addr 0xdddddddc in tid 19755 (Thread-2)

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [January 5, 2020, 6:33pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3617 "2020-01-05T18:33:39Z")

</div>

> [@MarcelEissens](#):
>
> Hey guys!
> 
> First I’d like to say that I absolutely love plugin, it saves a lot of time 🙂
> 
> However, when I try to enable seamless travel, the client crashes during the level-loading…
> 
> The host is a Windows machine (to be replaced with an android tablet) and the client is an Oculus Quest.
> 
> Everything else works fine, except the seamless travel.
> 
> I debugged the game on the quest and during the seamless travel it throws a “Fatal error 11” and then the game just crashes.
> 
> Could it better during the travel the player controller is destroyed and that the reason is for the crash?
> 
> I’ve setup a transition map with a new (empty) game mode (world override) and seamless travel enabled.
> 
> We’re in kind of a hurry to get working, so please help us 🙂
> 
> The unreal engine we’re using is 4.22  
> The game is LAN only.
> 
> Thanks in advance,
> 
> Marcel

Trying destroying the characters prior to actually traveling, its a common crash in engine with many characters, not just in VR, a lot of them don’t destruct in a normal order when traveling.  
Also the newer versions of the plugin 12/16/19 and later moved the auto drop on character destruction to EndPlay, which fixes a few issues with things like .

---

<div class="post-metadata">

**Author:** ![MarcelEissens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcelEissens](https://forums.unrealengine.com/u/MarcelEissens)\
**Post date:** [January 5, 2020, 7:04pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3618 "2020-01-05T19:04:40Z")

</div>

> [@](#):
>
> Trying destroying the characters prior to actually traveling, its a common crash in engine with many characters, not just in VR, a lot of them don’t destruct in a normal order when traveling.  
> Also the newer versions of the plugin 12/16/19 and later moved the auto drop on character destruction to EndPlay, which fixes a few issues with things like .

Hey, thanks for your response.

The current way I handle traveling is:

Player enters elevator-\>Elevator checks if it can go up-\>Call custom event(Server only) to store all positions of the player-\>Call event on the GameMode-\>Execute console command (servertravel Levelname).

Should I destroy the VivePawnCharacter before the Elevator calls the travel event on the gamemode?  
Currently I do not spawn the VivePawnCharacter in the gamemode, should I do that aswell??  
~~Also, is the newer version of the plugin still compatible with 4.22, or should I upgrade to 4.23?~~

Thanks,  
Marcel

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [January 6, 2020, 1:14pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3619 "2020-01-06T13:14:14Z")

</div>

> [@MarcelEissens](#):
>
> Hey, thanks for your response.
> 
> The current way I handle traveling is:
> 
> Player enters elevator-\>Elevator checks if it can go up-\>Call custom event(Server only) to store all positions of the player-\>Call event on the GameMode-\>Execute console command (servertravel Levelname).
> 
> Should I destroy the VivePawnCharacter before the Elevator calls the travel event on the gamemode?  
> Currently I do not spawn the VivePawnCharacter in the gamemode, should I do that aswell??  
> ~~Also, is the newer version of the plugin still compatible with 4.22, or should I upgrade to 4.23?~~
> 
> Thanks,  
> Marcel

Yeah destroy before the travel event

there is a 4.22 branch that is locked away, I believe that I ported back that change to it yes, not all changes get ported back if the conversion is too much of a hassle.

---

<div class="post-metadata">

**Author:** ![MarcelEissens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcelEissens](https://forums.unrealengine.com/u/MarcelEissens)\
**Post date:** [January 6, 2020, 4:03pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3620 "2020-01-06T16:03:37Z")

</div>

> [@](#):
>
> Yeah destroy before the travel event
> 
> there is a 4.22 branch that is locked away, I believe that I ported back that change to it yes, not all changes get ported back if the conversion is too much of a hassle.

Awesome, I’ll try that tonight, I’ll let you know if it works 🙂

Thank you,

Marcel

---

<div class="post-metadata">

**Author:** ![MarcelEissens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcelEissens](https://forums.unrealengine.com/u/MarcelEissens)\
**Post date:** [January 6, 2020, 9:57pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3621 "2020-01-06T21:57:08Z")

</div>

Okay I got it working (I think) without crashing the client (the transition game mode needs to be an empy one for the same reason you destroy the character before traveling, supposedly), but I’m gonna test with multiple players week.

However, if for some reason the clients crash (empty battery or something :p) the client crashes upon joining the server.  
The player is spawned, but it crashes right after it (screen freezes).

Do you have any idea what it could be?

Thanks in advance,

Marcel

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [January 7, 2020, 1:06am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3622 "2020-01-07T01:06:24Z")

</div>

> [@MarcelEissens](#):
>
> Okay I got it working (I think) without crashing the client (the transition game mode needs to be an empy one for the same reason you destroy the character before traveling, supposedly), but I’m gonna test with multiple players week.
> 
> However, if for some reason the clients crash (empty battery or something :p) the client crashes upon joining the server.  
> The player is spawned, but it crashes right after it (screen freezes).
> 
> Do you have any idea what it could be?
> 
> Thanks in advance,
> 
> Marcel

That could be a million things, you’d have to check their crash log.

---

<div class="post-metadata">

**Author:** ![FurrieBunnie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FurrieBunnie](https://forums.unrealengine.com/u/FurrieBunnie)\
**Post date:** [January 7, 2020, 1:42pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3623 "2020-01-07T13:42:29Z")

</div>

Feels like a silly question - anyone know how to “click” the “host server” button in the example level using Vive controllers? None of the interactions that I can find seem to allow me to do anything in the HUD.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [January 7, 2020, 2:17pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/3624 "2020-01-07T14:17:24Z")

</div>

> [@FurrieBunnie](#):
>
> Feels like a silly question - anyone know how to “click” the “host server” button in the example level using Vive controllers? None of the interactions that I can find seem to allow me to do anything in the HUD.

Turn on the laser beam to interact with it, I assume you are on 4.24 where all of the mappings are different, you can check the input settings in the project and the LaserBeam\_Left / Right actions toggle it. The vive controller is bound to the system button by default.

[Previous page](https://forums.unrealengine.com/t/vr-expansion-plugin/68709.md?page=176)

[Next page](https://forums.unrealengine.com/t/vr-expansion-plugin/68709.md?page=178)
