davebaol
davebaol
TBH I don't think I'll have the time to implement your enhancement. Also you can easily achieve a similar result by setting a property of the entity before including the...
Ok pushed the [btree branch](https://github.com/libgdx/gdx-ai/tree/btree). I'm not fully convinced by the METADATA static field, but it's what I've come up with so far. METADATA contains task information for loaders and...
Now all branch nodes have an optional attribute "deterministic" which defaults to true. I'm not sure it makes sense for Parallel. Should we remove it from Parallel METADATA? We can...
@implicit-invocation > How can we validate our XML then? Yes, we miss XML validation (which is always optional, anyways) but we can still verify if the document is well-formed. Despite...
Well, yes I meant that with JSON you're forced to use an array when the order is relevant since properties are unordered. Also, I was assuming that the XML tree...
@implicit-invocation Did you look into the implementation? https://github.com/libgdx/gdx-ai/blob/btree/gdx-ai/src/com/badlogic/gdx/ai/btree/BranchNode.java#L56 If the branch is non-deterministic the `actualTask` is chosen randomly among the next children. EDIT: Note that children are swapped.
Hmmm.... why? Suppose you want to burn something. ``` sequence deterministic:false task:GetMatches task:GetGasoline ``` The order you get matches and gasoline is irrelevant but you need both. Am I missing...
Yeah the use of a deterministic sequence whose first child is a condition task in the most common case. However when the order is irrelevant and the children have equal...
@implicit-invocation Ok just pushed the [new parser](https://github.com/libgdx/gdx-ai/blob/btree/gdx-ai/src/com/badlogic/gdx/ai/btree/parser/BehaviorTreeReader.rl#L254) written with Ragel. Lines in the file have the following syntax: ``` [[indent] [name [attr:value ...]] [comment]] ``` where: - name is in...
Eh I had just to learn how to use Ragel and add JSON-like values, the rest is a mix of your old parser and my xml parser. Looking forward to...