How to compile a custom EQS test?

I want to make a very simple filter for an environment query.

This is the query:

I just want the AI to find the weapons that don’t has an owner.

In blueprint it would be something like this (I haven’t tested the code yet)

I have been looking for information to make my own test but according to what I have read it can only be done in C++.

Source:

So I tried to follow the instructions but I have many doubts.

Instructions:

Class reference:

At the moment I only know that the class must have this structure and you override these virtual functions.

So the questions are:
-What Libraries must be included?
-Can be it edited with Visual Studio?
-What type of project should be created?
-Is there any PATH given to the linker and/or compiler? How to do it?
-Once it is compiled, how to integrate it into Unreal?

I know, a lot of newbie questions!!

Perhaps a complete step-by-step example would be of great help!!

Thank you so much!!

Ok… everything was a complete disaster!!

I tried to follow some tutorials

This video:

And this video:

But everything went wrong.
Create a new C++ class and all the problems started.



It asks me to recompile the editor for my IDE.
4-BuildForIDE

It also asks me to recompile the project.
5-recompilePorject

Hidden levels is also a problem
6-hiddenLevel

So I go to GitHub and get the Unreal 5 source code

But the scripts don’t work and it doesn’t generate the project files

So I want to open my project and still not use C++, but the project won’t open because it doesn’t recognize the version. He asks me to rebuild it.

11-modules missing

I choose the option “YES” and it does not work.

12-rebuid manually

Now I’m locked in a dead end.

Luckily I have a backup of my project. I can fix everything without losing my progress. I just had to replace the “Content” folder of my latest version in the previous version.

But all this was a very bad experience!!

That’s why I want to ask the people of Unreal to please make manuals or tutorials to be able to do this kind of thing safely.

I have come close to losing entire months of work.
I was very lucky to have made a backup beforehand.

Thank you very much!!

1 Like