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

Static getters in ComponentList.gd don't work with respawning entities #17

Open
jonathaneeckhout opened this issue May 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jonathaneeckhout
Copy link
Owner

Description:
While working on the respawn functionality of the enemies the static getters registrations show a lot of errors and warnings when an enemy respawns.

E 0:00:50:0355   ComponentList.gd:50 @ register_component(): Attempted to assign an invalid (previously freed?) object instance into a 'TypedArray.
  <C++ Error>    Parameter "object" is null.
  <C++ Source>   core/variant/container_type_validate.h:116 @ validate_object()
  <Stack Trace>  ComponentList.gd:50 @ register_component()
                 Component.gd:20 @ register_to_parent_list()
                 Component.gd:10 @ _ready()
                 AnimationComponent.gd:17 @ _ready()
                 respawn.gd:27 @ _on_despawn_timer_timeout()
E 0:00:50:0355   ComponentList.gd:50 @ register_component(): unsupported format character
  <C++ Error>    Condition "error" is true. Returning: String()
  <C++ Source>   ./core/variant/variant.h:834 @ vformat()
  <Stack Trace>  ComponentList.gd:50 @ register_component()
                 Component.gd:20 @ register_to_parent_list()
                 Component.gd:10 @ _ready()
                 AnimationComponent.gd:17 @ _ready()
                 respawn.gd:27 @ _on_despawn_timer_timeout()
E 0:00:50:0355   ComponentList.gd:50 @ register_component(): Method/function failed.
  <C++ Source>   core/variant/array.cpp:222 @ assign()
  <Stack Trace>  ComponentList.gd:50 @ register_component()
                 Component.gd:20 @ register_to_parent_list()
                 Component.gd:10 @ _ready()
                 AnimationComponent.gd:17 @ _ready()
                 respawn.gd:27 @ _on_despawn_timer_timeout()

I've now disabled/commented out the static getters as they are not used anywhere yet.

Should be fixed.

@jonathaneeckhout jonathaneeckhout added the bug Something isn't working label May 24, 2024
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

No branches or pull requests

1 participant