Commit Graph

140 Commits

Author SHA1 Message Date
jacob wang
6558f860f1 [State Tree] Changed weighted random utility selection behavior to not select states with zero score
#rb Aris.Theophanidis

[CL 35463121 by jacob wang in ue5-main branch]
2024-08-12 15:21:12 -04:00
patrick boutot
08c08f062d StateTree: Prevent access to invalid StateTree in FStateTreeExecutionContext.
#jira UE-220062
#rb Yoan.StAmant

[CL 35420514 by patrick boutot in ue5-main branch]
2024-08-09 09:48:26 -04:00
sigurdur gunnarsson
0fddecac20 StateTree: Fixing crash in StateTree utility selector when score is manually set to -1, resulting in no selected state.
#jira UE-220290
#rb mikko.mononen

[CL 35336163 by sigurdur gunnarsson in ue5-main branch]
2024-08-06 05:21:13 -04:00
mikko mononen
d4ea50b0fc StateTree: Fix random determinism on transition random delay.
#rb Mieszko.Zielinski

[CL 35302506 by mikko mononen in ue5-main branch]
2024-08-05 03:21:02 -04:00
mikko mononen
35c86ac7f0 StateTree: Allow conditions to receive state completion callbacks.
#rb Yoan.StAmant

[CL 35267259 by mikko mononen in ue5-main branch]
2024-08-02 06:57:58 -04:00
mikko mononen
fed14b44b8 StateTree: Fixed reentering states in parent frames of the performed transition. (contributed)
[CL 35209580 by mikko mononen in ue5-main branch]
2024-07-31 06:55:37 -04:00
mikko mononen
8578289d69 StateTree: Added StateScope when checking state's enter conditions (contributed)
[CL 35208982 by mikko mononen in ue5-main branch]
2024-07-31 06:05:07 -04:00
mikko mononen
d96fc886ce StateTree: Fixed crashes when delayed tick transition has been used (contributed)
[CL 35208863 by mikko mononen in ue5-main branch]
2024-07-31 05:52:37 -04:00
mikko mononen
0298fb44d6 StateTree: Fixed not restoring selection states stack when linked state tree failed to be selected. (contributed)
[CL 34635790 by mikko mononen in ue5-main branch]
2024-06-25 04:30:22 -04:00
mikko mononen
3a0263b991 StateTree: fixed stopping temporary nodes with uninitialized data handles (contributed)
[CL 34635566 by mikko mononen in ue5-main branch]
2024-06-25 04:09:43 -04:00
mikko mononen
d5d9c0bd16 StateTree: fixed not calling OnExitState on nested ST's global tasks and evaluators (contributed)
[CL 34634791 by mikko mononen in ue5-main branch]
2024-06-25 02:37:11 -04:00
jacob wang
0fa5fd8e36 [State Tree] Utility Selector Runtime First Pass
#rb mikko.mononen

[CL 34362979 by jacob wang in ue5-main branch]
2024-06-13 22:57:49 -04:00
matthew barry
00324b3fb2 UE State tree
- Added transition recording functionality to enable snapshots for state tree transitional events
- Primary use case is for keeping client-side state trees in sync with their server counterpart


[REVIEW] [at]mikko.mononen

#rnx
#rb mikko.mononen

[CL 34250876 by matthew barry in ue5-main branch]
2024-06-10 15:59:27 -04:00
mikko mononen
4ca5b9bee9 StateTree: Fixed calculating unique states between frames.
[CL 34120503 by mikko mononen in ue5-main branch]
2024-06-05 07:40:52 -04:00
mikko mononen
54eb8e271f StateTree: Introduced PropertyFunctions (contributed) (take2)
- Added property functions which can be executed and chained during property binding to set values of properties

[CL 34087989 by mikko mononen in ue5-main branch]
2024-06-04 03:56:38 -04:00
yoan stamant
a5e3b02a0d StateTree: Fix crash entering a subtree without parameters.
#tests Juno: Imperial bunkers in the alpine biome
#rb mikko.mononen

[CL 33929650 by yoan stamant in ue5-main branch]
2024-05-27 15:15:55 -04:00
justin peterson
4b5e90f42a [Backout] - CL33856504 - CIS Cook Warning
[FYI] mikko.mononen
Original CL Desc
-----------------------------------------------------------------
StateTree: Introduced PropertyFunctions (contributed)
- Added property functions which can be executed and chained during property binding to set values of properties

[CL 33868630 by justin peterson in ue5-main branch]
2024-05-23 14:06:53 -04:00
mikko mononen
8fb0559486 StateTree: Introduced PropertyFunctions (contributed)
- Added property functions which can be executed and chained during property binding to set values of properties

[CL 33856515 by mikko mononen in ue5-main branch]
2024-05-23 04:48:59 -04:00
jacob wang
c7a6fe6ffa [State Tree] Renaming common elements between Condition and the upcoming Utility Consideration
- Renamed EStateTreeConditionOperand and properties of that type.
- Renamed FStateTreeEditorNode::Indent Property.
- Corrected a few tooltips
#rb mikko.mononen, Yoan.StAmant

[CL 33614033 by jacob wang in ue5-main branch]
2024-05-13 20:48:39 -04:00
yoan stamant
08b5314641 [StateTreeDebugger] replaced WITH_STATETREE_DEBUGGER by WITH_STATETREE_TRACE and WITH_STATETREE_TRACE_DEBUGGER to allow different targets to use only one of the two functionalities. For example consoles can only output traces while Desktop targets can output traces and analyse them.
#rb Mieszko.Zielinski

[CL 33398309 by yoan stamant in ue5-main branch]
2024-05-02 11:47:26 -04:00
mikko mononen
eda018b6bd StateTree: Fix accessing state captured event
#rb Yoan.StAmant

[CL 33228442 by mikko mononen in ue5-main branch]
2024-04-25 08:50:27 -04:00
jacob wang
60131c19b5 [State Tree] StateTreeInstanceData RandomStream variable Initialization Fix/Improvement
- When duplicating the Component, RandomStream was always copied from the one on Component CDO and wasn't constructed with the current time as expected. We now initialize RandomStream at FStateTreeExecutionContext::Start(), where the InstanceData is going to persist till Stop().
- Moved RandomStream variable to FStateTreeExecutionState as it better reflects the window it persists now.
- Fixed non-deterministic default-constructed value of RandomStream variable in UStruct LogError by the above

#jira UE-212551
#rb mikko.mononen

[CL 33174826 by jacob wang in ue5-main branch]
2024-04-23 14:17:24 -04:00
mikko mononen
0580cb723a StateTree: Remove debug code left in by mistake.
[CL 33162735 by mikko mononen in ue5-main branch]
2024-04-23 03:28:39 -04:00
yoan stamant
9f4886944e [StateTreeDebugger]
allowed to provide verbosity to STATETREE_TRACE_LOG_EVENT and STATETREE_LOG_AND_TRACE so the debugger can add custom icons accordingly.
#jira UE-210505
#rb mikko.mononen

[CL 33140307 by yoan stamant in ue5-main branch]
2024-04-22 11:34:53 -04:00
mikko mononen
533e9f7eb7 StateTrees: Made empty linked asset a valid setup.
[CL 33135868 by mikko mononen in ue5-main branch]
2024-04-22 07:44:19 -04:00