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

Property not found: _global_script_class_icons emitted in 3.1 project #23332

Closed
Title-Pending opened this issue Oct 27, 2018 · 1 comment
Closed

Comments

@Title-Pending
Copy link

Title-Pending commented Oct 27, 2018

3.1:

OS/device including version:

PC
Window 10
NVidia 1080 TI 11GB

Issue description:

WARNING: _get: Property not found: _global_script_class_icons
At: core/project_settings.cpp:195

Steps to reproduce:
Download Kids Can Code File
https://github.com/kidscancode/topdown_tanks/releases/tag/part11
Open the file in Godot 3.1
Then
"WARNING: _get: Property not found: _global_script_class_icons
At: core/project_settings.cpp:195"
should appear.

Note: After file is exported in godot 3.1,
"WARNING: _get: Property not found: _global_script_class_icons
At: core/project_settings.cpp:195"
Will not appear again...

Minimal reproduction project:

https://github.com/kidscancode/topdown_tanks/releases/tag/part11 is the original file before conversion.

@willnationsdev
Copy link
Contributor

willnationsdev commented Oct 28, 2018

This should ideally be something that doesn't result in a warning like that. You say that the error stops after the "file is exported" though? That's probably because the engine is creating that dictionary at some point. It's just also attempting to read the data before it has been created. Will have to look into that.

So, it's reporting the warning when it tries to read the data and it isn't there, but later on it's creating the data which stops subsequent warnings from popping up. Just need to make sure the data is made before it's ever accessed at any point.

@akien-mga akien-mga changed the title "dictionary that maps script classes in 3.1 to the icon that may optionally be assigned to them" Property not found: _global_script_class_icons emitted in 3.1 project Oct 29, 2018
@akien-mga akien-mga added this to the 3.1 milestone Oct 29, 2018
DrNochi added a commit to DrNochi/godot that referenced this issue Nov 16, 2018
akien-mga referenced this issue Nov 16, 2018
Prevent "Property not found: ..." warning when creating/importing a project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants