We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tested in 4.4dev5 and 4.4dev7 -- I don't think .gd files had UIDs in prior versions.
Godot v4.4.dev7 - Windows 11 (build 22631) - Multi-window, 1 monitor - Vulkan (Mobile) - dedicated NVIDIA RTX A2000 8GB Laptop GPU (NVIDIA; 32.0.15.6103) - 12th Gen Intel(R) Core(TM) i7-12800H (20 threads)
Preloading a GDScript by UID works in editor builds, but does not work in exported builds.
I'd expect preloading by UID to work both in-editor and post-export, or as a worst case fail in both contexts.
Create some GDScript that does something. In a different script, preload it using its UID.
This will work in-editor but fail on export builds with SCRIPT ERROR: Parse Error: Could not preload resource script "uid://dn6jx08erf1cw".
SCRIPT ERROR: Parse Error: Could not preload resource script "uid://dn6jx08erf1cw".
uid.zip Run the MRP and you'll see some console output.
Export it to EXE (with debug) and it will instead produce errors.
The text was updated successfully, but these errors were encountered:
Can confirm, unsure about origin, this is 4.4 specific as you can't fetch the UID of scripts in 4.3
Sorry, something went wrong.
This prints when running in the editor
However the script is loaded.
Successfully merging a pull request may close this issue.
Tested versions
Tested in 4.4dev5 and 4.4dev7 -- I don't think .gd files had UIDs in prior versions.
System information
Godot v4.4.dev7 - Windows 11 (build 22631) - Multi-window, 1 monitor - Vulkan (Mobile) - dedicated NVIDIA RTX A2000 8GB Laptop GPU (NVIDIA; 32.0.15.6103) - 12th Gen Intel(R) Core(TM) i7-12800H (20 threads)
Issue description
Preloading a GDScript by UID works in editor builds, but does not work in exported builds.
I'd expect preloading by UID to work both in-editor and post-export, or as a worst case fail in both contexts.
Steps to reproduce
Create some GDScript that does something. In a different script, preload it using its UID.
This will work in-editor but fail on export builds with
SCRIPT ERROR: Parse Error: Could not preload resource script "uid://dn6jx08erf1cw".
Minimal reproduction project (MRP)
uid.zip
Run the MRP and you'll see some console output.
Export it to EXE (with debug) and it will instead produce errors.
The text was updated successfully, but these errors were encountered: