limbonaut / limboai

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

BBNode get_var during BTAction _setup() causes crash on Resource Save #217

Closed amdevgwen closed 2 months ago

amdevgwen commented 2 months ago

Godot version

v4.3.stable.official [77dcf97d8]

LimboAI version

v1.3-dev [5ddc43f]

LimboAI variant

GDExtension / AssetLib

Issue description

Relatively opaque error, only occurs during resource save, blackboard not set with applicable value. Doesn't occur on project load/compilation. It seems similar to #212

How to reproduce

Create BTAction with this code. image Add to a behaviour tree, save. Did not seem to occur every time.

amdevgwen commented 2 months ago

This was an issue with my external text editor being pointed at the wrong version of Godot, it hadn't caused any issues before but it looks like it was running into issues because it wasn't looking for godot locking the files.