# BP\_MotionController missing SteamVRChaperone component. Cant find /Script/SteamVR

**URL:** <https://forums.unrealengine.com/t/bp-motioncontroller-missing-steamvrchaperone-component-cant-find-script-steamvr/370787>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Blueprint, question, steamvr-development\
**Created:** [September 17, 2016, 2:45pm UTC](https://forums.unrealengine.com/t/bp-motioncontroller-missing-steamvrchaperone-component-cant-find-script-steamvr/370787 "2016-09-17T14:45:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mekrob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mekrob](https://forums.unrealengine.com/u/Mekrob)\
**Post date:** [September 17, 2016, 2:45pm UTC](https://forums.unrealengine.com/t/bp-motioncontroller-missing-steamvrchaperone-component-cant-find-script-steamvr/370787/1 "2016-09-17T14:45:30Z")

</div>

I created a new Project based on the new Virtual Reality template using 4.13, and every time I start up the editor I get the following error log: “/Game/VirtualRealityBP/Blueprints/BP\_MotionController: Can’t find file for asset /Script/SteamVR”. I’m not sure when this started happening, but if I create a new project now based off of the VR template, I don’t have the same issue.

When this happens, the BP\_MotionController blueprint is unable to compile, and I noticed that the SteamVRChaperone component that used to be there no longer exists. I have to manually re-add this component to BP\_MotionController, then replace the SteamVRChaperone component getter in SetupRoomScaleOutline with the new one to get the blueprint compiling again. Everything then continues to work, until I close the editor and re-open it, where the same problem resurfaces. Yes, I have saved everything.

I did convert this to a C++ project, and I’ve got a single base station in “A” mode. I’ve tried making sure that SteamVR is started, and the HMD, both controllers, and the basestation were all connected and Ready before starting the project up. I also tried including “SteamVR” and “SteamVRController” in PrivateDependencyModuleNames in my build rules.

Any idea what might be going on here?

---

<div class="post-metadata">

**Author:** ![Mekrob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mekrob](https://forums.unrealengine.com/u/Mekrob)\
**Post date:** [September 18, 2016, 10:13am UTC](https://forums.unrealengine.com/t/bp-motioncontroller-missing-steamvrchaperone-component-cant-find-script-steamvr/370787/2 "2016-09-18T10:13:36Z")

</div>

For anyone else that comes across this, I was able to fix this by inheriting BP\_MotionController from a parent C++ class that has a BlueprintReadOnly USteamVRChaperoneComponent in it. USteamVRChaperoneComponent can be found in “Classes/SteamVRChaperoneComponent.h”.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f399349](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f399349](https://forums.unrealengine.com/u/anonymous_user_6f399349)\
**Post date:** [October 17, 2016, 3:04pm UTC](https://forums.unrealengine.com/t/bp-motioncontroller-missing-steamvrchaperone-component-cant-find-script-steamvr/370787/3 "2016-10-17T15:04:39Z")

</div>

Hi I’ve got the same issue but don’t really understand what you did.

Any chance you could explain?

Thanks

---

<div class="post-metadata">

**Author:** ![Mekrob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mekrob](https://forums.unrealengine.com/u/Mekrob)\
**Post date:** [October 20, 2016, 10:40am UTC](https://forums.unrealengine.com/t/bp-motioncontroller-missing-steamvrchaperone-component-cant-find-script-steamvr/370787/4 "2016-10-20T10:40:18Z")

</div>

Did you also extend the MotionController blueprint from c++ like I did? I was never quite sure what initially caused the problem. Well, regardless in the parent MotionController c++ class I did the following (I stripped out a bunch of code from my own, so the below is untested and an approximation):

MyMotionController.h  
#pragma once

```
#include "GameFramework/Actor.h"
#include "Classes/SteamVRChaperoneComponent.h"
#include "MyMotionController.generated.h"

UCLASS()
class BEAT_API AMyMotionController : public AActor
{
	GENERATED_BODY()
	
public:	
	// Sets default values for this actor's properties
	AMyMotionController();

	// Called when the game starts or when spawned
	virtual void BeginPlay() override;
	
	// Called every frame
	virtual void Tick( float DeltaSeconds ) override;

	//////////////////////////////////////////////////////////////////////////
	// Components

	UPROPERTY(BlueprintReadOnly, Category = "Steam")
	USteamVRChaperoneComponent* SteamVRChaperone;
};

```

MyMotionController.cpp

```
#include "MyGame.h"
#include "MyMotionController.h"

// Sets default values
AMyMotionController::AMyMotionController()
{
 	// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

	SteamVRChaperone = CreateDefaultSubobject<USteamVRChaperoneComponent>(TEXT("SteamVRChaperoneComponent"));
}

// Called when the game starts or when spawned
void ABeatMotionController::BeginPlay()
{
	Super::BeginPlay();
}

// Called every frame
void ABeatMotionController::Tick( float DeltaTime )
{
	Super::Tick( DeltaTime );
}
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9012b75d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9012b75d](https://forums.unrealengine.com/u/anonymous_user_9012b75d)\
**Post date:** [March 10, 2017, 5:34pm UTC](https://forums.unrealengine.com/t/bp-motioncontroller-missing-steamvrchaperone-component-cant-find-script-steamvr/370787/5 "2017-03-10T17:34:47Z")

</div>

Thanks, worked perfectly in my case!

For those getting the compiler error of “undefined USteamVRChaperoneComponent” and the #include “SteamVRChaperoneComponent.h” not being found, see solution here: [Adding USteamVRChaperoneComponent - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/416543/adding-usteamvrchaperonecomponent.html)

---

<div class="post-metadata">

**Author:** ![mrkgmr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrkgmr](https://forums.unrealengine.com/u/mrkgmr)\
**Post date:** [September 12, 2017, 11:36am UTC](https://forums.unrealengine.com/t/bp-motioncontroller-missing-steamvrchaperone-component-cant-find-script-steamvr/370787/6 "2017-09-12T11:36:13Z")

</div>

Still happend on 4.16…But only happend if I reference this blueprint from some widgets…its really strange…what chaperon has to do with the widgets? 😑
