limbonaut / limboai

LimboAI - Behavior Trees and State Machines for Godot 4
https://limboai.readthedocs.io/
MIT License
1.14k stars 37 forks source link

GUI for creating and editing HSM #228

Open bits-by-brandon opened 1 week ago

bits-by-brandon commented 1 week ago

Problem statement

Currently the only way to create and edit a HSM is with code. For larger and more complex HSM's it can be difficult to get a quick understanding of the structure of the HSM. A graph-based or otherwise visual HSM would be really helpful for both understanding and debugging the HSM, but also for less technical people to contribute and build these state machines.

Proposed solution

LimboAI could utilize Godot's graph functionality to create tools that allow GUI creation and debugging of state machines. Here are some examples from gd-YAFSM for inspiration

image image

Alternatives

The alternative is just not using a GUI.

limbonaut commented 3 days ago

I have a few enhancements in mind for HSMs. It was always my intention to have a GUI editor. However, I'd like the form and function of HSMs to be fully established before GUI is considered. Godot graphs can be utilized, but they are limiting, so maybe a custom solution would be better. I'd have to take another look at graphs to see if they fit the job well today.

bits-by-brandon commented 3 days ago

I know the Godot graphs have received a bit of an overhaul in 4.1+, but I'm not sure if necessarily made them better. I'd be excited to see what you come up with for this, if it's anywhere close to how nice the debugger for the BT is