Godot Version
v4.4.dev6.mono.official.1f47e4c4e
Question
I have a small project with a couple of assets and two scenes.
Everything is working fine when started from the editor.
Once I export as a runnable (for Linux) the project is unable to load.
Running in the terminal I get the following errors:
ERROR: Error opening file 'res://Assets/loading_screen.png'.
at: load_image (core/io/image_loader.cpp:91)
ERROR: Non-existing or invalid boot splash at 'res://Assets/loading_screen.png'. Loading default splash.
at: setup_boot_logo (main/main.cpp:3481)
ERROR: No loader found for resource: res://uid:/coilc820s0pql (expected type: )
at: _load (core/io/resource_loader.cpp:327)
ERROR: Failed loading scene: res://uid:/coilc820s0pql.
at: start (main/main.cpp:4214)
It only shows a black screen (not even the default splash) and then simply closes the window.
For the loading screen I tried re-import etc. to no avail.
Even more curious is the problem when loading the scene which clearly has the uid it is looking for:
[gd_scene load_steps=14 format=3 uid="uid://coilc820s0pql"]
The scene it is attempting to load is the main/startup scene, so I don’t think it is something I am doing wrong at runtime?
I have tried various export options in addition to “export all resources” like using “selected” and selecting all of them.
I also removed the .godot folder and let the editor reimport everything.
Now I am out of ideas and help would be very welcome.
EDIT:
Changing run/main_scene="uid://coilc820s0pql"
to run/main_scene="res://Scenes/loading.tscn"
in project.godot
allows it to find and start the scene.
The issue with the splash screen remains.
EDIT2:
Changing boot_splash/image="uid://dihp38587fr82"
to boot_splash/image="res://Assets/splash_screen.png"
resolves the splash screen problem as well.
Why is Godot putting those UIDs into the file if they don’t work at runtime even if the assets are apparently present?
I got it working for now, but manually editing the project file doesn’t sound like the correct approach, so what did I set up incorrectly?