tag:blogger.com,1999:blog-5417138872461097808.post149995229697228968..comments2023-08-13T06:00:11.959-07:00Comments on Tower22: Behavior Trees - ImplementationRickhttp://www.blogger.com/profile/04196340535742326978noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5417138872461097808.post-23375868781751904462016-07-03T04:43:31.314-07:002016-07-03T04:43:31.314-07:00The amount of NPC's in my game will indeed be ...The amount of NPC's in my game will indeed be (very) low. For a RTS kind of game with hundreds of units, making a duplicate for each unit consumes time and memory. Then again... you can make a pool of trees so you only have to initiate them once (grab an unused tree when spawning a new unit). And as for the memory, huge groups of NPC's usually tend to be stupid (= small trees), plus with all those gigs of memory nowadays... For this first version, I just chose the lazy & comfortable way. Having things up and running is worth something as well ;)<br /><br />Thanks for pointing to the new editor. Hopefully I don't have to recode the importer again though!Rickhttps://www.blogger.com/profile/04196340535742326978noreply@blogger.comtag:blogger.com,1999:blog-5417138872461097808.post-10221802441006072822016-07-02T23:10:19.146-07:002016-07-02T23:10:19.146-07:00wow, that was a long post filled with lots of code...wow, that was a long post filled with lots of code ;-)<br />Very interesting that you've chosen to copy (or reuse) a tree for every NPC, which may not be suitable for a large number of NPCs (I'd say >500) but with a "small" NPC base notably faster than using a slow blackboard.<br /><br />...and there is now a "new" behavior3 editor (all sources now found under the "behavior3.com" train):<br />http://editor.behavior3.com<br /><br />fyi, I'm just rewriting the behavior3delphi code to be faster in terms of the slow blackboard and be more delphi like (it is merely a translation of the javascript code) and with subtree support. you may find it later as "behavior3+delphi" on github.<br /><br />thanks for your post, very interesting indeed<br />Dennis Snoreply@blogger.com