-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Nonexistent function 'rpc' in base 'Callable' #78545
Comments
CC @KoBeWi |
It has nothing to do with this bug, I just want to draw your attention to the fact that |
Thank you. Now I understand it. |
The bind callables don't implement Will take a look at an approach for this |
|
Yes but calling rpc on it calls the one on custom, which is not implemented for the bind versions Got a working fix |
Seems like only |
They will only do so, calling them elsewhere will cause the same error |
Yes. The .rpc methods were indeed not implemented in the CallableCustomUnbind and CallableCustomBind classes. But there is another problem - the .get_method method does not work. I am creating another Issue: #78554. |
Godot version
v4.1.dev3.official [a67d37f]
System information
Linux 5.4.0-135-generic
Issue description
I am trying to call Callable.rpc() and Callable.rpc_id(...) method but it doesn't work with some Callable.
If I call the .bind method and then call .rpc, I get the error "Invalid call. Nonexistent function 'rpc' in base 'Callable'.", execution aborts.
Issue is that we know for sure that the .rpc method in the Callable type is always present, and we would get a different error, but definitely not this one.
Steps to reproduce
Create an empty project, a new scene with Node at the root, and attach the following script to it:
Run the scene and observe the error. After an error, execution is interrupted, so comment out the found line to find the next error. Run the scene again.
See all available function values for these Callables. Except Callable.get_method() but that's a whole other issue.
Minimal reproduction project
N / A
The text was updated successfully, but these errors were encountered: