I’m using the Action RPG demo as a base for my own project and I began by spawning several enemy NPC’s of the same class and this worked as expected. Each could take damage and had the attributes I set for them in their Passive Gameplay Effect variable. However when I made a second child of that NPC base class the game crashes if any of it’s attributes are accessed or if I attempt to modify them. They will spawn in but if I use any of the Get Attribute functions that target the RPGCharacter Base in their graph or if any effects attempt to change one of their base attributes - like taking damage - the editor crashes. Here is my crash log for reference. Any help is appreciated!
P.S.- the move speed attribute is mentioned first in this log because I use the Get Move Speed function when the pawn is spawned.
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x000000a4
UE4Editor_GameplayAbilities
UE4Editor_ActionRPG!ARPGCharacterBase::HandleMoveSpeedChanged() [F:\depot\Project\Source\ActionRPG\Private\RPGCharacterBase.cpp:408]
UE4Editor_ActionRPG!URPGAttributeSet::PostGameplayEffectExecute() [F:\depot\Project\Source\ActionRPG\Private\Abilities\RPGAttributeSet.cpp:215]
UE4Editor_GameplayAbilities
UE4Editor_GameplayAbilities
UE4Editor_GameplayAbilities
UE4Editor_GameplayAbilities
UE4Editor_GameplayAbilities
UE4Editor_ActionRPG!ARPGCharacterBase::AddStartupGameplayAbilities() [F:\depot\Project\Source\ActionRPG\Private\RPGCharacterBase.cpp:47]
UE4Editor_ActionRPG!ARPGCharacterBase::PossessedBy() [F:\depot\Project\Source\ActionRPG\Private\RPGCharacterBase.cpp:219]
UE4Editor_Engine
UE4Editor_AIModule
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_Engine
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_AIModule
UE4Editor_AIModule
UE4Editor_AIModule
UE4Editor_AIModule
UE4Editor_AIModule
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