bitbrain / beehave

🐝 behavior tree AI for Godot Engine
https://bitbra.in/beehave
MIT License
1.86k stars 116 forks source link

Use relative paths when loading autoloads instead of global #241

Closed Stronkkey closed 10 months ago

Stronkkey commented 10 months ago

Description

Use relative paths when loading autoloads instead of global. This allows moving the beehave folder anywhere without it breaking.

Previous:

    add_autoload_singleton("BeehaveGlobalMetrics", "res://addons/beehave/metrics/beehave_global_metrics.gd")
    add_autoload_singleton("BeehaveGlobalDebugger", "res://addons/beehave/debug/global_debugger.gd")

This PR:

    add_autoload_singleton("BeehaveGlobalMetrics", "./metrics/beehave_global_metrics.gd")
    add_autoload_singleton("BeehaveGlobalDebugger", "./debug/global_debugger.gd")

Addressed issues

Probably Closes #237

Screenshots

N/A Not required.

bitbrain commented 10 months ago

Thank you.