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

Invalid call. Nonexistent function 'set_comp_name' in base 'Node (transition.gd AND state.gd) #7

Open
MPLekter opened this issue Mar 1, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@MPLekter
Copy link

MPLekter commented Mar 1, 2023

Hello,
question regarding version 1.2.3 running on Godot 3.5
I just started playing around with the Asset and noticed strange behaviour.
I am inside the Main scene in the example folder.
When trying to add more states or transitions in the FSM editior, I am getting error messages:

res://addons/fsm-node/plugin.gd:167 - Invalid call. Nonexistent function 'set_comp_name' in base 'Node (state.gd)'.
res://addons/fsm-node/plugin.gd:190 - Invalid call. Nonexistent function 'set_comp_name' in base 'Node (transition.gd)'.

Is that intentional or is it a bug?

@mechPenSketch mechPenSketch added the bug Something isn't working label Mar 2, 2023
@mechPenSketch
Copy link
Owner

It's most likely a bug as set_comp_name() should be called at their GraphNode path instead. I will be upgrading this asset for 4.0, but I'll keep this bug in mind while working on the code.

@mechPenSketch
Copy link
Owner

I've looked at the code again and it looks like at those lines supposed to change the names of the State and Transition nodes, so it should be set_name(new_name) and not set_comp_name(new_name).

I have refactored the code and it should work as intended, but I have yet to test it.

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

2 participants