-
Notifications
You must be signed in to change notification settings - Fork 21
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
category_factory: Add another Sounds blocks for GDScript flavor #174
Conversation
e29c594
to
3508c2a
Compare
The Pong game plays, but the Wall hit and Score sound do not play. I found Ball's BlockCode node of Pong example hits snap_point error:
|
Yes, this is #172 |
3508c2a
to
7919803
Compare
Rebase on main branch for fixed #172. Paddle & Wall hit and Score play the sounds now. Although, there is still the error message shown in #174 (comment). |
The main branch has the same |
7919803
to
e31dc69
Compare
Preloading a scene may be failed, because Godot engine has not prepared the resource ready. And, shows "Parse Error: [ext_resource] referenced non-existent" error [1]: E 0:00:00:0415 _parse_ext_resource: res://addons/block_code/ui/blocks/utilities/parameter_input/parameter_input.tscn:178 - Parse Error: [ext_resource] referenced non-existent resource at: res://addons/block_code/ui/blocks/utilities/snap_point/snap_point.tscn <C++ Source> scene/resources/resource_format_text.cpp:163 @ _parse_ext_resource() E 0:00:00:0430 _parse_ext_resource: res://addons/block_code/ui/blocks/utilities/parameter_output/parameter_output.tscn:30 - Parse Error: [ext_resource] referenced non-existent resource at: res://addons/block_code/ui/blocks/utilities/snap_point/snap_point.tscn <C++ Source> scene/resources/resource_format_text.cpp:163 @ _parse_ext_resource() So, use load() to replace preload() the scene. [1]: #174 (comment)
Preloading a scene may be failed, because Godot engine has not prepared the resource ready. And, shows "Parse Error: [ext_resource] referenced non-existent" error [1]: E 0:00:00:0415 _parse_ext_resource: res://addons/block_code/ui/blocks/utilities/parameter_input/parameter_input.tscn:178 - Parse Error: [ext_resource] referenced non-existent resource at: res://addons/block_code/ui/blocks/utilities/snap_point/snap_point.tscn <C++ Source> scene/resources/resource_format_text.cpp:163 @ _parse_ext_resource() E 0:00:00:0430 _parse_ext_resource: res://addons/block_code/ui/blocks/utilities/parameter_output/parameter_output.tscn:30 - Parse Error: [ext_resource] referenced non-existent resource at: res://addons/block_code/ui/blocks/utilities/snap_point/snap_point.tscn <C++ Source> scene/resources/resource_format_text.cpp:163 @ _parse_ext_resource() So, use load() to replace preload() the scene. [1]: #174 (comment)
Thank you for noticing the parse error and working on it! |
e31dc69
to
c9f659a
Compare
Rebase on main branch again. |
7ee8eb4
to
bc29651
Compare
Rebase on main branch again. To avoid Pong game's conflict, I dropped the Pong example game's modification commit. We can have another Pong example game commit after the big refactor. But, The test fails at the error, due to the nonexistent functions:
|
621fe34
to
6b6adb9
Compare
After discussion, we are going to keep sound blocks in both both types of general script and GDScript flavor. |
6b6adb9
to
50e9215
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Please squash the commits before merging. One commit is undoing a previous commit.
50e9215
to
a7ff0c5
Compare
According to the discussion [1], add the sound blocks into function get_built_in_blocks()'s class matching. It generates blocks belonging to AudioStreamPlayer node, including setting the property's value. Therfore, we have sound blocks in both types of general script and GDScript flavor. [1]: #161 (comment) https://phabricator.endlessm.com/T35609
a7ff0c5
to
dbdaca8
Compare
Tweaked the commits and merge it. |
According to the discussion 1, add the sound blocks into function
get_built_in_blocks()
's class matching. It generates blocks belonging to AudioStreamPlayer node, including setting the property's value.Therfore, we have sound blocks in both types of general script and GDScript flavor.
https://phabricator.endlessm.com/T35609