I don’t really have the time to make a mrp but I can get the script files. There shouldn’t be a bug in the code since It’s directly copied over from a working version but missing two lines that don’t break the working one and the issue shouldn’t be some corruption since I recreated the scene and it has the same error.
this is the broken node
[gd_scene load_steps=10 format=3 uid="uid://dxno8t5j2l1dx"]
[ext_resource type="Script" uid="uid://b73swtldn0ut5" path="res://Nodes/Room.gd" id="1_jqgls"]
[ext_resource type="Texture2D" uid="uid://bnql1rv5vvqnb" path="res://Unused/PlaceHolderGround.png" id="2_xiibo"]
[ext_resource type="Script" uid="uid://61ptvs4q0n3t" path="res://scripts/Dungeons/Rooms/Test Corridor.gd" id="3_ugk4v"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_uw1xy"]
albedo_texture = ExtResource("2_xiibo")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1w1h1"]
albedo_texture = ExtResource("2_xiibo")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m2h87"]
albedo_texture = ExtResource("2_xiibo")
[sub_resource type="Environment" id="Environment_1qyfn"]
ambient_light_source = 3
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_sky_contribution = 0.4
[sub_resource type="BoxShape3D" id="BoxShape3D_77aqr"]
size = Vector3(37, 10, 60)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yd6f3"]
albedo_texture = ExtResource("2_xiibo")
[node name="Test Corridor" type="Node3D"]
script = ExtResource("1_jqgls")
metadata/_custom_type_script = "uid://b73swtldn0ut5"
[node name="Floor" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 30)
material_override = SubResource("StandardMaterial3D_uw1xy")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(40, 1, 60)
[node name="Celing" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 30)
material_override = SubResource("StandardMaterial3D_1w1h1")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(40, 1, 60)
[node name="Right" type="CSGPolygon3D" parent="."]
transform = Transform3D(0.0017619767, -0.0014222914, -0.9999974, 0.0019184909, 0.99999714, -0.0014189038, 0.9999966, -0.0019159808, 0.001764706, 19, -0.019, 0.0020008087)
material_override = SubResource("StandardMaterial3D_m2h87")
use_collision = true
collision_layer = 98
collision_mask = 0
polygon = PackedVector2Array(0, 0, 0, 0, 0, 10, 60, 10, 60, 0, 23, 0, 23, 6, 17, 6, 17, 0)
[node name="Left" type="CSGPolygon3D" parent="."]
transform = Transform3D(0.0017619767, -0.0014222914, -0.9999974, 0.0019184909, 0.99999714, -0.0014189038, 0.9999966, -0.0019159808, 0.001764706, -20, 0, 0)
material_override = SubResource("StandardMaterial3D_m2h87")
use_collision = true
collision_layer = 98
collision_mask = 0
polygon = PackedVector2Array(0, 0, 0, 0, 0, 10, 60, 10, 60, 0, 23, 0, 23, 6, 17, 6, 17, 0)
[node name="Front" type="CSGPolygon3D" parent="."]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 20, 0, 0)
material_override = SubResource("StandardMaterial3D_m2h87")
use_collision = true
collision_layer = 98
collision_mask = 0
polygon = PackedVector2Array(0, 0, 0, 0, 0, 40, 40, 40, 40, 0, 23, 0, 23, 6, 17, 6, 17, 0)
[node name="Back" type="CSGPolygon3D" parent="."]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 20, 0, 59)
material_override = SubResource("StandardMaterial3D_m2h87")
use_collision = true
collision_layer = 98
collision_mask = 0
polygon = PackedVector2Array(0, 0, 0, 0, 0, 40, 40, 40, 40, 0, 23, 0, 23, 6, 17, 6, 17, 0)
[node name="Node" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 30)
script = ExtResource("3_ugk4v")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_1qyfn")
[node name="PlayerEnterArea" type="Area3D" parent="."]
collision_layer = 0
monitorable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerEnterArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 30)
shape = SubResource("BoxShape3D_77aqr")
[node name="Doors" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 20)
[node name="frontDoor" type="CSGBox3D" parent="Doors"]
transform = Transform3D(0.99999994, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 40)
material_override = SubResource("StandardMaterial3D_yd6f3")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(6, 6, 1)
[node name="backDoor" type="CSGBox3D" parent="Doors"]
transform = Transform3D(-0.99999994, 0, -8.742278e-08, 0, 1, 0, 8.742277e-08, 0, -1, 0, 3, -20)
material_override = SubResource("StandardMaterial3D_yd6f3")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(6, 6, 1)
[node name="rightDoor" type="CSGBox3D" parent="Doors"]
transform = Transform3D(1.1924879e-08, 0, -0.99999994, 0, 1, 0, 0.9999999, 0, 1.192488e-08, -20, 3, 0)
material_override = SubResource("StandardMaterial3D_yd6f3")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(6, 6, 1)
[node name="leftDoor" type="CSGBox3D" parent="Doors"]
transform = Transform3D(-4.3711385e-08, 0, 0.99999994, 0, 1, 0, -0.9999999, 0, -4.3711385e-08, 20, 3, 0)
material_override = SubResource("StandardMaterial3D_yd6f3")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(6, 6, 1)
[connection signal="body_entered" from="PlayerEnterArea" to="Node" method="_on_player_enter_area_body_entered"]
and this is the functional one
[gd_scene load_steps=11 format=3 uid="uid://c1hr1d1g6okh3"]
[ext_resource type="Texture2D" uid="uid://bnql1rv5vvqnb" path="res://Unused/PlaceHolderGround.png" id="1_1qyfn"]
[ext_resource type="Script" uid="uid://2oneuih4konu" path="res://scripts/Dungeons/Rooms/Test Room.gd" id="1_iqmsk"]
[ext_resource type="Script" uid="uid://b73swtldn0ut5" path="res://Nodes/Room.gd" id="1_uw1xy"]
[ext_resource type="PackedScene" uid="uid://bkumq8svryca6" path="res://scenes/enemies/basic_enemy.tscn" id="2_ifw3u"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_uw1xy"]
albedo_texture = ExtResource("1_1qyfn")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1w1h1"]
albedo_texture = ExtResource("1_1qyfn")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m2h87"]
albedo_texture = ExtResource("1_1qyfn")
[sub_resource type="Environment" id="Environment_1qyfn"]
ambient_light_source = 3
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_sky_contribution = 0.4
[sub_resource type="BoxShape3D" id="BoxShape3D_77aqr"]
size = Vector3(37, 40, 37)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yd6f3"]
albedo_texture = ExtResource("1_1qyfn")
[node name="Test Room" type="Node3D"]
script = ExtResource("1_uw1xy")
metadata/_custom_type_script = "uid://b73swtldn0ut5"
[node name="Floor" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 20)
material_override = SubResource("StandardMaterial3D_uw1xy")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(40, 1, 40)
[node name="Celing" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 40, 20)
material_override = SubResource("StandardMaterial3D_1w1h1")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(40, 1, 40)
[node name="Left" type="CSGPolygon3D" parent="."]
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -20, 0, 0)
material_override = SubResource("StandardMaterial3D_m2h87")
use_collision = true
collision_layer = 98
collision_mask = 0
polygon = PackedVector2Array(0, 0, 0, 0, 0, 40, 40, 40, 40, 0, 23, 0, 23, 6, 17, 6, 17, 0)
[node name="Right" type="CSGPolygon3D" parent="."]
transform = Transform3D(0.0017619767, -0.0014222914, -0.9999974, 0.0019184909, 0.99999714, -0.0014189038, 0.9999966, -0.0019159808, 0.001764706, 19, -0.019, 0.0020008087)
material_override = SubResource("StandardMaterial3D_m2h87")
use_collision = true
collision_layer = 98
collision_mask = 0
polygon = PackedVector2Array(0, 0, 0, 0, 0, 40, 40, 40, 40, 0, 23, 0, 23, 6, 17, 6, 17, 0)
[node name="Front" type="CSGPolygon3D" parent="."]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 20, 0, 0)
material_override = SubResource("StandardMaterial3D_m2h87")
use_collision = true
collision_layer = 98
collision_mask = 0
polygon = PackedVector2Array(0, 0, 0, 0, 0, 40, 40, 40, 40, 0, 23, 0, 23, 6, 17, 6, 17, 0)
[node name="Back" type="CSGPolygon3D" parent="."]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 20, 0, 39)
material_override = SubResource("StandardMaterial3D_m2h87")
use_collision = true
collision_layer = 98
collision_mask = 0
polygon = PackedVector2Array(0, 0, 0, 0, 0, 40, 40, 40, 40, 0, 23, 0, 23, 6, 17, 6, 17, 0)
[node name="Node" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 20)
script = ExtResource("1_iqmsk")
roomx = 10.0
roomz = 10.0
roomy = 1.0
Enemies = [ExtResource("2_ifw3u")]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_1qyfn")
[node name="PlayerEnterArea" type="Area3D" parent="."]
collision_layer = 0
monitorable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerEnterArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 20, 20)
shape = SubResource("BoxShape3D_77aqr")
[node name="Doors" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 20)
[node name="frontDoor" type="CSGBox3D" parent="Doors"]
transform = Transform3D(0.99999994, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 20)
material_override = SubResource("StandardMaterial3D_yd6f3")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(6, 6, 1)
[node name="backDoor" type="CSGBox3D" parent="Doors"]
transform = Transform3D(-0.99999994, 0, -8.742278e-08, 0, 1, 0, 8.742277e-08, 0, -1, 0, 3, -20)
material_override = SubResource("StandardMaterial3D_yd6f3")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(6, 6, 1)
[node name="rightDoor" type="CSGBox3D" parent="Doors"]
transform = Transform3D(1.1924879e-08, 0, -0.99999994, 0, 1, 0, 0.9999999, 0, 1.192488e-08, -20, 3, 0)
material_override = SubResource("StandardMaterial3D_yd6f3")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(6, 6, 1)
[node name="leftDoor" type="CSGBox3D" parent="Doors"]
transform = Transform3D(-4.3711385e-08, 0, 0.99999994, 0, 1, 0, -0.9999999, 0, -4.3711385e-08, 20, 3, 0)
material_override = SubResource("StandardMaterial3D_yd6f3")
use_collision = true
collision_layer = 98
collision_mask = 0
size = Vector3(6, 6, 1)
[connection signal="body_entered" from="PlayerEnterArea" to="Node" method="_on_player_enter_area_body_entered"]
this is the root node that they are all added to
[gd_scene load_steps=4 format=3 uid="uid://c8ycmhw2c01u4"]
[ext_resource type="Script" uid="uid://yltwto3k78jp" path="res://scripts/Dungeons/dungeon_main.gd" id="1_u13jm"]
[ext_resource type="PackedScene" uid="uid://c1hr1d1g6okh3" path="res://scenes/Room Manager/Rooms/Test Room.tscn" id="2_52bp2"]
[ext_resource type="PackedScene" uid="uid://cld0n5ymrtut1" path="res://scenes/player/player.tscn" id="3_crfio"]
[node name="Dungeon Main" type="Node3D"]
script = ExtResource("1_u13jm")
[node name="Test Room" parent="." instance=ExtResource("2_52bp2")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -20)
[node name="Player" parent="." instance=ExtResource("3_crfio")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.48966694, 1.45, 1.7631502)