I'm trying to fix this scene file that got corrupted when importing my project to 4.0.
When opening it it throws:
ERROR: Condition "nc == 0" is true. Returning: nullptr
at: SceneState::instantiate (scene\resources\packed_scene.cpp:92)
Can't seem to upload the file in question so here's the scene's code:
`
[gd_scene load_steps=12 format=2]
[ext_resource path="res://Assets/Icons/Magic Categories Icon.svg" type="Texture2D" id=1]
[ext_resource path="res://Assets/Icons/Icon Bitmap.png" type="BitMap" id=2]
[ext_resource path="res://Menus/Interaction UI/Interaction UI Button.gd" type="Script" id=3]
[ext_resource path="res://Menus/Interaction UI/Interaction UI Icon.gd" type="Script" id=4]
[ext_resource path="res://Assets/Icons/Action Bar Card Fragments/fragment center.svg" type="Texture2D" id=5]
[ext_resource path="res://Assets/Icons/Status Icons/Health.svg" type="Texture2D" id=6]
[ext_resource path="res://Assets/Icons/Status Icons/Energy.svg" type="Texture2D" id=7]
[ext_resource path="res://Assets/Fonts/Isometros Large.tres" type="FontFile" id=8]
[ext_resource path="res://Assets/Icons/Status Icons/Time.svg" type="Texture2D" id=9]
[ext_resource path="res://Assets/Icons/Action Bar Card Fragments/cutout inverse.svg" type="Texture2D" id=10]
[sub_resource type="Animation" id=1]
resource_name = "Blink Highlight"
length = 0.9
step = 0.01
tracks/0/type = "bezier"
tracks/0/path = NodePath("Highlight:modulate:a")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"points": PackedFloat32Array( 0.819608, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0.819608, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ),
"times": PackedFloat32Array( 0, 0.09, 0.1, 0.19, 0.2, 0.29, 0.3, 0.39, 0.4, 0.49, 0.5, 0.59, 0.6, 0.69, 0.7, 0.79, 0.8, 0.89, 0.9 )
}
[node name="Interaction UI Button" type="Node2D"]
script = ExtResource( 3 )
[node name="TextureButton" type="TextureButton" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -400.0
offset_top = -400.0
offset_right = 400.0
offset_bottom = 400.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2( 0.1, 0.1 )
pivot_offset = Vector2( 400, 400 )
texture_normal = ExtResource( 1 )
texture_click_mask = ExtResource( 2 )
script = ExtResource( 4 )
meta = {
"edit_use_anchors": false
}
[node name="Icon Mask" type="PointLight2D" parent="TextureButton"]
light_mask = 2
position = Vector2( 366.556, 363.437 )
texture = ExtResource( 10 )
mode = 3
range_item_cull_mask = 2
meta = {
"editor_description": "this is here so that icons are masked as the texture button fades in and out"
}
[node name="Highlight" type="Sprite2D" parent="TextureButton"]
modulate = Color( 1, 1, 1, 0 )
self_modulate = Color( 1, 0, 0, 1 )
show_behind_parent = true
position = Vector2( 400, 400 )
scale = Vector2( 1.1, 1.1 )
texture = ExtResource( 5 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureButton"]
"anims/Blink Highlight" = SubResource( 1 )
[node name="Time" type="Sprite2D" parent="TextureButton"]
show_behind_parent = true
light_mask = 2
position = Vector2( 400, 460 )
scale = Vector2( 0.7, 0.7 )
texture = ExtResource( 9 )
[node name="Label" type="Label" parent="TextureButton/Time"]
self_modulate = Color( 0, 0, 0, 1 )
offset_left = -48.2271
offset_top = -338.543
offset_right = 68.773
offset_bottom = -232.543
scale = Vector2( 8, 8 )
pivot_offset = Vector2( 58, 0 )
custom_fonts/font = ExtResource( 8 )
text = "9"
align = 1
valign = 1
meta = {
"edit_use_anchors": false
}
[node name="Energy" type="Sprite2D" parent="TextureButton"]
show_behind_parent = true
light_mask = 2
position = Vector2( 1517.82, 1158.82 )
scale = Vector2( 0.7, 0.7 )
texture = ExtResource( 7 )
[node name="Label" type="Label" parent="TextureButton/Energy"]
self_modulate = Color( 0, 0, 0, 1 )
offset_left = -48.0
offset_top = -83.0
offset_right = 69.0
offset_bottom = 23.0
scale = Vector2( 3, 3 )
pivot_offset = Vector2( 58, 0 )
custom_fonts/font = ExtResource( 8 )
text = "9999"
align = 1
meta = {
"edit_use_anchors": false
}
[node name="Health" type="Sprite2D" parent="TextureButton"]
show_behind_parent = true
light_mask = 2
position = Vector2( 1243.28, 397.898 )
scale = Vector2( 0.7, 0.7 )
texture = ExtResource( 6 )
[node name="Label" type="Label" parent="TextureButton/Health"]
self_modulate = Color( 0, 0, 0, 1 )
offset_left = -58.0
offset_top = -100.592
offset_right = 59.0
offset_bottom = 5.408
scale = Vector2( 3, 3 )
pivot_offset = Vector2( 58, 0 )
custom_fonts/font = ExtResource( 8 )
text = "9999"
align = 1
meta = {
"edit_use_anchors": false
}
[connection signal="mouse_entered" from="TextureButton" to="TextureButton" method="on_TextureButton_mouse_entered"]
[connection signal="mouse_exited" from="TextureButton" to="TextureButton" method="on_TextureButton_mouse_exited"]
[connection signal="pressed" from="TextureButton" to="TextureButton" method="_on_TextureButton_pressed"]
`