x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

EQS circle generator cant bind "NumberOfPoints" parameter

When I manually set "NumberOfPoints" in EQS editor - its work just fine.

But when I trying to create query in c++:

 FEnvQueryRequest QueryRequest(QueryTemplateForMoving, m_MoveCenter);
 
     QueryRequest.SetFloatParam(FName(TEXT("Radius")), Reaction->Radius);
     //QueryRequest.SetFloatParam(FName(TEXT("Space")), Reaction->Space);
     QueryRequest.SetFloatParam(FName(TEXT("MinimalOffset")), 0.f);
         QueryRequest.SetIntParam(FName(TEXT("NumberOfPoints")), 25);
     QueryRequest.Execute(EEnvQueryRunMode::AllMatching, this, &UBTTaskPQuery::OnGetPlacesQueryFinished);

So I waiting 25 points - but it generating only default 8, or that value which was manually setted in EQS by editor.

I investigated this issue and find that "EnvQueryGenerator_OnCircle.cpp" at begining of UEnvQueryGenerator_OnCircle::GenerateItems() function didn't binding this variable at all. For example see lines 131-139 EnvQueryGenerator_OnCircle.cpp:

 CircleRadius.BindData(QueryOwner, QueryInstance.QueryID);
     SpaceBetween.BindData(QueryOwner, QueryInstance.QueryID);
     ArcAngle.BindData(QueryOwner, QueryInstance.QueryID);
     CircleCenterZOffset.BindData(QueryOwner, QueryInstance.QueryID);
 
     float AngleDegree = ArcAngle.GetValue();
     float RadiusValue = CircleRadius.GetValue();
     float ItemSpace = SpaceBetween.GetValue();
 int32 NumPoints = NumberOfPoints.GetValue(); // <- this variable 

Here we have some bindings, but NumberOfPoints didnt bound anywhere.

Product Version: UE 4.12
Tags:
more ▼

asked Jul 08 '16 at 01:58 PM in Bug Reports

avatar image

nynjed
25 3 7 10

avatar image Sean L ♦♦ STAFF Jul 08 '16 at 06:27 PM

Hello,

I have attempted to reproduce this issue in my own test project, but I'm not seeing the same results. Would you be able to zip up your project, upload it to dropbox, and provide me with a link to download it? You can PM me the link on the forums: https://forums.unrealengine.com/member.php?160394-Sean-Flint

avatar image nynjed Jul 12 '16 at 10:54 AM

After I sended test project through PM, I managed temporary fix this bug. In EnvQueryGenerator_OnCircle.cpp I inserted line 135 like this:

     CircleRadius.BindData(QueryOwner, QueryInstance.QueryID);
     SpaceBetween.BindData(QueryOwner, QueryInstance.QueryID);
     ArcAngle.BindData(QueryOwner, QueryInstance.QueryID);
     CircleCenterZOffset.BindData(QueryOwner, QueryInstance.QueryID);
     NumberOfPoints.BindData(QueryOwner, QueryInstance.QueryID);//<- inserted line
 
     float AngleDegree = ArcAngle.GetValue();
     float RadiusValue = CircleRadius.GetValue();
     float ItemSpace = SpaceBetween.GetValue();
     int32 NumPoints = NumberOfPoints.GetValue();


Now binding work at my local projects.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey nynjed,

If you've been able to resolve this issue in the source, feel free to enter a pull request: https://github.com/EpicGames/UnrealEngine/compare

This will allow us to pull the fix into the engine, and will also earn you credit as an Engine Contributor.

Have a great day

more ▼

answered Jul 12 '16 at 01:07 PM

avatar image

Sean L ♦♦ STAFF
43.6k 485 152 441

avatar image nynjed Jul 15 '16 at 08:55 AM

I thought about this. Maybe will try to do this. But I'm not good with GIT, so it can take some time before I will figured out how to do this right. So if somebody do it before me - I will not be against this.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question