Export (WinEXE) is missing objects, cant find why and how.

Godot Version

4.4.1

Question

Not-Important-Pretext: So i started programming 3 weeks ago, because i had an idea, and wanted to check out how hard it would be to realise it. Turns out super hard, and most of the time something breaks out of nowhere, or it works for no reason (looking at you subviewports). With close to no knowledge or expertise in gamedevelopment i managed to create a simple basic game in th Editor …

Important-stuff: When i export my game (3D to winEXE), stuff is just missing. Mainly from one specific node (meteorite spawner), with some specific objects (the meteorites).
I checked the Errormessages, and came to the conclusion, that i have to redo the whole thing … and i accept that. BUT i dont want to do that again if possible, so can anyone tell me why theese specific items are not loaded? (I have like 60+ scenes but just these are broken). Did I do something wrong? How can i circumvent this kind of problem?

tl;dr why scenes not loading?

Godot Engine v4.4.1.stable.official.49a5bc7b6 - https://godotengine.org
Vulkan 1.3.280 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 2060

SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_2.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:8)
SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_3.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:9)
SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_4.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:10)
SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_5.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:11)
SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_6.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:12)
SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_7.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:13)
SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_8.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:14)
SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_9.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:15)
SCRIPT ERROR: Parse Error: Preload file “res://Scenes/Meteorite_1_10.tscn” does not exist.
at: GDScript::reload (res://Scripts/meteor_1_spawner.gd:16)
ERROR: Failed to load script “res://Scripts/meteor_1_spawner.gd” with error “Parse error”.
at: load (modules/gdscript/gdscript.cpp:3022)

The PCK file is case-sensitive while Windows and macOS are case-insensitive. More info here.

So, make sure that you are using the same casing in your filesystem and your preload()

For example, make sure that res://Scenes/Meteorite_1_2.tscn is in the folder Scenes and not scenes

1 Like

Just use lowercase for all file and folder names. It’ll save you a lot of trouble.

2 Likes

Thanks for the hint!

I actually fixed it right now by exchanging my section that used “preload” (seems to be bugged), with

func ready():
for i in range(1, 11):
var path = "res://Scenes/Meteorite_1
%d.tscn" % i
var scene = load(path)
if scene:
METEOR_SCENES.append(scene)

This way i can use capitalletters without any problems, but i will keep that in mind!

(by the way i love your videos, great inspiration!)

Thanks for the hint, I tripple checked this before even considering posting my issue in this Forum.

Everything was fine / Correct ^^

I think FencerDevLog was on the right track here “preload” seems to have a problem with lowercase items in the pck. But couldnt confirm it yet.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.