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

Doesn't work in Godot 4.0 #61

Open
Shadowblitz16 opened this issue Jun 6, 2023 · 4 comments
Open

Doesn't work in Godot 4.0 #61

Shadowblitz16 opened this issue Jun 6, 2023 · 4 comments

Comments

@Shadowblitz16
Copy link

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

@imjp94
Copy link
Owner

imjp94 commented Jun 11, 2023

Can you provide a minimal project to reproduce the bug?

@Shadowblitz16
Copy link
Author

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

@dodopod
Copy link

dodopod commented Aug 25, 2023

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

@lizi-garden
Copy link

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

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