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

Unable to load addon script from path with Zylann's godot_voxel module build #42

Closed
lo-vi opened this issue Apr 15, 2021 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@lo-vi
Copy link

lo-vi commented Apr 15, 2021

Hello,

When I build godot with this module https://github.com/Zylann/godot_voxel I get the error,

Unable to load addon script from path: 'res://addons/voxel-core/voxel-core.gd' There seems to be an error in the code, please check the syntax.

With the output being:
- res://addons/voxel-core/classes/voxel_set.gd:52 - Parse Error: Non-static function "set_name" can only be called from an instance.
- modules/gdscript/gdscript.cpp:583 - Method failed. Returning: ERR_PARSE_ERROR
- res://addons/voxel-core/classes/voxel_object.gd:502 - Parse Error: The class "VoxelSet" couldn't be fully loaded (script error or cyclic dependency).
- modules/gdscript/gdscript.cpp:583 - Method failed. Returning: ERR_PARSE_ERROR
- res://addons/voxel-core/voxel-core.gd:17 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
- modules/gdscript/gdscript.cpp:583 - Method failed. Returning: ERR_PARSE_ERROR

Is there any way I could fix this?

@lo-vi
Copy link
Author

lo-vi commented Apr 18, 2021

The Voxel and VoxelTool variables where being shadowed. I just changed them to get it working again.

@lo-vi lo-vi closed this as completed Apr 18, 2021
@ClarkThyLord
Copy link
Owner

Good to know, hadn't tried building with Zylann's godot_voxel module before. I'm interested in seeing how well they play together.

@ClarkThyLord ClarkThyLord added the bug Something isn't working label Apr 18, 2021
@ClarkThyLord ClarkThyLord changed the title Unable to load addon script from path Unable to load addon script from path with Zylann's godot_voxel module build Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants