Commit Graph

103 Commits

Author SHA1 Message Date
yoan stamant
271b241a2a [BehaviorTree] ForceSuccess decorator effect should not be limited during the search
#rb Maxime.Mercier

[CL 29788521 by yoan stamant in ue5-main branch]
2023-11-16 15:35:19 -05:00
yoan stamant
82ae855d85 [BehaviorTree] prevent ForceSuccess decorator from affecting node results from unrelated nodes. Should only modify result if associated task or composite node fails.
#rb mieszko.zielinski
#rb maxime.mercier

[CL 29685340 by yoan stamant in ue5-main branch]
2023-11-13 11:19:57 -05:00
stephen holmes
b8d7d639bf Turned off by default the code which applys aux node changes for failed searches as it caused further minor issues. I added a BT test to catch this case which will fire if the code is reenabled.
[CL 28542495 by stephen holmes in ue5-main branch]
2023-10-06 11:47:18 -04:00
stephen holmes
1738ba0aed Fix for BT not storing Aux nodes from tree searches. This can cause aux nodes not to be monitored at all when they should be and can make AI unrepsonsive.
[CL 27666518 by stephen holmes in ue5-main branch]
2023-09-07 04:00:25 -04:00
maxime mercier
88b6c41b18 Better description and information of the my previous RestartTree change.
#jira none
#review-24382865
#preflight 64078b26ba12ba6416a4c7f9

[CL 24545641 by maxime mercier in ue5-main branch]
2023-03-07 14:29:41 -05:00
Maxime Mercier
101a234772 Added support to restart all nodes in RestartTree
UDN case 00532196

#jira none
#review-24365489
#preflight 63f77e99a134e0b059fc6171

[CL 24379901 by Maxime Mercier in ue5-main branch]
2023-02-23 10:07:00 -05:00
maxime mercier
fdea7093a5 Fixed a latent abort being resumed
Also fixed a VLog which was missing a parameter

#preflight 63d1461ff2318350a223b3fe

[CL 23862714 by maxime mercier in ue5-main branch]
2023-01-25 20:02:35 -05:00
Mieszko Zielinski
ae661588dc Added a basic unit test of the World-less Mass processing ticking.
Also, made a minor extension to AITestingSuite for a better support of latent tests.

#review-23787688
#preflight 63ce472a544e5bb0750cd541

[CL 23808951 by Mieszko Zielinski in ue5-main branch]
2023-01-23 03:41:50 -05:00
Mieszko Zielinski
1648dae40d Removed all PawnActions-related tests from AITestSuite
#rb none
#preflight 63c188c00b358b97d163b9b3

[CL 23679605 by Mieszko Zielinski in ue5-main branch]
2023-01-13 12:08:27 -05:00
Mieszko Zielinski
f67b77e440 Mass's support for any kind of USubsystem.
Added new struct type, FMassSubsystemAccess, storing bitsets indicating which subsystems are to be accessed and in which mode (RO/WR) along with cached instances of the systems (populated either via CacheSubsystemRequirements call or iteratively as the subsystems get requested)
The new  FMassSubsystemAccess is instantiated by FMassExecutionContext.
Also:
* removed need of supplying a UWorld instance when fetching subsystems - the value is now fetched from the MassEntityManager used and cached.
* reworked the unit test for Mass USubsystem access, following the extension of Mass subsystems access support.
* changes due to Mass Subsystem access API changes.

#review-23537257
#review-23537458
#review-23537435
#preflight 63be67ee6e6e8d4662c32ef5

[CL 23642735 by Mieszko Zielinski in ue5-main branch]
2023-01-11 03:01:44 -05:00
Jerome Delattre
a6c081dedd Fix inconsistencies in AITests FTestHelpers functions return
#preflight 6373fdf88f4cb2e4dc06d4ad
#jira none
#rb Mieszko.Zielinski

[CL 23153400 by Jerome Delattre in ue5-main branch]
2022-11-16 09:18:55 -05:00
henrik karlsson
fa90b399a4 Added includes for future change. This changelist only contains added #include and a couple of empty placeholder files
Tested compiling fortnite, unrealeditor, lyra, qagame with non-unity/pch

#preflight 63635997876630122adeab9f
#rb none

[CL 22958990 by henrik karlsson in ue5-main branch]
2022-11-03 14:18:47 -04:00
tim smith
5f2a5bcff0 Fixed C# UHT so that enumerations can not contain value names of TRUE or FALSE (case insensitive).
#rb self
[FYI] maxime.mercier
#preflight 636272f8522c8f7ab33488ea

[CL 22919757 by tim smith in ue5-main branch]
2022-11-02 12:50:37 -04:00
Stephen Holmes
aa8997ef01 AI Truncation warning fixes.
This is the majority of the fixes however a few systems have been left for individual CLs.

