-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Typed containers fail to load untyped data at runtime #96872
Comments
I think it's because It would be ideal if we separated the type information from the metadata like hint and usage. But that's probably too breaking. As a workaround, we could make all parts of the engine (core, GDScript, C#, GDExtension, inspector, We also need to somehow differentiate typed collections from untyped ones, since |
Breaking typing changes are honestly an inevitability. If we wanna eventually support even a fraction of the other typing-related requests (structs, nested types, actual enums, unions, nullable types, etc.), something is gonna have to give. |
I think I just ran into this error. I just opened in 4.4dev a project that I had fully working in 4.3. A resource with typed arrays in the editor when I try playing the game initializes the resource with the typed arrays completely empty. If this is the same error it was working fine in 4.3 and the problem started at some point in 4.4 |
Did a git bisect on it. It started with the commit 3009073 from this PR: #96780 Haven't read the code in the commit or investigated further.
Upon further investigation this might have been already reverted, seems to be the same issue as #97788 that has been closed. Will try the MRP again with the current latest master and confirm if this has been solved. |
I have now confirmed that this issue has been solved by #97817 that has already been merged. I confirmed using the MRP and my own project. |
Tested versions
4.4 dev2
And probably earlier.
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
When you have a resource with some exported properties of type Array and Dictionary, but later you decide that you want to add type to your Array/Dictionary, old instances of the resource will load with these variables empty, but only at runtime.
EDIT:
Apparently the containers loaded in editor are untyped. Re-saving the resource won't fix them.
Steps to reproduce
Minimal reproduction project (MRP)
tybug.zip
The text was updated successfully, but these errors were encountered: