Skip to content
New issue

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

Autoload script ignore metadata #91139

Closed
StanleySweet opened this issue Apr 25, 2024 · 2 comments
Closed

Autoload script ignore metadata #91139

StanleySweet opened this issue Apr 25, 2024 · 2 comments
Labels

Comments

@StanleySweet
Copy link

StanleySweet commented Apr 25, 2024

Tested versions

4.3 dev 5

System information

Windows 11 - Godot v4.3. Dev5 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (nvidia, 2215886848) -Intel Core i7-8750H @ 2.20GHz, 2.21 GHz 12 threads

Issue description

Like all RefCounted objects Scripts expose metadata properties that could be used to set some things at run time like for instance sounds. However in the case of Autoloaded scripts it seems these metadata are unavailable.

E 0:00:01:0162   AutoloadedScript.gd:4 @ _ready(): The object does not have any 'meta' values with the key 'MissingField'.
  <C++ Error>    Method/function failed. Returning: Variant()
  <C++ Source>   core/object/object.cpp:1041 @ get_meta()
  <Stack Trace>  AutoloadedScript.gd:4 @ _ready()

Steps to reproduce

Load the MRP and launch the project. Notice there is now an error about metadata not being found.

Minimal reproduction project (MRP)

meta-bug-repro.zip

@timothyqiu
Copy link
Member

Not only Autoloads, but all script resources can't save metadata. See #84653.

@AThousandShips
Copy link
Member

Thank you for reporting, consolidating in:

As this is related to all metadata for scripts

@AThousandShips AThousandShips closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants