Godot deleted script

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

Godot deleted my whole main script and wrote something else inside.
I was completely finished with the app after a restart of the engine everything was gone.
I think that was a bug if someone has a solution to prevent this, please say.
I don’t think you can restore the code.

Save your code multiple time!

What exactly was in your script file after the restart? That would be very important to know if this really was caused by a Godot bug…

jgodfrey | 2020-03-20 23:29

[gd_resource type=“Environment” load_steps=2 format=2]

[sub_resource type=“ProceduralSky” id=1]

[resource]
background_mode = 2
background_sky = SubResource( 1 )
lay]

window/size/width=500
window/size/height=880
window/size/resizable=false
window/size/borderless=true
window/handheld/orientation=“portrait”
window/stretch/mode=“2d”
window/stretch/aspect=“expand”

[input]

ui_select={
“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)
]
}

[rendering]

quality/intended_usage/framebuffer_allocation=0
quality/intended_usage/framebuffer_allocation.mobile=0
quality/2d/use_pixel_snap=true
vram_compression/import_bptc=true
vram_compression/import_etc=true
quality/directional_shadow/size.mobile=4096
quality/subsurface_scattering/quality=2
environment/default_environment=“res://default_env.tres”
random = 1.0
color_ramp = SubResource( 8 )

[sub_resource type=“Gradient” id=12]
colors = PoolColorArray( 0.774414, 0.953125, 0.953125, 1, 0.2, 1, 1, 1 )

[sub_resource type=“GradientTexture” id=13]
gradient = SubResource( 12 )

[sub_resource type=“Curve” id=14]
min_value = -200.0
max_value = 400.0
_data = [ Vector2( 0, -173.636 ), 0.0, 0.0, 0, 0, Vector2( 1, -1.59091 ), 0.0, 0.0, 0, 0 ]

[sub_resource type=“CurveTexture” id=15]
curve = SubResource( 14 )

[sub_resource type=“ParticlesMaterial” id=16]
emission_shape = 1
emis

Krippi | 2020-03-21 12:17