- Edited
I have been saving my game scene files every half hour or so.
I was editing my scene and about to make a new copy of the whole project, when the editor crashed and overwrote my save file. Now I get an unexpected end of file error. All the data looks to be correct in the .tcsn file.
Is there anyway to repair a tscn file? I do not want to recreate 10 hours of work from memory.
EDIT: I realized I uploaded my old backfile- here is the current file that will not load. (Im sorry)
[gd_scene load_steps=20 format=2]
[ext_resource path="res://global_sprites/quit.png" type="Texture" id=1]
[ext_resource path="res://global_sprites/tower_select.png" type="Texture" id=2]
[ext_resource path="res://global_sprites/x.png" type="Texture" id=3]
[ext_resource path="res://models/color_1650274_004.material" type="Material" id=4]
[ext_resource path="res://models/color_15277357_004.material" type="Material" id=5]
[ext_resource path="res://global_scripts/shooter.gd" type="Script" id=6]
[ext_resource path="res://global_scripts/TowerPlacement.gd" type="Script" id=7]
[ext_resource path="res://Level_00/Level_00.gd" type="Script" id=8]
[ext_resource path="res://Level_00/Sprites/2.png" type="Texture" id=9]
[ext_resource path="res://models/PathEnemy.tscn" type="PackedScene" id=10]
[ext_resource path="res://models/shooter.tscn" type="PackedScene" id=12]
[ext_resource path="res://models/pathfollow.tscn" type="PackedScene" id=13]
[ext_resource path="res://models/bullet.tscn" type="PackedScene" id=14]
[sub_resource type="CubeMesh" id=5]
[sub_resource type="BoxShape" id=4]
[sub_resource type="BoxShape" id=2]
extents = Vector3( 0.3, 1, 0.349648 )
[sub_resource type="CubeMesh" id=3]
[sub_resource type="BoxShape" id=7]
extents = Vector3( 0.325117, 0.582893, 0.333299 )
[sub_resource type="BoxShape" id=8]
[node name="level0" type="Spatial"]
script = ExtResource( 8 )
bullet = ExtResource( 14 )
node_path = NodePath("Shooter/muzzle")
[node name="PathEnemy" parent="." instance=ExtResource( 10 )]
enemy = ExtResource( 13 )
[node name="pathfollow" parent="PathEnemy" instance=ExtResource( 13 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.17244, 0, -3.21418 )
[node name="Sprite3DBackground" type="Sprite3D" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.1, -0.1, 0.2 )
texture = ExtResource( 9 )
__meta__ = {
"_edit_lock_": true
}
[node name="FullMapCamera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 0.245358, 0.969433, 0, -0.969433, 0.245358, -0.0919414, 3.70555, 1.44883 )
current = true
size = 8.0
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 14, 0 )
directional_shadow_mode = 0
[node name="Shooter" parent="." instance=ExtResource( 12 )]
transform = Transform( -0.999706, 0, 0.0242578, 0, 1, 0, -0.0242578, 0, -0.999706, -1.2502, -0.000375748, -1.41677 )
script = ExtResource( 6 )
node_path = NodePath("../PathEnemy/pathfollow")
bullet = ExtResource( 14 )
node_path_muzzle = NodePath("muzzle")
[node name="mesh" type="CSGMesh" parent="Shooter"]
transform = Transform( 0.5, 0, 0, 0, 1, 0, 0, 0, 0.5, 0, 0, 0 )
visible = false
mesh = SubResource( 5 )
material = ExtResource( 4 )
[node name="Area" type="Area" parent="Shooter"]
[node name="CollisionShape" type="CollisionShape" parent="Shooter/Area"]
shape = SubResource( 4 )
[node name="muzzle" type="Position3D" parent="Shooter"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.149414, -0.0700495, -1.04392 )
[node name="EndGoal" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2.88925, 0, 2.90441 )
[node name="CollisionShape" type="CollisionShape" parent="EndGoal"]
transform = Transform( 0.980385, -2.69815e-09, 0.197093, 2.76979e-09, 1, -8.78414e-11, -0.197093, 6.32024e-10, 0.980385, -0.100443, 0, -0.100443 )
shape = SubResource( 2 )
[node name="CSGMesh" type="CSGMesh" parent="EndGoal/CollisionShape"]
transform = Transform( 0.25, 6.76542e-16, 0, -1.36002e-15, 0.25, 1.38778e-17, 0, 9.71445e-17, 0.25, -0.0108869, 3.74785e-11, 0.083318 )
mesh = SubResource( 3 )
material = ExtResource( 5 )
[node name="BulletContainer" type="Spatial" parent="."]
[node name="TowerButton" type="TextureButton" parent="."]
margin_left = 8.0
margin_top = 510.0
margin_right = 143.0
margin_bottom = 681.0
rect_scale = Vector2( 0.5, 0.5 )
texture_normal = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="QuitButton" type="TextureButton" parent="."]
margin_left = 8.0
margin_top = 8.0
margin_right = 279.0
margin_bottom = 94.0
rect_scale = Vector2( 0.35, 0.35 )
texture_normal = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CollissionMap" type="Area" parent="."]
__meta__ = {
"_edit_lock_": true
}
[node name="Sprite3DBackground2" type="Sprite3D" parent="CollissionMap"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.112424, -0.0796607, 0.2 )
visible = false
texture = ExtResource( 9 )
continued below...