Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing BT Player Behaviour Tree in runtime causing Crash #254

Closed
superhighlevel opened this issue Dec 3, 2024 · 1 comment · Fixed by #255
Closed

Changing BT Player Behaviour Tree in runtime causing Crash #254

superhighlevel opened this issue Dec 3, 2024 · 1 comment · Fixed by #255
Labels
bug Something isn't working

Comments

@superhighlevel
Copy link

Godot version

v4.3.stable.official [77dcf97d8]

LimboAI version

v1.2.2 [d3d3295]

LimboAI variant

GDExtension / AssetLib

Issue description

Hello, thank you for the awesome AI framework.
The game crashes when I try to change the Behaviour Tree of BT Player through an action as a trigger.

How to reproduce

  1. Install LimboAI from AssetLib
  2. Create 2 Action nodes with separate classes with an export behavior tree, controlled by an action manager, in Agent.
  3. When Action 1's behavior tree has done its job, use a BTTask as a trigger to change the behavior tree through Agent.
    behaviourtreebug.zip
@limbonaut
Copy link
Owner

Thanks for the MRP. Fixed it in #255.

limbonaut added a commit that referenced this issue Dec 4, 2024
Fix: Keep `BTInstance` alive until update is finished (fixes #254)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants