Serhii Snitsaruk
302de87e32
Prevent using external resources for derived blackboard plans in `BTPlayer` and `BTState`
2024-04-01 15:25:54 +02:00
Serhii Snitsaruk
d48daf2135
BlackboardPlan: Avoid circular references in derived mode
...
If the same plan resource is assigned in BehaviorTree and in BTPlayer, simply use the resource as is. Using the same resource for `BehaviorTree` and `BTPlayer` will disable derived mode, and allow managing from `BTPlayer` . There is a risk of using `NodePath` variables with different scenes: the path may actually be different if node structure is not the same. It will lead to fetching breaking for some of those scenes.
2024-04-01 01:45:40 +02:00
Serhii Snitsaruk
a5aea72a17
Plan: Fix syncing derived plan sometimes fails on var rename
2024-03-25 01:04:07 +01:00
Serhii Snitsaruk
1de6256401
Plan: Don't store unmodified variables in a derived plan
...
Fixes "sticky" old values in a derived plan.
2024-03-25 00:56:08 +01:00
Serhii Snitsaruk
cbd467f97f
Blackboard: Assigning variables via code might have no effect if done before initialization
2024-03-13 22:00:50 +01:00
Serhii Snitsaruk
06ebff7518
Fix includes and build errors
2024-03-12 21:09:28 +01:00
Serhii Snitsaruk
ca6b497019
Sync order of variables in derived `BlackboardPlan`
2024-03-12 17:11:01 +01:00
Serhii Snitsaruk
a6e6b53e18
Improve prefetching
2024-03-12 00:30:38 +01:00
Serhii Snitsaruk
e2edb083ff
When prefetch fails, don't print error if variable is on blackboard
2024-03-11 22:12:44 +01:00
Serhii Snitsaruk
b09006a11b
Fix issues with blackboard plan system
2024-03-11 18:58:40 +01:00
Serhii Snitsaruk
9957ef2ea7
Expose additional `BlackboardPlan` methods for custom tooling
2024-03-08 15:33:28 +01:00
Serhii Snitsaruk
2658060b1c
Move prefetching code into `BlackboardPlan` and add checkbox to the plan editor
2024-03-06 21:28:06 +01:00
Serhii Snitsaruk
4c26583007
Remove "p_" from the argument names in the `ClassDB` bindings
2024-03-04 21:36:16 +01:00
Serhii Snitsaruk
d66f1e83fd
Refactor BlackboardPlan to use StringName
...
Also update demo BTs.
2024-03-04 16:56:57 +01:00
Serhii Snitsaruk
bb6fab7555
API: Expose BlackboardPlan factory methods
2024-03-02 16:06:32 +01:00
Serhii Snitsaruk
2d98a38ada
Fix "Manage" button is sometimes shown for derived plans
2024-02-29 15:45:59 +01:00
Serhii Snitsaruk
95c2496adf
Improve variable synchronization between base and derived blackboard plans
...
When variable is altered in the base plan, values should properly sync to the derived plans if those vars are not altered in the derived plan. Editor QoL improvement.
2024-02-09 13:58:54 +01:00
Serhii Snitsaruk
61ef929411
Editor: Don't allow variables with the same names as Resource props
2024-01-29 10:32:32 +01:00
Serhii Snitsaruk
174810fb34
Editor: Validate var name in BlackboardPlanEditor
2024-01-28 20:15:42 +01:00
Serhii Snitsaruk
f912f0acc4
Usability improvements
2024-01-25 22:58:21 +01:00
Serhii Snitsaruk
5fee89b00b
Make blackboard improvements compatible with GDExtension
2024-01-25 19:46:27 +01:00
Serhii Snitsaruk
8155c2764a
Refactoring and clean up
2024-01-25 14:35:48 +01:00
Serhii Snitsaruk
fb1ab16682
In a derived BB plan, hide variables with names that begin with "_"
2024-01-25 11:51:35 +01:00
Serhii Snitsaruk
06052332b2
BlackboardPlanEditor: Fixes and clean up
2024-01-25 11:08:35 +01:00
Serhii Snitsaruk
15e0323919
Implement BlackboardPlan editor
2024-01-24 23:11:09 +01:00
Serhii Snitsaruk
20a995d1d2
Rename BlackboardSource => BlackboardPlan
...
Because it's a better name ;)
2024-01-23 20:02:23 +01:00