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

Problem to enable icons-fonts addon #7

Open
manuelarte opened this issue Dec 26, 2024 · 3 comments
Open

Problem to enable icons-fonts addon #7

manuelarte opened this issue Dec 26, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@manuelarte
Copy link

manuelarte commented Dec 26, 2024

Describe the bug
When copying the addon folder to my project, I get the following error:

Unable to load addon script from path: 'res://addons/icons-fonts/icons_fonts.gd'. This might be due to a code error in that script.
Disabling the addon at 'res://addons/icons-fonts/plugin.cfg' to prevent further errors.

To Reproduce
Steps to reproduce the behavior:

  1. I downloaded the project and extracted the zip file
  2. I copied the content inside the addon folder and pasted it in my project addon's folder
  3. I try to enable the plugins, and the plugin Rakugo Nodes is enabled properly (I guess), but the plugin Godot Icons Fonts throws the following error:
Unable to load addon script from path: 'res://addons/icons-fonts/icons_fonts.gd'. This might be due to a code error in that script.
Disabling the addon at 'res://addons/icons-fonts/plugin.cfg' to prevent further errors.

Expected behavior
I expect both addons to be enabled

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

Runtime (please complete the following information):

  • Godot version [4.4]
  • Rakugo Version [master branch]

Additional context
Looking foward to use the addons

@manuelarte manuelarte added the bug Something isn't working label Dec 26, 2024
@Jeremi360
Copy link
Contributor

Hi, I'm very happy to hear that you are interested in using my project.
Just reload project and it should work.
It is problem with godot addons system itself that it don't allow to set order of loading script and their assets, so at first launch it load of addon it can happen.

@manuelarte
Copy link
Author

manuelarte commented Dec 28, 2024

I reloaded it and still get the issue. I am getting a compilation error in icon_fonts.gd:

await IconsFonts.ready

image

@Jeremi360
Copy link
Contributor

Jeremi360 commented Dec 28, 2024

Thanks for info, it is probably some bug with Godot 4.4 as it is dev version.
I only tested it against 4.3. I will update to support 4.4 after its becomes stable.

@manuelarte If you really need to use 4.4:

  1. So try manually add autoload/singelton in Project Settings:
    res://addons/icons-fonts/icons_fonts/IconsFonts.gd
  2. then try to enable addon - it should work after that.
  • Other wise use 4.3 for your project instead and it will work.

I also just got idea how to fix this error, so I will try it soon.

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