mohsenph69 / Godot-MTerrain-plugin

A GDExtension plugin which give godot the ability to produce highly optimized Terrain for Open world games
MIT License
372 stars 19 forks source link

"Cannot get class MTerrainMaterial" error when exporting #18

Closed nickpolet closed 7 months ago

nickpolet commented 7 months ago

Building the latest version of master, then trying to export a project results in the following error:

image

Reverting back to an older version before the MTerrainMaterial addition seems to work well. I've tried clearing the .godot just in case there was something cached incorrectly in there, but no difference. I've also tried release & debug builds, but to no avail.

Any ideas what might be happening here?

nickpolet commented 7 months ago

Just to add... running the project in the editor works flawlessly. Terrain shader loads and works well. It's just when exporting.

mohsenph69 commented 7 months ago

That is really strange, Recently I created a demo and I exported for windows and linux, in both cases it worked fine! Download executable file for linux: https://drive.google.com/file/d/1909n57cXXfnO2HNdj45zKmFsxWzkMHtk/view?usp=sharing

Download executable file for windows: https://drive.google.com/file/d/1WJBxvBy7R8UVTe0kZo3FGi6Nghv1_LQn/view?usp=sharing

The demo above also use MTerrainMaterial

Recently I added a new release "v0.9.2", try to use that if you are using the older version and see if that works

if that does not work, send me a minimal project file so I can reproduce the bug, and see what is the problem, Because as this error does not happen to me I have no idea how to solve it!

nickpolet commented 7 months ago

Okay, used 0.9.2 instead of 0.9.1 and everything works great. Thanks for the tip.

I didn't see that there had been a new release. All good now though.

Absolutly loving this add on BTW. 16km by 16km running so performantely is amazing in Godot. Such a powerful add on.

Will close this issue out now.