0 votes


So it has already happened to me twice that when I wanted to start and edit my project, my Main.gd had something else in it than the code I wrote.
Thereupon Godot stops loading the scene and says he cannot read it, which is understandable.

So this is the third time that I have to rewrite my complete code from the game.

Example of the Main.gd now:

[gd_resource type="Environment" load_steps=2 format=2]

[sub_resource type="ProceduralSky" id=1]

background_mode = 2
background_sky = SubResource( 1 )



"deadzone": 0.5,
"events": [     Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
,     Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":3,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"unicode":0,"echo":false,"script":null)

in Engine by (110 points)

And your question is... ?

From your description alone it's impossible to tell if that's caused by a bug or you did something else wrong. If you can reproduce what's happening, you can report a bug. If not, you should at least start using any type of version control (like e.g. git) to regularly save your project: there always is the possibility of bugs in any software.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.