gd-YAFSM icon indicating copy to clipboard operation
gd-YAFSM copied to clipboard

Doesn't work in Godot 4.0

Open Shadowblitz16 opened this issue 2 years ago • 4 comments

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

Shadowblitz16 avatar Jun 06 '23 18:06 Shadowblitz16

Can you provide a minimal project to reproduce the bug?

imjp94 avatar Jun 11 '23 05:06 imjp94

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

Shadowblitz16 avatar Jun 12 '23 02:06 Shadowblitz16

This happened to me, too. Quitting to the Project List and reloading the project fixed it.

dodopod avatar Aug 25 '23 19:08 dodopod

After I renamed the enumeration variable of State in my project, this error no longer appears

lizi-garden avatar Jan 16 '24 10:01 lizi-garden