From 8f416b89990276c9ffe891709d9fe211d32d44a7 Mon Sep 17 00:00:00 2001 From: Steven Wroblewski Date: Fri, 17 Apr 2026 12:57:39 +0200 Subject: [PATCH] fix(core): add explicit script reference for CharacterData SubResource in Main.tscn Godot 4 Android export cannot resolve custom class names from the global script cache during scene export. Adding an explicit ExtResource reference to character_data.gd ensures the type is resolved at load time without relying on the class cache. Co-Authored-By: Claude Sonnet 4.6 --- scenes/main/Main.tscn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scenes/main/Main.tscn b/scenes/main/Main.tscn index 5bcbdc1..1561acb 100644 --- a/scenes/main/Main.tscn +++ b/scenes/main/Main.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=3 uid="uid://cozypaw_main"] +[gd_scene load_steps=9 format=3 uid="uid://cozypaw_main"] [ext_resource type="Script" path="res://scripts/main/main.gd" id="1_main"] [ext_resource type="PackedScene" path="res://scenes/rooms/floor0/Reception.tscn" id="2_reception"] @@ -6,8 +6,10 @@ [ext_resource type="PackedScene" path="res://scenes/ui/HUD.tscn" id="4_hud"] [ext_resource type="PackedScene" path="res://scenes/ui/SettingsMenu.tscn" id="5_settings"] [ext_resource type="PackedScene" path="res://scenes/objects/ElevatorButton.tscn" id="6_elevbtn"] +[ext_resource type="Script" path="res://scripts/characters/character_data.gd" id="7_chardata"] [sub_resource type="CharacterData" id="CharacterData_bunny1"] +script = ExtResource("7_chardata") id = "bunny_01" display_name = "Bunny" species = 0