Skip to content

Can't load tree from editor json #3

@DIGarnier

Description

@DIGarnier

Passing trees made with the online editor containing decorators outputs this:
I'm using python 2.7

Traceback (most recent call last):  File "test.py", line 10, in <module>    tree.load(data_tree)
  File "/home/b3/core/behaviortree.py", line 35, in load
    node = cls()
TypeError: __init__() missing 1 required positional argument: 'child'

The tree in question is this simple one:

tree

It seems like the node's constructor is always being called without children even if it needs one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions