Keep getting the same error when I come to this video

I had to go back in my source control because I got an error on this video. After I went back and rewatched the videos to catch back up, I ran across the same error. Here’s the error:

CompilerResultsLog: ERROR: UBT ERROR: Failed to produce item: D:\Documents\Unreal Projects\BuildingEscape\Binaries\Win64\UE4Editor-BuildingEscape-1246.dll

Not sure what’s going on. I’m UE4 version 4.20. Anyone know how to fix this? I’ve googled but to no avail.

That just means it failed to compile and that could be for a million different reasons. Would need to attempt to compile in your IDE to see what the errors are.

Ok, so I found out it’s when I move the LineTraceEnd block to the TickComponent method. Any idea why it’s doing this?


void UGrabber::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
	Super::TickComponent(DeltaTime, TickType, ThisTickFunction);

	/// Get player view point this tick
	FVector PlayerViewPointLocation;
	FRotator PlayerViewPointRotation;
		OUT PlayerViewPointLocation,
		OUT PlayerViewPointRotation);

	//Draw red trace in the world to visualize
	FVector LineTraceEnd = PlayerViewPointLocation + PlayerViewPointRotation.Vector() * Reach;

	// If physics handle is attached
		// move object that we're holding



const FHitResult UGrabber::GetFirstPhysicsBodyInReach()
	///Setup query parameters
	FCollisionQueryParams TraceParameters(FName(TEXT("")), false, GetOwner());

	///Line-trace (Aka ray-cast) out to reach distance
	FHitResult Hit;
		OUT Hit,

	///See what we hit
	AActor* ActorHit = Hit.GetActor();
	if (ActorHit)
		UE_LOG(LogTemp, Warning, TEXT("Line trace hit: %s"), *(ActorHit->GetName()))

	return Hit;

Figured it out. Had to copy the LineTraceEnd block instead of cut.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms