Topic was automatically imported from the old Question2Answer platform.
Asked By
vonflyhighace2
Old Version
Published before Godot 3 was released.
For some reason I’m getting this error [Signal ‘body_exit’’ already connected to given method ‘_on_Area_body_exit’ in that object.] but there are no duplicate methods of the same name on any object in the scene? I think this is a bug.
I’m having this issue too. But I’m getting this error message instead:
E 0:00:01:0648 connect: Signal ‘changed’ is already connected to given callable ‘AnimationLibrary::_animation_changed’ in that object.
<C++ Error> Method/function failed. Returning: ERR_INVALID_PARAMETER
<C++ Source> core/object/object.cpp:1270 @ connect()
The problem here is that you have two connections to the same method. Although you have only one method, the signal body_exit has been connected twice to it. Check how you made this connection: did you do it by script? Or from the editor?
It was done through the editor. I figured out the issue though. I have a base enemy character that had the signals connected to it. I then instance the enemy into another scene and for some reason added the signals to that again, don’t know why. It would be nice if all modifications done on the base node showed up on instance nodes to help avoid these issues.
vonflyhighace2 | 2016-10-07 00:18
You mean, your enemy scene inherits the base enemy scene? I’d like to see if I can reproduce it.
I think I experienced the same issue. Every time I duplicated a node that had connected ‘area_enter’ signals and I used default flags I would get the error described above. My fix was to use the duplicate function flags to prevent signal duplication then add the signal after the duplication event.