#jira UE-166285
#preflight 63616567ce676ae868034ab0
#review-22869010

[CL 22889316 by Stephen Holmes in ue5-main branch]
2022-11-01 15:32:27 -04:00
maxime mercier
59eb0925eb Fixed a case where any blueprint base decorator, during a transition, would RequestExecution but was not in a state to make the right call. The problem come with the fact that the RequestExecution is deducing through the current state of the node to know if this request is a ActivateBranch or a DeactivateBranch. But in this case the blueprint base decorator is asking if it is active the during the transition through the call const bool bIsOnActiveBranch = OwnerComp.IsExecutingBranch(GetMyNode(), GetChildIndex()); and would get the wrong answer. So instead of deducing what the RequestExecution meant, we are now using new API methods that are requesting either a RequestBranchActivation or a RequestBranchDeactivation. During a transition, those get queued up and unqueued post transition and the code now make sure the request still holds and make sense.
UDN case 00489819

[CL 22823571 by maxime mercier in ue5-main branch]
2022-10-28 00:32:13 -04:00
maxime mercier
733d928b6c New BT Unittests that checks for
* StopTree with in all possible cases
* Unitialize with in all possible cases
* Cleanup with in all possible cases

#rnx
#preflight skip just unittests

[CL 22813031 by maxime mercier in ue5-main branch]
2022-10-27 13:16:17 -04:00
maxime mercier
0604ce87b1 Fix bug where decorator with LowerPrio abortion type on a subtree node was not reactivated upon exiting the subtree
UDN case 00484061

#preflight 63584c4a9125456043ae0f2e

[CL 22798553 by maxime mercier in ue5-main branch]
2022-10-26 19:11:26 -04:00
bryan sefcik
0beee50b45 Updated ../Engine/Source/Developer/... to inline gen.cpp files
Before:
Total CPU Time: 53783.640625 s
Total time in Parallel executor: 558.66 seconds
After:
Total CPU Time: 47886.140625 s
Total time in Parallel executor: 498.81 seconds

#jira

[CL 22173145 by bryan sefcik in ue5-main branch]
2022-09-24 13:31:25 -04:00
bryan sefcik
f58e75e476 Pass 2 on cleaning up build.cs files.
#jira
#preflight 631b7a79304480f8f8b48580

[CL 21931324 by bryan sefcik in ue5-main branch]
2022-09-09 19:41:38 -04:00
bryan sefcik
de1956f47b Ran IWYU on Public headers under Engine/Source/Developer/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21064294 by bryan.sefcik
#jira
#preflight 62d5c2111062f2e63015e598

#ROBOMERGE-OWNER: bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21155249 via CL 21158121 via CL 21161259
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21182053 by bryan sefcik in ue5-main branch]
2022-07-20 12:03:45 -04:00
Maxime Mercier
17d2eb75d5 Fix CIS warning
#jira none
#rb trivial
#preflight skip trivial

[CL 20658463 by Maxime Mercier in ue5-main branch]
2022-06-14 17:29:41 -04:00
maxime mercier
075e8dd0f8 Better support of stoptree while already being in the behavior tree
#jira UE-152906
[REVIEW]

#ROBOMERGE-AUTHOR: maxime.mercier
#ROBOMERGE-SOURCE: CL 20648362 via CL 20648697 via CL 20648751
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20656223 by maxime mercier in ue5-main branch]
2022-06-14 16:21:44 -04:00
maxime mercier
d0bc845d43 Fix a new BT bug found which was not trackable before, but now with latest code it is now being catch by an ensure.
#ROBOMERGE-AUTHOR: maxime.mercier
#ROBOMERGE-SOURCE: CL 20563329 via CL 20564831 via CL 20565124
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20568485 by maxime mercier in ue5-main branch]
2022-06-08 20:09:28 -04:00
maxime mercier
9b938ab384 Suspending all decorator branch operation while trasitionning
Support reactivation of a deactivated branch (decorator condition toggled from not pass to pass)

[FYI] Gael.Leger
#preflight 629f656d410219bf1b2b6e88

#ROBOMERGE-AUTHOR: maxime.mercier
#ROBOMERGE-SOURCE: CL 20540731 via CL 20540770 via CL 20540793
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20543249 by maxime mercier in ue5-main branch]
2022-06-07 15:19:48 -04:00
Mieszko Zielinski
14bb223771 Improvements to AITestSuite's latent tests.
This CL also contains Mass MT tests utilizing the improvements. The tests required a minor massaging of MassCompositeProcessor's API.

#review-20484224
#preflight 6299da029e46af6513d42ea8
#preflight 629e24b1116e8078e3c66ff8

[CL 20522118 by Mieszko Zielinski in ue5-main branch]
2022-06-06 12:25:25 -04:00