Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Plugin Not Working For Some Projects

A topic by Slothware created 77 days ago Views: 92 Replies: 3
Viewing posts 1 to 2

I am having an issue getting the plugin to work properly on a specific project. 

I get a bunch of errors starting with this one:

/root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/ExceptionUtils.cs:113 - System.InvalidCastException: Unable to cast object of type 'Godot.Resource' to type 'AssetPlacer.AssetPlacerPluginData'

And ending with this one:

AssetPlacerPlugin: Please reload Asset Placer Plugin from the Project Settings panel!

The plugin seems to work totally fine when I tried installing it on another project. 

I am not really sure how to go about debugging this. What in my project could be affecting the plugin?

Developer

Hello @slothware.

I'm sorry that you're encountering an issue. The error can be affected by several things, but I can't say for sure which is the cause

- Corrupted C# files, you could try if the plugin recompiles correctly after deleting the folder /.godot/mono inside your project repository

- Assetplacer version and Godot version: make sure you have a compatible combination. Let me know which ones you are using, make sure you use the latest Godot version

- .csproj or .sln file in your project directory. If you have added any custom specifications there, the AssetPlacer compilation can be affected.

I hope you can fix your issue. Let me know how it goes. Please also make sure to check this page: https://cookiebadger.github.io/assetplacer-docs/faq.html#i-added-the-plugin-but-i-cannot-enable-it

Hi, 

Thanks so much for your help. I think I just figured it out.

This solution sounds silly but I tested it and it seems consistent. 

The plugin will not run when I have a space in my project name. I renamed my project and everything just loaded fine.

Also this might be a duplicate of this issue here: https://github.com/CookieBadger/assetplacer-docs/issues/23

Glad I got it working!

Developer

I'm glad you got it working, and thanks for sharing your findings. I will investigate regarding the project name issue.

Good luck with your projects!