godot 4.2.1
error message
scene recreation:
(on reload, the recreation scene also got corrupted)
AFAIK “node count is 0” means you have export variable like @export var node
, it have value and point to deleted node.
Can you paste the .tscn
file?
forum doesn’t allow you to attach .tscn files so ill coppy and paste the contents.
original test room file:
[gd_scene load_steps=3 format=3 uid=“uid://d2nx45fb3u4j3”]
[ext_resource type=“Script” path=“res://test_room.gd” id=“1_dvv1b”]
[ext_resource type=“PackedScene” uid=“uid://dp57pdx12gxpf” path=“res://Test_door.tscn” id=“2_7of7s”]
[node name=“Start_point” type=“Marker3D”]
script = ExtResource(“1_dvv1b”)
[node name=“CSGBox3D” type=“CSGBox3D” parent=“.”]
transform = Transform3D(2, 0, 1, 0, 1, 0, -1, 0, 2, 2, 0, 2)
use_collision = true
collision_layer = 2
collision_mask = 2
size = Vector3(2, 0, 2)
[node name=“EndPoint” type=“Marker3D” parent=“.”]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.06326, 0, 0)
[node name=“Test_door” parent=“.” instance=ExtResource(“2_7of7s”)]
transform = Transform3D(0.525, 0, 0, 0, 1.05, 0, 0, 0, 1.05, 2, 1.4641, 0)
[connection signal=“roomclear” from=“Test_door” to=“.” method=“_on_test_door_roomclear”]
room recration file:
[gd_scene load_steps=3 format=3 uid=“uid://codixw2yox7c0”]
[ext_resource type=“Script” path=“res://test_room.gd” id=“1_k6d7e”]
[ext_resource type=“PackedScene” uid=“uid://dp57pdx12gxpf” path=“res://Test_door.tscn” id=“2_dedeo”]
[node name=“StartPoint” type=“Marker3D”]
script = ExtResource(“1_k6d7e”)
[node name=“CSGBox3D” type=“CSGBox3D” parent=“.”]
transform = Transform3D(0.525, 0, 0, 0, 1.05, 0, 0, 0, 1.05, 4.07124, 0, 0)
use_collision = true
size = Vector3(15.493, 0, 2)
[node name=“Test_door” parent=“.” instance=ExtResource(“2_dedeo”)]
transform = Transform3D(0.525, 0, 0, 0, 1.05, 0, 0, 0, 1.05, 8.00071, 1.54244, 0)
[node name=“EndPoint” type=“Marker3D” parent=“.”]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.00071, 0, 0)
Changed preload(“scene”) to load(“scene”). works now
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.