Handle error when try to run a scene.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By auloma

Hi everyone,

I try to create my first project.
It is composed of one scene called “my_scene”.

I defined the default scene on “my_scene.cs”. Godot has accepted it (with another path it raise an error wich says that the scene doesn’t exists, so it means the scene i defined is correct … )
When i try to run the scene i have the error :
modules/mono/mono_gd/gd_mono_utils.cpp:371 - System.IO.IOException: Invalid handle to path “/home/my_path/[Unknown]”.

I changed the real path by “my_path”.

The script isn’t executed.

Thank you for your help.

:bust_in_silhouette: Reply From: cascas

Scenes are either .tscn or .scn files (normally .tscn). To run a script (either .gd or .cs) you have to add it to a node in the scene. I hope this helps.

Yes, the scene is called “my_scene.tscn”.
Godot accept it but when I want to run It it looks for [Unknown] …

auloma | 2021-01-23 12:21

Okay I think that is a bug. Maybe try with a clean project but i am not sure what else you could do.

cascas | 2021-01-23 13:58