Thats how you do it, shipping builds default to 32bit though so I assume that is why you were running into the alignment problem unless specifically selecting 64 bit.
Just updated the plugin to correct the 32bit alignment issue anyway as well as an extra debug draw I had left in the motion controllers.
You can grab the zip and replace your current one or install a git tool and download it that way.
Note Temp had seperate head/body collision tracking and it has been removed with update, it was not stable enough, I will wait for waist / ankle trackers before trying it again.
**09/30/2016**- Bugfixes
Corrected some transforms not passing by reference, 32 bit builds wouldn't compile because of alignment issues.
Removed some test code that was mistakenly left in the motion controller .cpp.
Fixed? Merging networked movements, commented out until further testing.
Removed some debug draw calls that weren't used anyway in VR, it was the only thing keeping the oculus render branch from compiling.
Cool trying it now, updated to new version and repackaging now. Will report back shortly.
edit unfortunately still not working… although there appears to be a different issue now. Progress!
UATHelper: Package Plugin Task (Windows): Running AutomationTool...
UATHelper: Package Plugin Task (Windows): Automation.ParseCommandLine: Parsing command line: BuildPlugin -Rocket -Plugin="C:/Users//Documents/Unreal Projects/VRProject012/Plugins/VRExpansionPlugin.uplugin" -Package="C:/Users//Desktop/CAOTS SimpleTown"
UATHelper: Package Plugin Task (Windows): Automation.Process: Setting up command environment.
UATHelper: Package Plugin Task (Windows): CommandUtils.ThreadedCopyFiles: Copying 42 file(s) using 64 thread(s)
UATHelper: Package Plugin Task (Windows): BuildPlugin.ExecuteBuild: Reading plugin from C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Plugins\VRExpansionPlugin\VRExpansionPlugin.uplugin...
UATHelper: Package Plugin Task (Windows): BuildPlugin.CompilePlugin: Building plugin for host platforms: Win64
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Editor Win64 Development -project="C:\Users\\Desktop\CAOTS SimpleTown\HostProject\HostProject.uproject" -module VRExpansionPlugin -receipt
UATHelper: Package Plugin Task (Windows): "C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Plugins\VRExpansionPlugin\Binaries\Win64\UE4Editor.target" -NoHotReload
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing full C++ include scan (building a new target)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Creating makefile for UE4Editor (no existing makefile)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Parsing headers for UE4Editor
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Running UnrealHeaderTool "C:\Users\\Desktop\CAOTS SimpleTown\HostProject\HostProject.uproject" "C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest" -LogCm
UATHelper: Package Plugin Task (Windows): ds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Reflection code generated for UE4Editor in 4.3172776 seconds
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing 5 actions (9 in parallel)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: [3/5] Resource PCLaunch.rc
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: [4/5] Resource ModuleVersionResource.rc.inl
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Module.VRExpansionPlugin.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: VRExpansionPlugin.generated.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: [5/5] Link UE4Editor-VRExpansionPlugin.dll
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Creating library C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Plugins\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-VRExpansionPlugin.lib and object C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Plugins\VRExpansionPlugin\Intermediate\Build\Win64\UE
4Editor\Development\UE4Editor-VRExpansionPlugin.exp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Total build time: 41.19 seconds
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: Took 41.3300377s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Package Plugin Task (Windows): BuildPlugin.CompilePlugin: Building plugin for target platforms: Win64, Win32, Android, HTML5
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Win64 Development -project="C:\Users\\Desktop\CAOTS SimpleTown\HostProject\HostProject.uproject" -module VRExpansionPlugin -receipt "
UATHelper: Package Plugin Task (Windows): C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Plugins\VRExpansionPlugin\Binaries\Win64\UE4Game.target" -NoHotReload -ignorejunk
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing full C++ include scan (building a new target)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Creating makefile for UE4Game (no existing makefile)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Parsing headers for UE4Game
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Running UnrealHeaderTool "C:\Users\\Desktop\CAOTS SimpleTown\HostProject\HostProject.uproject" "C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Intermediate\Build\Win64\UE4Game\Development\UE4Game.uhtmanifest" -LogCmds="
UATHelper: Package Plugin Task (Windows): loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Reflection code generated for UE4Game in 3.4229042 seconds
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing 5 actions (9 in parallel)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: PCH.UELinkerFixupsName.h.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Module.VRExpansionPlugin.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: VRExpansionPlugin.generated.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: UELinkerFixups.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: [5/5] Link UE4-VRExpansionPlugin.lib
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Total build time: 29.59 seconds
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: Took 29.7181191s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Win64 Shipping -project="C:\Users\\Desktop\CAOTS SimpleTown\HostProject\HostProject.uproject" -module VRExpansionPlugin -receipt "C:\
UATHelper: Package Plugin Task (Windows): Users\\Desktop\CAOTS SimpleTown\HostProject\Plugins\VRExpansionPlugin\Binaries\Win64\UE4Game-Win64-Shipping.target" -NoHotReload -ignorejunk
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing full C++ include scan (building a new target)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Creating makefile for UE4Game (no existing makefile)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing 5 actions (9 in parallel)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: PCH.UELinkerFixupsName.h.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: VRExpansionPlugin.generated.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Module.VRExpansionPlugin.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: UELinkerFixups.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: [5/5] Link UE4-VRExpansionPlugin-Win64-Shipping.lib
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Total build time: 23.54 seconds
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: Took 23.6680482s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Win32 Development -project="C:\Users\\Desktop\CAOTS SimpleTown\HostProject\HostProject.uproject" -module VRExpansionPlugin -receipt "C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Plugin
s\VRExpansionPlugin\Binaries\Win32\UE4Game.target" -NoHotReload -ignorejunk
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing full C++ include scan (building a new target)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Creating makefile for UE4Game (no existing makefile)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Parsing headers for UE4Game
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Running UnrealHeaderTool "C:\Users\\Desktop\CAOTS SimpleTown\HostProject\HostProject.uproject" "C:\Users\\Desktop\CAOTS SimpleTown\HostProject\Intermediate\Build\Win32\UE4Game\Development\UE4Game.uhtmanifest" -LogCmds="
UATHelper: Package Plugin Task (Windows): loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Reflection code generated for UE4Game in 3.4928218 seconds
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing 5 actions (9 in parallel)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: PCH.UELinkerFixupsName.h.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: VRExpansionPlugin.generated.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Module.VRExpansionPlugin.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: UELinkerFixups.cpp
LogDirectoryWatcher: A directory notification for '../../../Engine/Plugins/' was aborted.
LogDirectoryWatcher: A directory notification for '../../../../../../Users//Documents/Unreal Projects/VRProject012/Plugins/' was aborted.
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: [5/5] Link UE4-VRExpansionPlugin.lib
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Total build time: 28.08 seconds
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: Took 28.2093467s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Win32 Shipping -project="C:\Users\\Desktop\CAOTS SimpleTown\HostProject\HostProject.uproject" -module VRExpansionPlugin -receipt "C:\
UATHelper: Package Plugin Task (Windows): Users\\Desktop\CAOTS SimpleTown\HostProject\Plugins\VRExpansionPlugin\Binaries\Win32\UE4Game-Win32-Shipping.target" -NoHotReload -ignorejunk
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing full C++ include scan (building a new target)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Creating makefile for UE4Game (no existing makefile)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Performing 5 actions (9 in parallel)
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: PCH.UELinkerFixupsName.h.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Module.VRExpansionPlugin.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: VRExpansionPlugin.generated.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: UELinkerFixups.cpp
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: [5/5] Link UE4-VRExpansionPlugin-Win32-Shipping.lib
UATHelper: Package Plugin Task (Windows): UnrealBuildTool: Total build time: 22.95 seconds
UATHelper: Package Plugin Task (Windows): CommandUtils.Run: Run: Took 23.0823145s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Package Plugin Task (Windows): Program.Main: ERROR: AutomationTool terminated with exception: ERROR: GetBuildPlatform: No BuildPlatform found for Android
UATHelper: Package Plugin Task (Windows): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Package Plugin Task (Windows): BUILD FAILED
Whatever the case is, thanks for all the help so far! Much appreciated. Hopefully what I put out with it (eventually) is worth your efforts! Headed to bed now though… will keep trying tomorrow…
Doesn’t appear to be related to the plugin, also when posting logs do me a favor and post them in “CODE” instead of “QUOTE” so that they scroll. Would also appreciate it if you’d edit that into your posts.
Roger that! Thanks for the pointer. Will look into that (although having checked my shipping settings which should only be targeting Windows… it’s not immediately obvious why it’s giving me that error!)
Ok, so after staying up way past my bed time and testing… it’s still spitting out the same error at me. The error only comes up when I package through the plugin.
I created a new project using the VR Template (actually all the projects I’ve tried have been through the VR template), put the plugins in the new project directory, compiled, then packaged… same result - none of my blueprints have touched that new project.
At point… I can only surmise that it’s some weird setting in my editor that I can’t see (I’ve set compatibility to Windows only)… or maybe it’s a bad interaction with the VR Template?
There isn’t a bad interaction with the template i’ve had both running, I don’t know what you have going wrong on your end.
Though you did just say plugins, want to make sure you just have the one, and that your build.cs has it included as packaging out requires that.
Edit In fact you said it was actually packaging but wouldn’t load the plugin didn’t you. That means you skipped one of the install steps, specifically step 2 below which makes sure that the plugin packages out.
It should look like :
inside of “ProjectFolder/Source/ProjectName/ProjectName.Build.cs”
All non engine plugins (or plugins from marketplace) need to have step.
Yep, I did miss that step. And now that I’ve added it in, I’m even more confused! Apologies!
Basically it won’t recompile after the initial compile from adding in the blank C++ class. It says:
Warning: RebindPackages not possible for specified packages (or application was compiled in monolithic mode.)
So then I go into Visual Studio and try to build it from there:
And I get back these error messages:
Severity Code Description Project File Line Suppression State
Error Couldn't find module rules file for module 'VRExpansionPlugin'. VRProject02 C:\Users\\Documents\Unreal Projects\VRProject02\Intermediate\ProjectFiles\EXEC 1
Error MSB3075 The command ""C:\Program Files (x86)\Epic Games\4.13\Engine\Build\BatchFiles\Build.bat" VRProject02Editor Win64 Development "C:\Users\\Documents\Unreal Projects\VRProject02\VRProject02.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run command. VRProject02 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37
Hi I’m coming across the weirdest bug with plugin. So after getting it to work with the Oculus forward renderer I tried to put it in a game I was working on so I created a copy of that game on a external hard drive and then added C++ to my project. As soon as visual studio 2015 started up I shut it down. I don’t know if I was meant to do that. When I tried to build the plugin it failed so I deleted that copy of my game and went to the back up. After creating a new back up I then tried to build your plugin, on the back up, that was on the external drive and it worked.
Ok its official plugin is an artificial intelligence program designed to make me go crazy. If I move it from the Unreal library just one folder back into Documents it works.
How long is the file name in total when it is in that folder that you moved one back out of? Only thing I can think of is that the total path name for it is too large. Shouldn’t have a problem otherwise.
You don’t want to just close Visual Studio though, its best to build for new engine versions by building through the IDE, I don’t package every binary for plugin as it changes too often and even then a different branch requires a rebuild anyway.
Ya that was it. The file length. I changed it from C:\Users\User\Documents\Unreal Projects\Slider 4.12 - 2 4.12 - 2 4.12 to C:\Users\User\Documents\Unreal Projects\Slider Q and now it works. Man Unreal Engine 4 has some weird quirks.
Yes! That did the trick. In the end it was a simple problem - but when you have no idea what you’re doing, and the error messages look angry, it’s all a bit confusing! Thanks a heap !
Hi mortentral you have been a huge help so far and I hate to bother you again but hopefully is for the last time. In my game when I move up to an object or a wall it pushes it away instead of allowing you to walk through the wall which is great but it seems that the mesh that pushes back is bigger than me so it feels like there is about a foot between me and the wall. How can I change it so that I can reduce the distance my mesh pushes the world back?
Under VRRootCapsule on the character, set the capsule offset variable to -8 to -25 on the x axis, -8 is about as far as you can take it before the headset clips into the wall a little bit, -18 to -20 is what feels natural to me (capsule is at my actual feet). If you turn off “Hidden In Game” on the capsule you can see where it is and get a feel for the different settings. You just have to decide how much view clipping into walls is acceptable to you (could also detect headset intersection with geometry and darken view).
I tried doing separate collision for around the head area than around the body and it somewhat worked but without actual waist / foot tracking it wasn’t stable enough for me to merge.
Edit You can also change the capsule size itself to further tweak things.
Thanks. Ya I noticed that when I went above -8. Weird things started happening though if I tried to change the capsule size. Half your body ends up in the floor.