Commit Graph

44 Commits

Author SHA1 Message Date
Serhii Snitsaruk ded2ed2fef Add elapsed, timing info and improve drawing 2023-04-14 10:16:26 +02:00
Serhii Snitsaruk 9abfeadc21 Implement basics of behavior tree debugger 2023-04-13 12:46:48 +02:00
Serhii Snitsaruk 348aa4f750 Use double instead of float when dealing with time 2023-04-10 10:08:11 +02:00
Serhii Snitsaruk 6fc97c43cd Fix precision issues for _generate_name() tasks 2023-04-10 07:54:02 +02:00
Serhii Snitsaruk ef7480b054 Fix editor crash related to bt resource reloading 2022-12-19 10:29:46 +01:00
Serhii Snitsaruk d5088a9f20 Implement pascal case auto naming for tasks without _generate_name() 2022-12-17 21:18:11 +01:00
Serhii Snitsaruk 370efcba73 Refactor composite and decorator classes 2022-12-17 11:47:10 +01:00
Serhii Snitsaruk 3693c3fc50 Refactor BTAction classes 2022-12-17 11:26:48 +01:00
Serhii Snitsaruk 0ba36cb3dd Refactor BTTask class 2022-12-17 08:33:18 +01:00
Serhii Snitsaruk c67216c1e1 Refactor BTPlayer and BTState 2022-12-16 15:29:36 +01:00
Serhii Snitsaruk 0bb03c2b4c Clean and improve BehaviorTree resource class 2022-12-16 14:29:14 +01:00
Serhii Snitsaruk dbc9a7ad31 Add mostly minimal changes in order to compile and run with godot 4 2022-12-15 14:33:03 +01:00
Serhii Snitsaruk 5220c1c6e7 Fix _get_configuration_warning() is not called for scripts 2022-11-22 23:15:48 +01:00
Serhii Snitsaruk 8d3249d8a8 Add small improvements 2022-11-04 13:26:49 +01:00
Serhii Snitsaruk f9f2a67bbf Fix BTParallel getting stuck when repeat=false and criterea are not met 2022-11-03 17:01:26 +01:00
Serhii Snitsaruk 08bb63ad26 Add documentation and improvements for BTTask
Fixed: BTTask chidren property, setter and getter are exposed in editor
2022-11-02 19:53:37 +01:00
Serhii Snitsaruk 1bc8484454 Fix bugs 2022-11-01 14:03:20 +01:00
Serhii Snitsaruk 40cb7891c7 Fix BTTask status property exposed 2022-10-30 14:15:29 +01:00
Serhii Snitsaruk 46ec4069b5 Duplicate dictionary data 2022-10-27 01:51:29 +02:00
Serhii Snitsaruk b68dc0a36a Fix bugs 2022-10-26 23:12:29 +02:00
Serhii Snitsaruk 7ec38e0988 Add set_agent() 2022-10-25 00:47:22 +02:00
Serhii Snitsaruk d359f620e3 Make BBParam properties unique @clone() 2022-10-21 16:15:13 +02:00
Serhii Snitsaruk 34ef7d96ea Fix bugs 2022-10-20 22:00:10 +02:00
Serhii Snitsaruk 36ff3a724f Remove blackboard management from BTState 2022-10-19 23:41:56 +02:00
Serhii Snitsaruk f4e3f162ec Implement basic BTState 2022-10-19 20:54:21 +02:00
Serhii Snitsaruk c43fac596c Handle NodePath vars 2022-10-19 16:01:16 +02:00
Serhii Snitsaruk 9937f2463b Fix export templates build errors 2022-09-30 00:17:32 +02:00
Serhii Snitsaruk 3f47f2bf76 Add ForEach decorator 2022-09-22 13:09:49 +02:00
Serhii Snitsaruk 7be7ca276d Add instancing to behavior tree 2022-09-21 16:13:17 +02:00
Serhii Snitsaruk 6cac198092 Fix Cooldown broken 2022-09-21 12:37:38 +02:00
Serhii Snitsaruk 8b1b0dd754 Fix decorator having no children crash 2022-09-21 12:37:19 +02:00
Serhii Snitsaruk a3cac93174 Add NewScope and refactor Subtree 2022-09-20 19:15:48 +02:00
Serhii Snitsaruk e4f92893a1 Add Blackboard class with support for scopes 2022-09-08 15:56:51 +02:00
Serhii Snitsaruk 5a8442d5a0 Add BTConsolePrint task 2022-09-06 13:08:52 +02:00
Serhii Snitsaruk 026ff26ab3 Use single function to get task icon in the editor 2022-09-05 16:39:40 +02:00
Serhii Snitsaruk 8e45a4d38a Fix _generate_name fails without reporting an error if script is not a tool script 2022-09-05 16:31:48 +02:00
Serhii Snitsaruk 29dcabedf4 BTPlayer: Fix owner bug and export blackboard 2022-09-05 16:30:41 +02:00
Serhii Snitsaruk 18746dc7c2 Fix: sequence and selector working like dynamic 2022-09-05 15:08:35 +02:00
Serhii Snitsaruk ec9eec4120 Add BTSubtree action 2022-09-03 20:42:38 +02:00
Serhii Snitsaruk aefa132290 Add drag and drop.
Rearrange tasks with drag and drop in editor.
2022-09-03 17:00:20 +02:00
Serhii Snitsaruk 552185dc07 Fix script being disowned 2022-09-03 00:08:10 +02:00
Serhii Snitsaruk 4c580c6b1d Add Editor functionality (rudimentary)
* Adding fav tasks
* Saving/loading
* Popup menu with a number of functions
* Header

Also:
* BTTask: Fix broken get_icon()
* BTTask: Initialize parent during set_children()
2022-09-02 00:20:37 +02:00
Serhii Snitsaruk d128bdf8f6 Bind signal - BTPlayer 2022-08-31 17:50:49 +02:00
Serhii Snitsaruk 3393ed24d7 Reorganize files 2022-08-31 17:05:25 +02:00