Unable to use C++ programming to add GAS, even with GAS companion

r/UnrealEngineTutorials - Unable to modify my unreal project in c++, I just want to add the GAS with companion pls help

I’m really new to programming in c++, I tried to follow as many tutorial as I can and I’m still looking for a solution, as you can see for some reason VS can’t find the header for the attribute set I created in UnrealEngine with GAS companion, it looks like a problem with a simple solution but still can’t figure it out

If you haven’t already, Alamars Dev Domain on YouTube has some great tutorials on implement GAS with c++

Hi,

May you be great.

First don’t get intimidated about intellisense list of errors, most of them means nothing when it comes to Unreal (an simple refresh/regenerate Visual Studio project files may consume most of them), actually care about compile errors output.

Second, check your your_project.Build.cs if have added the required modules like GameplayAbilities, GameplayTags and GameplayTasks.

Also make sure you have enabled GameplayAbilitySystem plugin in the Editor.

Finally it’s a good practive refresh/regenerate your Visual Studio project files, after that you should be good to go, so press Ctrl + F5 on Visual Studio and enjoy.

Hope that helped you.

Bye.

Modules are in and GAS plugin is on, tried to ctrl + F5 and got those errors:



Good!
It seems the problem is your Level_Base, could you please show us the compile error?

This screenshot indicate that something went wrong when compiling, please share the compile error. So try again Ctrl + F5 and print here the compile output, please.


Isn’t “E1696” the error we’re looking for? this is my screen after I do ctrl F5, also tried to rename the “include” as copilot suggest but didn’t work

Edit: If you see something different is because I’m trying this also on a fresh project
Edit2: At the end there’s also this error
image

The .generated fix should work, but you need to regenerate the project from the uproject file for the generated files to become valid.
Make sure you have the module GameplayAbilities added to your build file’s dependencies.

Could you please share the output, instead of error list?

The new error you have posted appear when you try to compile the project and the engine is open (live code is on).

Ok guys thank you so much for your help, I’ve talk with a programmer today who helped me with this issue:
We didn’t rly found the cause of the error but looks like that starting the solution with the “LocalWindowsDebugger” solved that.
I knew it was something this simple but still couldn’t figure it out on my own, ty guys for the help