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

Can't get it to work at all? #75

Closed
amazingoomoo opened this issue Nov 6, 2023 · 4 comments
Closed

Can't get it to work at all? #75

amazingoomoo opened this issue Nov 6, 2023 · 4 comments

Comments

@amazingoomoo
Copy link

Hi, I'm following the instructions and creating the StateMachinePlayer node, and a "StateMachine" window appears at the bottom, but when I click it it's just grey. There's no grid, there's no controls, it's completely blank. I can't press any button anywhere to create a new state machine because there's no button. I also can't launch my scene with the plugin enabled because it throws several errors.

It gives me this error in StateMachinePlayer.gd
Line 0:Could not resolve class "res://addons/imjp94.yafsm/src/StackPlayer.gd"

It also gives me this error in StackPlayer.gd
Line 23:Cannot call the parent class' virtual function "_init()" because it hasn't been defined

I'll be honest, I don't know what any of this means. The guide to this said it is "plug and play" which is great for me as I am just setting out. But I have failed at the first hurdle here.

Happy to supply my rather basic empty file if someone can tell me what file I would actually need to include.

@tayete
Copy link

tayete commented Nov 7, 2023

Yep, that's the same issue I have opened recently. For some reason it has stopped working when it did perfectly, even though I installed it a couple of months ago and worked perfectly. Suddenly three days ago it started giving the message you mention, and the grid for the flowchart is completely grey.

@cplepel
Copy link

cplepel commented Nov 14, 2023

I also have this issue. I've been getting plugin.gd errors.

res://addons/imjp94.yafsm/plugin.gd:89 - Invalid set index 'state_machine' (on base: 'Control (StateMachineEditor.gd)') with value of type 'Nil'. res://addons/imjp94.yafsm/plugin.gd:113 - Invalid get index 'state_machine' (on base: 'Node (StateMachinePlayer.gd)'). res://addons/imjp94.yafsm/plugin.gd:89 - Invalid set index 'state_machine' (on base: 'Control (StateMachineEditor.gd)') with value of type 'Nil'. res://addons/imjp94.yafsm/plugin.gd:113 - Invalid get index 'state_machine' (on base: 'Node (StateMachinePlayer.gd)').

@cplepel
Copy link

cplepel commented Nov 14, 2023

Specifically, I think the state machine isn't getting instantiated on the editor. Im new to GDScript though, so maybe I'm misreading.

@cplepel
Copy link

cplepel commented Nov 14, 2023

Ok, I'm confirming that Issue #74 is seemingly the cause. It fails to parse the base class files, and this leads to errors across the entire thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants