Commit Graph

851 Commits

Author SHA1 Message Date
Serhii Snitsaruk 3918272227
BehaviorTree: New signal for when BB plan changes
Utilize `plan_changed` signal in `BTPlayer` and `BTState`.
2024-04-01 16:34:36 +02:00
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 5ff42e29e4
Always duplicate `BlackboardPlan` props 2024-04-01 01:11:51 +02:00
Serhii Snitsaruk 7160804c82
GHA: Bump geekyeggo/delete-artifact to v5 2024-03-26 18:49:26 +01:00
Serhii Snitsaruk 58d7ea223e
Merge pull request #84 from limbonaut/fix-subtree-bb-plan
BTSubtree: Fix subtree blackboard plan is not property utilized
2024-03-26 18:35:02 +01:00
Serhii Snitsaruk e50b00c70e
BTSubtree: Fix subtree blackboard plan is not property utilized 2024-03-26 18:19:31 +01:00
Serhii Snitsaruk 31db4b4543
Merge pull request #82 from limbonaut/fix-blackboard-plan-issues
Fix blackboard plan issues
2024-03-26 17:08:06 +01:00
Serhii Snitsaruk 671ca50b82
Update demo AI assets 2024-03-25 01:08:58 +01: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 930493101d
GHA: Package icons with the demo project 2024-03-21 23:27:39 +01:00
Serhii Snitsaruk ebc2ce310f
Bump doc version to v1.0 2024-03-21 21:42:54 +01:00
Serhii Snitsaruk 12fd9d00d6
Update file headers and fix whitespace 2024-03-21 21:38:57 +01:00
Serhii Snitsaruk f36f5af92a
Doc: Update README.md 2024-03-21 21:04:22 +01:00
Serhii Snitsaruk 94a277ef9d
Doc: Explain using `_var` suffix for var properties 2024-03-21 15:16:27 +01:00
Serhii Snitsaruk 6c8045b280
Update README screenshot 2024-03-21 14:26:13 +01:00
Serhii Snitsaruk 6edb7017b9
Merge pull request #77 from limbonaut/fix-bbparam-null-default
Fix `BBParam` stored value defaulting to `null` in GDExtension
2024-03-21 00:14:10 +01:00
Serhii Snitsaruk 9e62fe8fa3
Fix `BBParam` stored value defaulting to `null` in GDExtension 2024-03-20 23:57:42 +01:00
Serhii Snitsaruk 79d72c39e0
Use proper icon in inspector for BB vars 2024-03-20 17:42:04 +01:00
Serhii Snitsaruk 5a8fe97aac
Fix error when clicking resource header in debugger with a scene-embedded BT 2024-03-20 14:19:49 +01:00
Serhii Snitsaruk d9a9a1d4e5
Merge pull request #75 from limbonaut/expose-checks-and-operations
Expose checks and operations in `LimboUtility`
2024-03-20 12:31:09 +01:00
Serhii Snitsaruk 06ea008105
Expose checks and operations in `LimboUtility` 2024-03-20 12:13:32 +01:00
Serhii Snitsaruk 705f4d7415
Doc: Update custom-tasks.rst
Mention extending different base types.
2024-03-14 16:10:40 +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 088ef008a6
Merge pull request #71 from limbonaut/blackboard-fixes
Blackboard-related improvements and fixes
2024-03-12 22:31:07 +01:00
Serhii Snitsaruk 06ebff7518 Fix includes and build errors 2024-03-12 21:09:28 +01:00
Serhii Snitsaruk 39c4511249 BBParam editor: Combine type+mode functionality in one button
Previously, we had two buttons: "mode switch" and "type choice".
Now replaced with the One Button to rule them all!
2024-03-12 18:10:53 +01:00
Serhii Snitsaruk ca6b497019 Sync order of variables in derived `BlackboardPlan` 2024-03-12 17:11:01 +01:00
Serhii Snitsaruk 434545ebad Blackboard: Linking vars with `Blackboard::link_var` 2024-03-12 16:17:34 +01:00
Serhii Snitsaruk a6e6b53e18 Improve prefetching 2024-03-12 00:30:38 +01:00
Serhii Snitsaruk 7de582c4e6 Fix complain parameter is not respected in `Blackboard::get_var` if parent scope is assigned 2024-03-11 23:04:34 +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 92010f19f1
Merge pull request #70 from limbonaut/gha-fixes
GHA workflow updates
2024-03-11 18:00:46 +01:00
Serhii Snitsaruk b0e31f569a GHA: Don't include GodotSharp folder twice 2024-03-11 13:46:48 +01:00
Serhii Snitsaruk eba867706b GHA: Transition to new upload/download v4 actions 2024-03-11 13:27:23 +01:00
Serhii Snitsaruk 3ae38ee5da GHA: Bump cache & setup-python actions
Also fixes some Node.js-related warnings in GHA builds.
2024-03-10 14:33:02 +01:00
Serhii Snitsaruk 0be16edee0 GHA: Remove no longer needed workaround in web builds 2024-03-10 13:13:22 +01:00
Serhii Snitsaruk 37d3dcd988 GHA: Use consistent naming - limboai version first 2024-03-10 13:07:27 +01:00
Serhii Snitsaruk b0e3753d76 Update HSM unit tests 2024-03-08 20:04:27 +01:00
Serhii Snitsaruk 9957ef2ea7 Expose additional `BlackboardPlan` methods for custom tooling 2024-03-08 15:33:28 +01:00
Serhii Snitsaruk f4ceb27b35 Demo: Hide code popup upon Showcase scene load 2024-03-08 14:27:23 +01:00
Serhii Snitsaruk fda6fd5b8f
Merge pull request #69 from dpalais/root_parent_scope
Set parent scope in state initialization
2024-03-07 20:34:07 +01:00
Serhii Snitsaruk b90b85f0c3
Merge pull request #68 from Rubonnek/fix-btview-update-crash
Fix `BehaviorTreeView::update_tree` null data crash
2024-03-07 20:32:58 +01:00
Serhii Snitsaruk e182a56f7e
Merge pull request #67 from Rubonnek/expose-btview-clear
Expose `BehaviorTreeView::clear` to GDScript
2024-03-07 20:32:15 +01:00
Dave Palais 653bf13a7d Set parent scope in state initialization 2024-03-07 14:00:27 -05:00
Wilson E. Alvarez dd837ff472
Fix BehaviorTreeView::update_tree null data crash 2024-03-07 11:50:34 -05:00
Wilson E. Alvarez 3f34e4dde2
Expose BehaviorTreeView::clear to GDScript 2024-03-07 11:39:53 -05:00
Serhii Snitsaruk 41dafe642a Doc: Add a demonstration GIF to the README 2024-03-07 15:17:02 +01:00