From 654e368a65ccb72bc9aa7954cc0eab6a090212ff Mon Sep 17 00:00:00 2001 From: Zenny Date: Mon, 9 Feb 2026 20:24:48 -0800 Subject: [PATCH] Fix exported project not loading issue --- Zennysoft.Game.Ma/export_presets.cfg | 60 +++---------------- Zennysoft.Game.Ma/project.godot | 8 ++- Zennysoft.Game.Ma/src/app/App.cs | 2 - Zennysoft.Game.Ma/src/app/App.tscn | 7 --- Zennysoft.Game.Ma/src/items/ItemDatabase.cs | 14 ++--- Zennysoft.Game.Ma/src/menu/LoadingScreen.tscn | 1 + Zennysoft.Game.Ma/src/utils/.gdignore | 0 Zennysoft.Game.Ma/src/utils/FpsCounter.cs.uid | 2 +- Zennysoft.Game.Ma/src/utils/GameInputs.cs.uid | 2 +- .../src/utils/Instantiator.cs.uid | 2 +- .../src/utils/SceneLoader.cs.uid | 1 + 11 files changed, 24 insertions(+), 75 deletions(-) delete mode 100644 Zennysoft.Game.Ma/src/utils/.gdignore create mode 100644 Zennysoft.Game.Ma/src/utils/SceneLoader.cs.uid diff --git a/Zennysoft.Game.Ma/export_presets.cfg b/Zennysoft.Game.Ma/export_presets.cfg index 47529918e..d19dbeb75 100644 --- a/Zennysoft.Game.Ma/export_presets.cfg +++ b/Zennysoft.Game.Ma/export_presets.cfg @@ -1,23 +1,22 @@ [preset.0] -name="Steamdeck" -platform="Linux" +name="Windows Desktop" +platform="Windows Desktop" runnable=true -advanced_options=false +advanced_options=true dedicated_server=false custom_features="" -export_filter="exclude" -export_files=PackedStringArray() +export_filter="all_resources" include_filter="" exclude_filter="" -export_path="" +export_path="../Export/Ma.exe" patches=PackedStringArray() encryption_include_filters="" encryption_exclude_filters="" seed=0 encrypt_pck=false encrypt_directory=false -script_export_mode=2 +script_export_mode=1 [preset.0.options] @@ -28,51 +27,6 @@ binary_format/embed_pck=false texture_format/s3tc_bptc=true texture_format/etc2_astc=false binary_format/architecture="x86_64" -ssh_remote_deploy/enabled=false -ssh_remote_deploy/host="user@host_ip" -ssh_remote_deploy/port="22" -ssh_remote_deploy/extra_args_ssh="" -ssh_remote_deploy/extra_args_scp="" -ssh_remote_deploy/run_script="#!/usr/bin/env bash -export DISPLAY=:0 -unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\" -\"{temp_dir}/{exe_name}\" {cmd_args}" -ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash -kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\") -rm -rf \"{temp_dir}\"" -dotnet/include_scripts_content=false -dotnet/include_debug_symbols=true -dotnet/embed_build_outputs=false - -[preset.1] - -name="Windows Desktop" -platform="Windows Desktop" -runnable=true -advanced_options=false -dedicated_server=false -custom_features="" -export_filter="all_resources" -include_filter="" -exclude_filter="" -export_path="Output/Ma.zip" -patches=PackedStringArray() -encryption_include_filters="" -encryption_exclude_filters="" -seed=0 -encrypt_pck=false -encrypt_directory=false -script_export_mode=2 - -[preset.1.options] - -custom_template/debug="" -custom_template/release="" -debug/export_console_wrapper=0 -binary_format/embed_pck=true -texture_format/s3tc_bptc=true -texture_format/etc2_astc=false -binary_format/architecture="x86_64" codesign/enable=false codesign/timestamp=true codesign/timestamp_server_url="" @@ -111,5 +65,5 @@ ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debu Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue Remove-Item -Recurse -Force '{temp_dir}'" dotnet/include_scripts_content=false -dotnet/include_debug_symbols=false +dotnet/include_debug_symbols=true dotnet/embed_build_outputs=false diff --git a/Zennysoft.Game.Ma/project.godot b/Zennysoft.Game.Ma/project.godot index 9b36e1d0f..fbe06ca81 100644 --- a/Zennysoft.Game.Ma/project.godot +++ b/Zennysoft.Game.Ma/project.godot @@ -12,10 +12,8 @@ config_version=5 config/name="Ma" run/main_scene="uid://d1gjaijijd5ot" -run/print_header=false config/features=PackedStringArray("4.4", "C#", "GL Compatibility") -run/delta_smoothing=false -boot_splash/show_image=false +run/max_fps=60 [autoload] @@ -42,6 +40,10 @@ window/stretch/mode="canvas_items" project/assembly_name="Ma" +[editor] + +export/convert_text_resources_to_binary=false + [editor_plugins] enabled=PackedStringArray("res://addons/dialogue_manager/plugin.cfg", "res://addons/input_helper/plugin.cfg") diff --git a/Zennysoft.Game.Ma/src/app/App.cs b/Zennysoft.Game.Ma/src/app/App.cs index 8a4885fc0..425090c0e 100644 --- a/Zennysoft.Game.Ma/src/app/App.cs +++ b/Zennysoft.Game.Ma/src/app/App.cs @@ -31,8 +31,6 @@ public partial class App : Node, IApp [Node] private GalleryMenu GalleryMenu { get; set; } - [Node] private VideoStreamPlayer VideoStreamPlayer { get; set; } - IAppRepo IProvide.Value() => AppRepo; public IAppRepo AppRepo { get; set; } = default!; diff --git a/Zennysoft.Game.Ma/src/app/App.tscn b/Zennysoft.Game.Ma/src/app/App.tscn index 9f5bbd5f4..d051ef24d 100644 --- a/Zennysoft.Game.Ma/src/app/App.tscn +++ b/Zennysoft.Game.Ma/src/app/App.tscn @@ -22,14 +22,7 @@ visible = false unique_name_in_owner = true visible = false -[node name="VideoStreamPlayer" type="VideoStreamPlayer" parent="."] -unique_name_in_owner = true -visible = false -offset_right = 40.0 -offset_bottom = 40.0 - [node name="LoadingScreen" parent="." instance=ExtResource("3_3st5l")] unique_name_in_owner = true -visible = false top_level = true z_index = 999 diff --git a/Zennysoft.Game.Ma/src/items/ItemDatabase.cs b/Zennysoft.Game.Ma/src/items/ItemDatabase.cs index 19652c0ca..ea25a9620 100644 --- a/Zennysoft.Game.Ma/src/items/ItemDatabase.cs +++ b/Zennysoft.Game.Ma/src/items/ItemDatabase.cs @@ -68,7 +68,7 @@ public class ItemDatabase foreach (var armor in armorResources) { - var armorInfo = GD.Load($"res://src/items/armor/resources/{armor}"); + var armorInfo = GD.Load($"res://src/items/armor/resources/{armor}".TrimSuffix(".remap")); var armorScene = ResourceLoader.Load("res://src/items/armor/Armor.tscn").Instantiate(); armorScene.Stats = armorInfo; if (!database.Contains(armorScene)) @@ -77,7 +77,7 @@ public class ItemDatabase foreach (var weapon in weaponResources) { - var weaponInfo = GD.Load($"res://src/items/weapons/resources/{weapon}"); + var weaponInfo = GD.Load($"res://src/items/weapons/resources/{weapon}".TrimSuffix(".remap")); var weaponScene = ResourceLoader.Load("res://src/items/weapons/Weapon.tscn").Instantiate(); weaponScene.Stats = weaponInfo; if (!database.Contains(weaponScene)) @@ -86,7 +86,7 @@ public class ItemDatabase foreach (var accessory in accessoryResources) { - var accessoryInfo = GD.Load($"res://src/items/accessory/resources/{accessory}"); + var accessoryInfo = GD.Load($"res://src/items/accessory/resources/{accessory}".TrimSuffix(".remap")); var accessoryScene = ResourceLoader.Load("res://src/items/accessory/Accessory.tscn").Instantiate(); accessoryScene.Stats = accessoryInfo; if (!database.Contains(accessoryScene)) @@ -95,7 +95,7 @@ public class ItemDatabase foreach (var throwable in throwableResources) { - var throwableItemInfo = GD.Load($"res://src/items/throwable/resources/{throwable}"); + var throwableItemInfo = GD.Load($"res://src/items/throwable/resources/{throwable}".TrimSuffix(".remap")); var throwableItemScene = ResourceLoader.Load("res://src/items/throwable/ThrowableItem.tscn").Instantiate(); throwableItemScene.Stats = throwableItemInfo; if (!database.Contains(throwableItemScene)) @@ -104,7 +104,7 @@ public class ItemDatabase foreach (var consumable in consumableResources) { - var consumableItemInfo = GD.Load($"res://src/items/consumable/resources/{consumable}"); + var consumableItemInfo = GD.Load($"res://src/items/consumable/resources/{consumable}".TrimSuffix(".remap")); var consumableItemScene = ResourceLoader.Load("res://src/items/consumable/ConsumableItem.tscn").Instantiate(); consumableItemScene.Stats = consumableItemInfo; if (!database.Contains(consumableItemScene)) @@ -113,7 +113,7 @@ public class ItemDatabase foreach (var effectItem in effectResources) { - var effectItemInfo = GD.Load($"res://src/items/effect/resources/{effectItem}"); + var effectItemInfo = GD.Load($"res://src/items/effect/resources/{effectItem}".TrimSuffix(".remap")); var effectItemScene = ResourceLoader.Load("res://src/items/effect/EffectItem.tscn").Instantiate(); effectItemScene.Stats = effectItemInfo; if (!database.Contains(effectItemScene)) @@ -122,7 +122,7 @@ public class ItemDatabase foreach (var boxItem in boxResources) { - var boxItemInfo = GD.Load($"res://src/items/box/resources/{boxItem}"); + var boxItemInfo = GD.Load($"res://src/items/box/resources/{boxItem}".TrimSuffix(".remap")); var boxItemScene = ResourceLoader.Load("res://src/items/box/BoxItem.tscn").Instantiate(); boxItemScene.Stats = boxItemInfo; if (!database.Contains(boxItemScene)) diff --git a/Zennysoft.Game.Ma/src/menu/LoadingScreen.tscn b/Zennysoft.Game.Ma/src/menu/LoadingScreen.tscn index 67ddf48db..2b17c42e2 100644 --- a/Zennysoft.Game.Ma/src/menu/LoadingScreen.tscn +++ b/Zennysoft.Game.Ma/src/menu/LoadingScreen.tscn @@ -9,6 +9,7 @@ bg_color = Color(0.804743, 0.804743, 0.804743, 1) [node name="LoadingScreen" type="Control"] +visible = false layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 diff --git a/Zennysoft.Game.Ma/src/utils/.gdignore b/Zennysoft.Game.Ma/src/utils/.gdignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/Zennysoft.Game.Ma/src/utils/FpsCounter.cs.uid b/Zennysoft.Game.Ma/src/utils/FpsCounter.cs.uid index 3e2651fc6..3879915f5 100644 --- a/Zennysoft.Game.Ma/src/utils/FpsCounter.cs.uid +++ b/Zennysoft.Game.Ma/src/utils/FpsCounter.cs.uid @@ -1 +1 @@ -uid://dj6oqler47dqf +uid://3fpuxsgdl8xe diff --git a/Zennysoft.Game.Ma/src/utils/GameInputs.cs.uid b/Zennysoft.Game.Ma/src/utils/GameInputs.cs.uid index 64bf2791a..31f26fd01 100644 --- a/Zennysoft.Game.Ma/src/utils/GameInputs.cs.uid +++ b/Zennysoft.Game.Ma/src/utils/GameInputs.cs.uid @@ -1 +1 @@ -uid://b2ff347q41vpq +uid://b1gbccqmdoc2p diff --git a/Zennysoft.Game.Ma/src/utils/Instantiator.cs.uid b/Zennysoft.Game.Ma/src/utils/Instantiator.cs.uid index a4aeb9d12..724f3ffd3 100644 --- a/Zennysoft.Game.Ma/src/utils/Instantiator.cs.uid +++ b/Zennysoft.Game.Ma/src/utils/Instantiator.cs.uid @@ -1 +1 @@ -uid://lg0ofgq38m5j +uid://cn7q5j5n2lxj5 diff --git a/Zennysoft.Game.Ma/src/utils/SceneLoader.cs.uid b/Zennysoft.Game.Ma/src/utils/SceneLoader.cs.uid new file mode 100644 index 000000000..7b3fcd49e --- /dev/null +++ b/Zennysoft.Game.Ma/src/utils/SceneLoader.cs.uid @@ -0,0 +1 @@ +uid://bqy0sfq1lnd8u