Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Unable to load add-on script

A topic by MasterPeasant created Apr 20, 2024 Views: 202 Replies: 7
Viewing posts 1 to 4

Hi, I am using Godot v4.2.2 mono on Windows with 6.0.421 .NET installed. I was following the installation guide and I run into this error after the "build" part, when I trying to enable the Addon:

'Unable to load add-on script from path: 'res://addons/assetplacer/AssetPlacerPlugin.cs'. This may be due to a code error in that script.'

'Disabling the add-on in 'res://addons/assetplacer/plugin.cfg' to avoid further errors.'

I already tried removing the folder and placing a new copy again, but the error persists.

Any help would be appreciated :)

Developer

Unfortunately I cannot directly tell where your issue is, from that information. Any of the following might help you:

  • Make sure you followed the installation steps carefully, especially the "build" part (https://cookiebadger.github.io/assetplacer-docs/installation.html). Notice the small build button next to the play button in Godot 4.2.2.
  • If  this does not help, remove the addon, but also remove the "mono" folder inside the ".godot" folder in your projects root directory. Then, add plugin again and build. It should work now.
  • Otherwise, try the plugin in a new project, to see if the issue is related to your project and let me know your findings.

I hope this helps!

Hello I am having the same issue. I used to use the addon long time ago but now I try with no prevail having the same issue. I tried with a new MONO project and still the same :(

Developer

Hello denismedia, did you make sure after adding the plugin to the addon folder to:

- add a new empty C# script, to let Godot know that this is a C# project and show the build button?

- Click the build button (little hammer icon) next to the play button?

I went ahead and tried the plugin again in 4.2.2mono and 4.3rc2mono, and in both versions I was able to install the plugin without problems. I also used the latest .NET version (6.0.424).

(1 edit)

Tried with 1.3.0 and 1.2.3 & Also In different Godot Versions & I have the same issues

Developer(+1)

Hello denisvergara@outlook.com, did you make sure after adding the plugin to the addon folder to:

- add a new empty C# script, to let Godot know that this is a C# project and show the build button?

- Click the build button (little hammer icon) next to the play button?

I went ahead and tried the plugin again in 4.2.2mono and 4.3rc2mono, and in both versions I was able to install the plugin without problems. I also used the latest .NET version (6.0.424).

fixed the issue. It was another addon on my project that prevented my the correct c# building. Thanks for your time and amazing addon!

Developer(+1)

You are welcome, and I am glad you were able to fix your issue. Happy development! :)