![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | alvin00221 |
![]() |
Old Version | Published before Godot 3 was released. |
Guys what does it error means?
My game is fine and still running but this error showing up. This is happening in this line of code:
func _on_EnemyArea_body_exit( body ):
#print(body.get_name())
if(body.get_name().begins_with("Enemy")):
#arrenem.erase(body.get_name())
arrenem.erase(body.get_name())
This is the error:
DETECTED MONITORS: 1
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
ERROR: Area::_clear_monitoring: Condition ’ !node ’ is true. Continuing…:
At: scene\3d\area.cpp:247
Does it happen when your Area2D exits SceneTree (it or any of its parents got freed / removed from parent)?
Kermer | 2016-06-11 00:12
Because, if I get this right it looks something like this:
NOTIFICATION_EXIT_TREE
or “monitoring” changes to false- Area loops through all object that are mapped to be inside it, to call
body_exit
andbody_exit_shape
signals - If the object already have been deleted/freed this error is displayed
Kermer | 2016-06-11 00:19
This is for 3d Game.
Actually I have Area3d and the enemy was freed. so what i basically did I used area exit.
- so my next question is how can i change my variable if enemy deleted/freed?
- How can i use body_exit without having error?
alvin00221 | 2016-06-11 01:17
Yes! SceneTree was freed or removed
alvin00221 | 2016-06-11 02:21
Ok I got it… I shouldn’t freed/destroy my body.object inside the area_exit() method. I will change my algorithm. Thank you very much!
alvin00221 | 2016-06-11 02:41