Hi,
I have an ACharacter subclass I made in C++, and any blueprint subclass I make of a subclass of this class crashes. By this I mean, I have my AEnemyCharacter class, and when I create a blueprint subclass of it, everything works fine, but I then have an ASkirmisherCharacter class which extends AEnemyCharacter, and if I create a blueprint of this class, opening it causes Unreal to crash. However a previous blueprint subclass is still in the level and works perfectly, and responds to changes made in the code, so it is just the blueprint that seems to be crashing because of this
Here is the constructor for the parent class
/** Default constructor for the AEnemyCharacter class */
AEnemyCharacter::AEnemyCharacter()
: Super()
{
UE_LOG(NPCCharacterLog, Log, TEXT("Calling Enemy Constructor"));
// Set size for collision capsule
GetCapsuleComponent()->InitCapsuleSize(42.f, 96.0f);
RootComponent = GetCapsuleComponent();
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = false;
UE_LOG(NPCCharacterLog, Log, TEXT("Creating Distance Component"));
// Setup DistanceChecker for search purposes
DistanceChecker = CreateDefaultSubobject<UDistanceToControllerComponent>(TEXT("DistanceCheckComponent"));
AddOwnedComponent(DistanceChecker);
UE_LOG(NPCCharacterLog, Log, TEXT("Creating Vision Component"));
// Setup VisionComponent to search for the player
Vision = CreateDefaultSubobject<UVisionComponent>(TEXT("VisionComponent"));
AddOwnedComponent(Vision);
UE_LOG(NPCCharacterLog, Log, TEXT("Finishing Enemy Constructor"))
}
Here is the constructor for the subclass of AEnemyCharacter (two were tested and they both failed, but only one is put here, the constructors are the same
ASkirmisherCharacter::ASkirmisherCharacter()
: Super()
{
}
The log file is linked below, and is where I just opened up an ASkirmisherCharacter blueprint subclass.
Thanks for any and all help