Hello,
So i’m getting unreal crashes when i hit play, code looks good, it compiles, i double-checked all collisions and didn’t get any errors from there. UE4 version 4.14.3
Error ->
MachineId:11A2727E462D5CD896AEAEA05BD5CA12
EpicAccountId:31813b826e1c4d8faaf7c7b713ee0872
Access violation - code c0000005 (first/second chance not available)
UE4Editor_Engine
UE4Editor_BattleTank_4928!UTankTrack::SetThrottle() [x:\unrealkursas\04_battletank\battletank\source\battletank\private\tanktrack.cpp:13]
UE4Editor_BattleTank_4928!UTankMovementComponent::IntendMoveForward() [x:\unrealkursas\04_battletank\battletank\source\battletank\private\tankmovementcomponent.cpp:20]
UE4Editor_BattleTank_4928!UTankMovementComponent::execIntendMoveForward() [x:\unrealkursas\04_battletank\battletank\source\battletank\public\tankmovementcomponent.h:16]
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll
What should i do next? Continue on lectures or try connecting with Epic maybe?
UPDATE:
It seems that the problem is with a code:
// Fill out your copyright notice in the Description page of Project Settings.
##include “BattleTank.h”
#include “TankTrack.h”
#include “TankMovementComponent.h”
void UTankMovementComponent::Initialise(UTankTrack* LeftTrackToSet, UTankTrack* RightTrackToSet)
{
if (!LeftTrackToSet || RightTrackToSet) { return; }
LeftTrack = LeftTrackToSet;
RightTrack = RightTrackToSet;
}
void UTankMovementComponent::IntendMoveForward(float Throw)
{
// auto Time = GetWorld()->GetTimeSeconds();
UE_LOG(LogTemp, Warning, TEXT(“Intend move forward throw:: %f”), Throw)
LeftTrack->SetThrottle(Throw);
RightTrack->SetThrottle(Throw);
// TODO prevent double-speed due to dual control use
}
If i comment last two LeftTrack and RightTrack unreal stops crashing