Reply To: Saving and loading Behavior Trees

NodeCanvas Forums Support Saving and loading Behavior Trees Reply To: Saving and loading Behavior Trees


Hello again,

Unfortunately changing the root node did not work as expected in my tests for the purposes of saving/loading as described above 🙁 Even if it did work however, that would still be problematic since there could be more than one node running in a behaviour tree, in case for example a Parallel node is used; so this is unfortunately not a viable option to explore further 🙁

As described before, I would suggest to try and design your trees in such a way that saving/loading only the blackboard variables (along with other conditional tasks of course), makes it so that the tree flow to the desired branch. Alternatively, you could disallow the possibility for the player to save the game at any given time (if that is a possibility for your project as well of course).

Please let me know.
Thank you.

Join us on Discord: