gd-YAFSM
gd-YAFSM copied to clipboard
Doesn't work in Godot 4.0
When I try to create a new state machine resource I get this..
Set state_machine
res://addons/imjp94.yafsm/scenes/StateMachineEditor.gd:243 - Invalid set index 'state_machine' (on base: 'Nil') with value of type 'Resource (StateMachine)'.
res://addons/imjp94.yafsm/scenes/StateMachineEditor.gd:243 - Invalid set index 'state_machine' (on base: 'Nil') with value of type 'Resource (StateMachine)'.
res://addons/imjp94.yafsm/scenes/StateMachineEditor.gd:243 - Invalid set index 'state_machine' (on base: 'Nil') with value of type 'Resource (StateMachine)'.
My godot version is 4.0.2
Can you provide a minimal project to reproduce the bug?
No I don't have that project anymore, but I just...
- opened asset browser
- downloaded it to the addons folder
- enabled the plugin
- created the state machine node
- created the state machine resource through inspector
- saw it errored
- cleared it from the inspector
- created the state machine resource through the state machine editor
This happened to me, too. Quitting to the Project List and reloading the project fixed it.
After I renamed the enumeration variable of State in my project, this error no longer appears