Mod Tools: Behaviour Tree Visualiser Plugin for draw.io

Smayo

Warlord
Joined
Mar 1, 2019
Messages
158
I have written a behavior tree visualiser for the diagram program drawio. It might help in understanding how to mod ai trees.



Note: Posting here since there is no tools section, happy to have it moved if theres a better place.

The program underneath it has some bad defaults, like Light Mode, but can be adjusted if you so wish.
 

Attachments

Oh and heres an example of the generated graph.I am still a little unsure of the parenting in a few niche cases. Once i get it hammered down, ill do some prettifying like making sure text fits in nodes.
1739639352200.png
 
Brilliant and important work. I hope to have more time today to use it.
 
Update: I am having a hell of a time getting Electron to know the user of the plugin, as I need the User/$USERNAME/Appdata/Roaming/drawio/plugins to load an auxiliary library. And also developing on it has been hell, the dev experience for a plugin sucks a lot. I am gonna switch to doing a version in python, which will generate a file that you can open in this draw.io, or maybe more agnostically, any graphViz format. I'll leave this up for posterity, it should work by going in and amending line 70 of BehaviorNodeBuilder from :
JavaScript:
mxscript(`C:/Users/Sam/AppData/Roaming/draw.io/plugins/sql-js-loader.js`, function() {

to whatever your Username is instead of "Sam". MacOs or Linux users will likely have a different path, but I also trust you guys can find it yourselves.

Anyways, hopefully will get a version out in python in a day or so. And if you are willing to work in BehaviorTrees, setting up Python is a piece of cake.
 
New update with python and graphviz. Slight less user friendly as you need to be able to run main.py. I kinda don't wanna bundle it,so its just a raw script. Was made in python 3.9, but the only advanced thing i use is fstrings, so should work on most python3.
View attachment 1739716542991.png
 
Back
Top Bottom