HungryProton / scatter

Godot engine addon to randomly fill an area with props or other scenes
MIT License
2.17k stars 96 forks source link

Errors in Output when loading a project and having a scene with ScatterCache inactive #160

Open HoutarouOreki opened 1 year ago

HoutarouOreki commented 1 year ago

I get loads of errors in Output when opening a project and having a tab of a scene open but inactive with ScatterCache. If instead when opening the project the tab with this scene is active or not open at all, I do not get these errors.

So errors appear on scene load if the tab is inactive.

This happened with both AssetLib version and the latest version from v4 branch.

Video

At the beginning of the video the project loads. There are tabs "world_scene" and "player". This time, the "player" tab is open after loading and there are errors in output. Then I change the active tab to "world_scene" which has a ScatterCache. I reload the project and there are no errors. Then I change the active tab back to "player" and reload the project, and the errors are there again. https://github.com/HungryProton/scatter/assets/16261733/6f028268-f244-41ee-9077-24c481994e35

Errors from Output

``` (3) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. res://addons/proton_scatter/src/common/scatter_util.gd:74 - Cannot call method 'get_node_or_null' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. res://addons/proton_scatter/src/common/scatter_util.gd:74 - Cannot call method 'get_node_or_null' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. res://addons/proton_scatter/src/scatter.gd:489 - Cannot call method 'get_child_count' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). (2) scene/3d/node_3d.cpp:324 - Condition "!is_inside_tree()" is true. Returning: Transform3D() scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/common/scatter_util.gd:67 - Cannot call method 'get_edited_scene_root' on a null value. scene/main/node.h:412 - Condition "!data.tree" is true. Returning: nullptr res://addons/proton_scatter/src/scatter.gd:716 - Invalid get index 'process_frame' (on base: 'null instance'). ```