# 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:** 67

<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:** [July 11, 2017, 7:05pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1357 "2017-07-11T19:05:39Z")

</div>

> [@Astrea337;735244](#):
>
> If you’re referring to step 12 of the step by step, I can build the solution in Visual Studio just fine.
> 
> It’s step 13 that brings the error (even after a successful build), if I double click on the Uproject file. How does one open the project without using the launcher?
> 
> Apologies for my continued ignorance. is not my area of expertise.

You will need to build it for DevelopmentEditor for the uproject launch to work correctly, that is the build that the launcher uses.

---

<div class="post-metadata">

**Author:** ![uw19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uw19](https://forums.unrealengine.com/u/uw19)\
**Post date:** [July 12, 2017, 5:22am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1358 "2017-07-12T05:22:53Z")

</div>

> [@;732680](#):
>
> No it didn’t, if it says
> 
> ```auto
> 
> LogOnline:Display: STEAM: Loading Steam SDK 1.39
> LogOnline:Warning: STEAM: Steam API disabled!
> LogOnline:Display: STEAM: OnlineSubsystemSteam::Shutdown()
> 
> ```
> 
> that means that the online subsystem didn’t load at all and it reverted back to subsystem NULL / LAN.
> 
> If you are packaging in shipping then it will fail without the appid.txt file. If you are packaging in development then it “IS” the SteamVRHome being enabled as it currently appears to conflict with the OnlineSubsystemSteam in engine and the Steam Subsystem doesn’t load anymore when it is enabled.

I’ve heard several people say that while packaging, the Steam API will be disabled and that’s expected. Which seems to be the case because I finally got it working!

We were using the development build instead of the shipping build (which I didn’t realize existed). Once I put the steamapp\_id.txt folder in the shipping build, it worked! Thanks again for all the help and for the creating the plugin.

---

<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:** [July 12, 2017, 12:24pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1359 "2017-07-12T12:24:09Z")

</div>

> [@uw19;735503](#):
>
> I’ve heard several people say that while packaging, the Steam API will be disabled and that’s expected. Which seems to be the case because I finally got it working!
> 
> We were using the development build instead of the shipping build (which I didn’t realize existed). Once I put the steamapp\_id.txt folder in the shipping build, it worked! Thanks again for all the help and for the creating the plugin.

Development build works with steam as well, the demo project is a dev build, you just don’t need the App\_ID.txt file unless it is a shipping build.

---

<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:** [July 12, 2017, 5:41pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1360 "2017-07-12T17:41:52Z")

</div>

Just finished making sure the plugin was 100% on the 4.17 preview (had to make some changes due to OpenGL / Vulkan change for SteamVR and some minor code changes in motion controllers).

[![](https://i.imgur.com/KdYzcAi.png) ](https://i.imgur.com/KdYzcAi.png)

New social screen nodes in 4.17, “Texture” mode specifically is interesting considering that you can turn off split screen in settings and render a second player to that texture.  
Also lets you map seperate camera views to the screen: IE: the mixed reality solution people are using currently.

The VR model loading functions appear unfinished and not ready currently in engine for 4.17 preview at least. Until they are finished and/or exposed to blueprint I will leave my nodes intact in the plugin.

---

<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:** [July 13, 2017, 10:40pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1361 "2017-07-13T22:40:57Z")

</div>

The main plugin will get a 4.17 branch tomorrow, if you want to check it out even earlier the template already has one for 4.17.

Just trying to check out some things before pushing a branch for the main repository.

_Edit_ 4.17 test branch is up for the main repository, i won’t be making pre-packaged binaries until the next preview release as one is pretty unstable.

---

<div class="post-metadata">

**Author:** ![IslandPlaya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/islandplaya/32/1194500_2.png) [@IslandPlaya](https://forums.unrealengine.com/u/IslandPlaya)\
**Post date:** [July 16, 2017, 9:29am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1362 "2017-07-16T09:29:15Z")

</div>

Hi ,  
I’m using the 4.15 version of your plugin and get a submission packaging error due to my use of the GetIsHmdConnected node in a front-end widget blueprint. Nativization is enabled. It complains about an undefined struct in one of the plugin’s headers.

Is there an easy fix for ?

Thanks once more for the fantastic plugin. I’ll be upgrading to 4.17 as soon as the current project is complete.

---

<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:** [July 16, 2017, 7:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1363 "2017-07-16T19:16:19Z")

</div>

> [@;737367](#):
>
> Hi ,  
> I’m using the 4.15 version of your plugin and get a submission packaging error due to my use of the GetIsHmdConnected node in a front-end widget blueprint. Nativization is enabled. It complains about an undefined struct in one of the plugin’s headers.
> 
> Is there an easy fix for ?
> 
> Thanks once more for the fantastic plugin. I’ll be upgrading to 4.17 as soon as the current project is complete.

In 4.15 nativization was still a little…iffy…Also if you aren’t doing fully nativized then you need to ensure that you nativize any blueprint classes / structs that are referenced by the nativized class or it will throw errors like that.

Paste the error it is giving you and I can tell you if there is an easy fix or if it is an incorrect nativization setup (also which nativize mode you are using).

---

<div class="post-metadata">

**Author:** ![IslandPlaya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/islandplaya/32/1194500_2.png) [@IslandPlaya](https://forums.unrealengine.com/u/IslandPlaya)\
**Post date:** [July 16, 2017, 9:47pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1364 "2017-07-16T21:47:50Z")

</div>

Cheers,  
I have Blueprint Nativization Method set to Inclusive.  
The errors I get are:-

E:\Projects\VMI\VMI\_Stanhope\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin\Public\VRExpansionFunctionLibrary.h(46): error C2079: ‘Z\_Param\_Out\_ATemp’ uses undefined struct ‘FBPActorGripInformation’  
E:\Projects\VMI\VMI\_Stanhope\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin\Public\VRExpansionFunctionLibrary.h(46): error C2079: ‘Z\_Param\_Out\_BTemp’ uses undefined struct ‘FBPActorGripInformation’

---

<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:** [July 16, 2017, 10:52pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1365 "2017-07-16T22:52:08Z")

</div>

> [@;737553](#):
>
> Cheers,  
> I have Blueprint Nativization Method set to Inclusive.  
> The errors I get are:-
> 
> E:\Projects\VMI\VMI\_Stanhope\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin\Public\VRExpansionFunctionLibrary.h(46): error C2079: ‘Z\_Param\_Out\_ATemp’ uses undefined struct ‘FBPActorGripInformation’  
> E:\Projects\VMI\VMI\_Stanhope\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin\Public\VRExpansionFunctionLibrary.h(46): error C2079: ‘Z\_Param\_Out\_BTemp’ uses undefined struct ‘FBPActorGripInformation’

Alright, its not pulling the struct from the Precompiled header when nativizing.

You can either add

```auto

#include "VRBPDatatypes.h"

```

Around the top of the file between the other includes.

Or download the newest version of the 4.15 locked branch, I added the line there for you.

is not an issue in newer versions as they are now Include What You Use and don’t have a precompiled header like used to be the engine standard.

---

<div class="post-metadata">

**Author:** ![IslandPlaya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/islandplaya/32/1194500_2.png) [@IslandPlaya](https://forums.unrealengine.com/u/IslandPlaya)\
**Post date:** [July 17, 2017, 7:26pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1366 "2017-07-17T19:26:36Z")

</div>

> [@;737563](#):
>
> Alright, its not pulling the struct from the Precompiled header when nativizing.
> 
> You can either add
> 
> ```auto
> 
> #include "VRBPDatatypes.h"
> 
> ```
> 
> Around the top of the file between the other includes.
> 
> Or download the newest version of the 4.15 locked branch, I added the line there for you.
> 
> is not an issue in newer versions as they are now Include What You Use and don’t have a precompiled header like used to be the engine standard.

That did the trick! Thank you. 🙂

---

<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:** [July 17, 2017, 11:49pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1367 "2017-07-17T23:49:00Z")

</div>

Pushed a new commit to the repository 4.17 branch (I won’t be updating main page with changes until the release patch notes but these had to happen due to an oversight).

```auto

Forgot to commit some of the steamVR settings and code changes over for 4.17.

Deprecated the vive tracker component as motion controllers finally control it

Made VR stereo widget work correctly in build, however still cannot use the
world locked setting as it floats off position and weirdly with movement.....

Still using my custom world locked setup for now.

```

I’m going over the final setup for the c++ lever component now as well since 4.17 seems stable.

---

<div class="post-metadata">

**Author:** ![KristofferF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KristofferF](https://forums.unrealengine.com/u/KristofferF)\
**Post date:** [July 19, 2017, 6:36pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1368 "2017-07-19T18:36:36Z")

</div>

If I based my project on your 4.16 template and upgraded it to 4.17 with the newest version of your plugin.  
Will I miss out on something important from the template? i.e. the stuff that is in the Content/VRexpansion folder which I based a lot of my objects on.  
Or is there anything else I need to think about when update to a later version of the engine?

---

<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:** [July 19, 2017, 6:46pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1369 "2017-07-19T18:46:35Z")

</div>

> [@KristofferF;738977](#):
>
> If I based my project on your 4.16 template and upgraded it to 4.17 with the newest version of your plugin.  
> Will I miss out on something important from the template? i.e. the stuff that is in the Content/VRexpansion folder which I based a lot of my objects on.  
> Or is there anything else I need to think about when update to a later version of the engine?

4.17 is mostly minor changes to get it working with engine changes, I have been updating the 4.16 branch with any actual changes instead of 4.17.

---

<div class="post-metadata">

**Author:** ![KristofferF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KristofferF](https://forums.unrealengine.com/u/KristofferF)\
**Post date:** [July 19, 2017, 8:23pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1370 "2017-07-19T20:23:16Z")

</div>

> [@;738983](#):
>
> 4.17 is mostly minor changes to get it working with engine changes, I have been updating the 4.16 branch with any actual changes instead of 4.17.

Ok. Thanks for the quick answer.

---

<div class="post-metadata">

**Author:** ![Sleeper\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sleeper\_1](https://forums.unrealengine.com/u/Sleeper_1)\
**Post date:** [July 20, 2017, 1:37pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1371 "2017-07-20T13:37:57Z")

</div>

Ive been having some problems with online matchmaking. Everything seems te be set up correctly and it integrates into Steam, however, sometimes the game fails to find the other hosting server. I try changing the host between PC’s, but it keeps telling me no servers are found. Then after shutting down the program a few times, it finally appears in the server list. Is there a reason why the server finding is so unreliable? Is there something I should do to find the other hosting PC quicker? Can it be because I’m packaging the game quite a lot in different iterations and it gets confused with versions?

---

<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:** [July 20, 2017, 2:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1372 "2017-07-20T14:16:59Z")

</div>

> [@Link\_AJ;739335](#):
>
> Ive been having some problems with online matchmaking. Everything seems te be set up correctly and it integrates into Steam, however, sometimes the game fails to find the other hosting server. I try changing the host between PC’s, but it keeps telling me no servers are found. Then after shutting down the program a few times, it finally appears in the server list. Is there a reason why the server finding is so unreliable? Is there something I should do to find the other hosting PC quicker? Can it be because I’m packaging the game quite a lot in different iterations and it gets confused with versions?

Cross build servers don’t work because by default the engine filters sessions by build ID.

However the more likely reason is that currently the SteamVRHomeBeta interferes with the Steam subsystem loading for some reason.

---

<div class="post-metadata">

**Author:** ![Sleeper\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sleeper\_1](https://forums.unrealengine.com/u/Sleeper_1)\
**Post date:** [July 20, 2017, 2:24pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1373 "2017-07-20T14:24:22Z")

</div>

> [@;739360](#):
>
> Cross build servers don’t work because by default the engine filters sessions by build ID.
> 
> However the more likely reason is that currently the SteamVRHomeBeta interferes with the Steam subsystem loading for some reason.

That is a good point, these problems have started after the Home Beta update. I’m gonna do some further research, thanks.

---

<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:** [July 20, 2017, 5:34pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1374 "2017-07-20T17:34:45Z")

</div>

Pushed new commit to the plugin (4.16 master branch)

```auto

Skeletal mesh fixed when it has a rotated root bone and is gripped with physics

Still not as optimal as I would have liked, but having to deal with center of mass
and the root bone rotational difference between physics body and main is aggravating.
Also fixed the center of mass setting to an offset location when the object is scaled.

Added ClientSideAuthoritive_NoRep grip replication mode, acts just like ClientSide_Authoritive
except it doesn't tell the server about it. Basically it behaves like the old LocalGrip identifier.

Added IsALocalGrip function to the blueprint characters to clean up checking BOTH of the modes
instead of just the one in some spots now (IE: where it chooses to call grip on client or server
side).

Set all grippable components to auto replicate by default.

Otherwise a lot of funky things can happen, I think I removed setting a few patches ago but it
has proved to be important in most cases in multiplayer so i'm forcing it to default true
again. Can still be disabled if you want.

*Note* Stereo layer widget components appear to be updating incorrectly all of the sudden, I think has to do with
the new steamVR patch. I haven't found a fix yet, I can't test on Rift to see if it is working as intended there at the moment.

```

---

<div class="post-metadata">

**Author:** ![Jake1337](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jake1337](https://forums.unrealengine.com/u/Jake1337)\
**Post date:** [July 21, 2017, 3:19pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1375 "2017-07-21T15:19:39Z")

</div>

Hey !  
Judging from the demo vids, and wiki pages I must admit that it sure seems like you’ve done some amazing work on that plugin.  
Also it seems you’re very active in updating and developing it which really makes using it in long-term projects a valid option.  
Our studio has recently released an indie VR title on steam ([Save 80% on Galactic Core: The Lost Fleet (VR) on Steam](http://store.steampowered.com/app/571860/Galactic_Core_The_Lost_Fleet/)).  
The last week few weeks have all about learning and designing what’s necessary to evolve it into a VR multiplayer game (we’re thinking dedicated servers).  
In any case, I’ve been struggling to find an efficient way of play-testing VR multiplayer in the editor.  
I mean even the most basic things, like checking if a replicated actors behaves as expected, if all client’s received some RPC call, if game is consistent between clients.  
So a few questions in terms of general multiplayer VR development workflow:

- How do you test multiplayer functionality each time you make a change?
- Is it possible to some how perform testing for 2 clients and a server using just a single PC and headset (even if the other client is just running a keyboard/mouse version of the game)?
- Any debugging tools /tips you could share from your experience?

---

<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:** [July 21, 2017, 3:43pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1376 "2017-07-21T15:43:23Z")

</div>

> [@Jake1337;739815](#):
>
> Hey !  
> Judging from the demo vids, and wiki pages I must admit that it sure seems like you’ve done some amazing work on that plugin.  
> Also it seems you’re very active in updating and developing it which really makes using it in long-term projects a valid option.  
> Our studio has recently released an indie VR title on steam ([Save 68% on Galactic Core: The Lost Fleet (VR) on Steam](http://store.steampowered.com/app/571860/Galactic_Core_The_Lost_Fleet/)).  
> The last week few weeks have all about learning and designing what’s necessary to evolve it into a VR multiplayer game (we’re thinking dedicated servers).  
> In any case, I’ve been struggling to find an efficient way of play-testing VR multiplayer in the editor.  
> I mean even the most basic things, like checking if a replicated actors behaves as expected, if all client’s received some RPC call, if game is consistent between clients.  
> So a few questions in terms of general multiplayer VR development workflow:
> 
> - How do you test multiplayer functionality each time you make a change?  
> \*\*  
> In 2D, I have a function setup so that if I am not specifically launching in VRPreview then it uses a copy of my character with the head and hands locked (ie acts like a normal character).  
> prior to actual feature release everything gets tested again actually in VR across two computers. was harder to do in the beginning because many of the core features needed testing in VR.  
> However since the plugin is fairly stable I am able to do the majority of initial testing in 2D now.
> 
> It is likely that any eventual system you make would be able to get to that point as well fairly quickly.\*\*
> 
> - Is it possible to some how perform testing for 2 clients and a server using just a single PC and headset (even if the other client is just running a keyboard/mouse version of the game)?
> 
> **See above but set client or server to non vr mode, can launch from uproject without packaging for local testing**
> 
> - Any debugging tools /tips you could share from your experience?
> 
> \*\*Netprofiler is god in engine, every new feature unless you specifically know what the overhead is going to be should be ran through it to check for bandwidth problems.
> 
> As of 4.16 you need to set minimum NetUpdateFrequency times or you will get some very aggravating inconsistencies, is due to AdaptiveNetFrequency being enabled by default now.  
> I wouldn’t turn the feature off though, it is good, you just have to be careful.
> 
> You appear to have some more complicated movement systems in your game, transitioning to multiplayer “correctly” will be more difficult than you expect unless you go the route of  
> full client side movement authority or adapt / re-create the character movement system.\*\*

Commented in bold above

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

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