diff --git a/sandbox_probe/probe.gd b/sandbox_probe/probe.gd index e9955cd..73ebb3d 100644 --- a/sandbox_probe/probe.gd +++ b/sandbox_probe/probe.gd @@ -1,6 +1,6 @@ -extends SceneTree +extends Node -func _init(): +func _ready(): print("=== SANDBOX PROBE START ===") probe_script_loading() probe_os_apis() @@ -8,7 +8,7 @@ func _init(): probe_network() probe_engine_apis() print("=== SANDBOX PROBE END ===") - quit() + get_tree().quit() func probe_script_loading(): print("--- Script loading ---") diff --git a/sandbox_probe/probe.tscn b/sandbox_probe/probe.tscn index c9a51ef..236e56a 100644 --- a/sandbox_probe/probe.tscn +++ b/sandbox_probe/probe.tscn @@ -2,5 +2,5 @@ [ext_resource type="Script" path="res://probe.gd" id="1"] -[node name="Probe" type="SceneTree"] +[node name="Probe" type="Node"] script = ExtResource("1") diff --git a/sandbox_probe/project.godot b/sandbox_probe/project.godot index df42527..0a5efb3 100644 --- a/sandbox_probe/project.godot +++ b/sandbox_probe/project.godot @@ -4,5 +4,5 @@ config_version=5 [application] config/name="sandbox_probe" -run/main_scene="" +run/main_scene="res://probe.tscn" config/features=PackedStringArray("4.6")