NodotProject / nodot

A node composition library for Godot 4
https://nodotproject.github.io/nodot/
MIT License
332 stars 12 forks source link

Can't run example: Could not find type Saver in the current scope #86

Closed mathewcst closed 1 year ago

mathewcst commented 1 year ago

I've just cloned the repo and tried to run the FPS example. Immediately got the error:

Line 9:Could not find type "Saver" in the current scope.
Line 14:Could not find type "Saver" in the current scope.
Line 20:Could not find type "Saver" in the current scope.

All from SaveManager.gd

image

krazyjakee commented 1 year ago

Have you enabled the plugin?

mathewcst commented 1 year ago

@krazyjakee yes, I literally cloned the repo, opened in Godot 4.0.2 (stable) and tried to run the FPS->Map

The plugin is enable and the AutoLoads were added.

krazyjakee commented 1 year ago

https://github.com/NodotProject/nodot/blob/main/addons/nodot/utility/Saver.gd

Is this file in your local directory?

mathewcst commented 1 year ago

Yeah.

I've cloned the entire main branch just to run the examples.

I was using the GodotSteam 4.0.2 stable.

https://user-images.githubusercontent.com/5620645/236339893-d6dcc4a7-3855-4b29-9a12-3b8f23949fdb.mp4

After cloning again and using the official stable version, seems to work fine.

https://user-images.githubusercontent.com/5620645/236339987-066a7920-e1be-4aab-b829-0c63bee5db88.mp4

Idk what happened there hahahah

Thanks for the help =)

krazyjakee commented 1 year ago

This is good to know, thanks