Crash on startup of export - No loader found for resource: .cs/C# script

Im using version 4.2.1 with a 4.2.1 export.

I should first state that I’m using a self compiled export template for windows. This is due to the fact that it will not, in any way, let me download them. I used the
scons platform=windows target=template_release arch=x86_64
command for this within sourcecode and then exported the project to my desktop.

The export settings I am using are:

And the error I am getting is:

C:\Users\[Blank]\Desktop>ExportReleaseSysVis.console.exe
Godot Engine v4.2.1.stable.custom_build - https://godotengine.org
OpenGL API 3.3.0 NVIDIA 551.86 - Compatibility - Using Device: NVIDIA - Quadro M2000M

ERROR: No loader found for resource: res://Crip/LABB.cs (expected type: Script)
   at: (core\io\resource_loader.cpp:282)
ERROR: No loader found for resource: res://Crip/RotateCam.cs (expected type: Script)
   at: (core\io\resource_loader.cpp:282)
ERROR: No loader found for resource: res://Crip/MotionSys.cs (expected type: Script)
   at: (core\io\resource_loader.cpp:282)
ERROR: Can't load dependency: res://Crip/LABB.cs.
   at: (core\io\resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: (core\io\resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: (core\io\resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/133200997/export-4c79ddb98b07e43b2ab89b42cec4914a-main_scene.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: (core\io\resource_loader.cpp:275)
ERROR: Failed loading scene: res://Nodes/main_scene.tscn.
   at: (main\main.cpp:3431)

So I was wondering what im doing wrong, it works just fine from the editor, after having updated my integrated graphics drivers to let opengl work.

The files are just regular C# scripts im editing from visual studio.

Ok, so you need to compile the another command.
So it isn’t:

scons platform=windows target=template_release arch=x86_64 

But it becomes:

scons platform=windows target=template_release arch=x86_64 module_mono_enabled=yes

When you actually want to use C#. i do feel like this should be mentioned a little clearer on the “compile for windows” page…
Good luck to anyone!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.