Game Feature: GameplayCue not working when packaging

Hi,

I’m using a GameFeature and for some reason my GameplayCues are not playing when the game is packaged, but it works fine in Editor.

My GameplayTags are registered through NativeTags in my module source/header file and the GameplayCues are added inside abilities

I also added the CUE folder path in my DefaultGame.ini

+GameplayCueNotifyPaths="/Game/AALastRenegade/Player"
+GameplayCueNotifyPaths="/WeaponFeature/Gameplay/Cues"
1 Like

I found the culprit: You need to tell UE to always cook that folder when packaging

In DefaultGame.ini:

[/Script/UnrealEd.ProjectPackagingSettings]
...
+DirectoriesToAlwaysCook=(Path="/WeaponFeature/Gameplay/Cues")
2 Likes

Great to know it worked for you.

1 Like

any custom gameplay cue folders that I registered as +directoriestoalwayscook and +gameplaycuenotifypaths says the folder was not mounted while packaging the exe… any suggestions as I am just trying to use the “Weapons” and “GamePlayCues” folder inside of my own created plugin rather than draggin them into alreayd approved folders… it seems like it should be easy to add the folders like SHooterCore content has but I just cant find anything on the topic.

Are you adding an action “Add Gameplay Cue Path” to your game feature plugin?

2 Likes

In your AssetManager Run this code
UAbilitySystemGlobals::Get().AddGameplayCueNotifyPath(FString(“/FeiGameFramework/Blueprint/FeiBattle/GAS/Cue”));