Godot Version
4.2.2.stable
Question
I’m trying to export the game for Windows and I’m getting a panoply of errors when I run it from the *.console.exe.
I’ve been at it for the last hour and a half.
At this point all I can do it print the output on the console. From the messages I read in there, I suspect it has to do with the autoload files, but I’m not 100% sure and if it is the problem, how to fix it as it works fine in the editor.
HALP!
Godot Engine v4.2.2.stable.official.15073afe3 - https://godotengine.org
Vulkan API 1.3.277 - Forward+ - Using Vulkan Device #0: AMD - AMD Radeon RX 6800
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/prompt.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:3)
SCRIPT ERROR: Parse Error: Cannot infer the type of "PromptScene" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:3)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/weapon_noise.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:4)
SCRIPT ERROR: Parse Error: Cannot infer the type of "WeaponNoise" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:4)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/temp_label.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:5)
SCRIPT ERROR: Parse Error: Cannot infer the type of "TempLabel" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:5)
SCRIPT ERROR: Parse Error: Cannot infer the type of "wNoise" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:59)
ERROR: Failed to load script "res://scripts/Managers/DialogManager.gd" with error "Parse error".
at: load (modules/gdscript/gdscript.cpp:2726)
ERROR: Failed to instantiate an autoload, script 'res://scripts/Managers/DialogManager.gd' does not inherit from 'Node'.
at: (main/main.cpp:3251)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/room.tscn" does not exist.
at: GDScript::reload (res://scripts/game.gd:59)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/prompt.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:3)
SCRIPT ERROR: Parse Error: Cannot infer the type of "PromptScene" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:3)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/weapon_noise.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:4)
SCRIPT ERROR: Parse Error: Cannot infer the type of "WeaponNoise" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:4)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/temp_label.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:5)
SCRIPT ERROR: Parse Error: Cannot infer the type of "TempLabel" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:5)
SCRIPT ERROR: Parse Error: Cannot infer the type of "wNoise" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:59)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/equipment/player_equipment.tscn" does not exist.
at: GDScript::reload (res://scripts/Sisters/player.gd:12)
SCRIPT ERROR: Compile Error:
at: GDScript::reload (res://scripts/Managers/InputManager.gd:-1)
ERROR: Failed to load script "res://scripts/Managers/InputManager.gd" with error "Compilation failed".
at: load (modules/gdscript/gdscript.cpp:2726)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/prompt.tscn" does not exist.
at: GDScript::reload (res://Assets/Interaction/Interaction_Area/InteractionManager.gd:4)
SCRIPT ERROR: Parse Error: Cannot infer the type of "frame_prompt" variable because the value doesn't have a set type.
at: GDScript::reload (res://Assets/Interaction/Interaction_Area/InteractionManager.gd:4)
ERROR: Failed to load script "res://Assets/Interaction/Interaction_Area/InteractionManager.gd" with error "Parse error".
at: load (modules/gdscript/gdscript.cpp:2726)
ERROR: Failed to instantiate an autoload, script 'res://Assets/Interaction/Interaction_Area/InteractionManager.gd' does.
at: (main/main.cpp:3251)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/room.tscn" does not exist.
at: GDScript::reload (res://scripts/game.gd:59)
SCRIPT ERROR: Compile Error:
at: GDScript::reload (res://Assets/Interaction/Room_Area/RoomManager.gd:-1)
ERROR: Failed to load script "res://Assets/Interaction/Room_Area/RoomManager.gd" with error "Compilation failed".
at: load (modules/gdscript/gdscript.cpp:2726)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/prompt.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:3)
SCRIPT ERROR: Parse Error: Cannot infer the type of "PromptScene" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:3)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/weapon_noise.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:4)
SCRIPT ERROR: Parse Error: Cannot infer the type of "WeaponNoise" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:4)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/ui/temp_label.tscn" does not exist.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:5)
SCRIPT ERROR: Parse Error: Cannot infer the type of "TempLabel" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:5)
SCRIPT ERROR: Parse Error: Cannot infer the type of "wNoise" variable because the value doesn't have a set type.
at: GDScript::reload (res://scripts/Managers/DialogManager.gd:59)
SCRIPT ERROR: Parse Error: Preload file "res://scenes/room.tscn" does not exist.
at: GDScript::reload (res://scripts/game.gd:59)
SCRIPT ERROR: Compile Error:
at: GDScript::reload (res://scripts/Gui/title_menu.gd:-1)
ERROR: Failed to load script "res://scripts/Gui/title_menu.gd" with error "Compilation failed".
at: load (modules/gdscript/gdscript.cpp:2726)
EDIT: Removed unnecessary lines, because of high level of clutter.