+1 vote

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!

in Engine by (110 points)

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...

[gdresource type="Environment" loadsteps=2 format=2]

[sub_resource type="ProceduralSky" id=1]

[resource]
backgroundmode = 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]

uiselect={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource
localtoscene":false,"resourcename":"","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
localtoscene":false,"resourcename":"","device":0,"buttonindex":3,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resourcelocaltoscene":false,"resourcename":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"unicode":0,"echo":false,"script":null)
]
}

[rendering]

quality/intendedusage/framebufferallocation=0
quality/intendedusage/framebufferallocation.mobile=0
quality/2d/usepixelsnap=true
vramcompression/importbptc=true
vramcompression/importetc=true
quality/directionalshadow/size.mobile=4096
quality/subsurface
scattering/quality=2
environment/defaultenvironment="res://defaultenv.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 )

[subresource 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 )

[subresource type="ParticlesMaterial" id=16]
emission
shape = 1
emis

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.